Virtual image data processing method and device based on index
By creating index identifiers and index values for avatar data, only storing category identifier image data and reconstructing the image, the problem of low efficiency of avatar data storage and reconstruction in the virtual world is solved, and storage space is saved and reconstruction quality is guaranteed. .
Patent Information
- Application Number
- CN202410763376.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-20
- Publication Date
- 2024-08-30
AI Technical Summary
In the virtual world, existing technologies are difficult to efficiently store and reconstruct avatar data, resulting in large storage space usage and poor reconstruction quality.
By creating an index identifier and an index value for the virtual image data, only the image data of the category identifier image is stored, and the index identifier and index value are used to perform image reconstruction processing, thereby saving storage space and ensuring reconstruction quality.
It effectively saves storage space, while ensuring high-quality reconstruction of virtual images and avoiding the need to store a large amount of virtual images.
Smart Images

Figure CN118568276A
Abstract
Description
[0001] This application is a divisional application of the Chinese invention patent application with the application date of September 20, 2022, application number CN202211142139.0, and name “Index-based virtual image data processing method and device”. Technical Field
[0002] This document relates to the field of virtualization technology, and in particular to an index-based virtual image data processing method and device. Background Art
[0003] The virtual world provides a simulation of the real world, and can even provide scenes that are difficult to achieve in the real world. Therefore, the virtual world is increasingly used in various scenarios. In the virtual world scenario, users log in to the three-dimensional virtual world through a specific identity ID and carry out activities through virtual user roles in the virtual world. Usually, there are different user roles in the virtual world, and these user roles each carry out different activities. Summary of the invention
[0004] One or more embodiments of the present specification provide an index-based virtual image data processing method. The index-based virtual image data processing method includes: obtaining an index identifier of virtual image data in a virtual world. Determining a target index entry in an index list where a target index identifier matching the index identifier is located. Reading an index value mapped by the target index identifier in the target index entry; the index value includes image features and image data of a category identifier image corresponding to the virtual image data. Performing image reconstruction processing of the virtual image based on the target index identifier and the image data to obtain the virtual image.
[0005] One or more embodiments of the present specification provide an index-based virtual image data processing device, including: an index identifier acquisition module, configured to obtain an index identifier of virtual image data in a virtual world. A target index entry determination module, configured to determine a target index entry in an index list where a target index identifier matching the index identifier is located. An index value reading module, configured to read an index value mapped by the target index identifier in the target index entry; the index value includes image features and image data of a category identifier image corresponding to the virtual image data. An image reconstruction module, configured to perform image reconstruction processing of the virtual image based on the target index identifier and the image data to obtain the virtual image.
[0006] One or more embodiments of the present specification provide an index-based virtual image data processing device, comprising: a processor; and a memory configured to store computer executable instructions, wherein when the computer executable instructions are executed, the processor: obtains an index identifier of virtual image data in a virtual world. Determines a target index entry in an index list where a target index identifier matching the index identifier is located. Reads an index value mapped by the target index identifier in the target index entry; the index value includes image features and image data of a category identifier image corresponding to the virtual image data. Performs image reconstruction processing of the virtual image based on the target index identifier and the image data to obtain the virtual image.
[0007] One or more embodiments of the present specification provide a storage medium for storing computer executable instructions, which implement the following process when executed by a processor: obtain an index identifier of virtual image data in a virtual world. Determine a target index entry in an index list where a target index identifier matching the index identifier is located. Read an index value mapped by the target index identifier in the target index entry; the index value includes image features and image data of a category identifier image corresponding to the virtual image data. Perform image reconstruction processing of the virtual image based on the target index identifier and the image data to obtain the virtual image. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate one or more embodiments of the present specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
[0009] Figure 1 A processing flow chart of a method for processing virtual image data based on an index provided in one or more embodiments of this specification;
[0010] Figure 2 A processing flow chart of a method for processing virtual image data based on an index and applied to a virtual world scene provided in one or more embodiments of this specification;
[0011] Figure 3 A schematic diagram of an index-based virtual image data processing device provided for one or more embodiments of this specification;
[0012] Figure 4 A schematic diagram of the structure of an index-based virtual image data processing device provided for one or more embodiments of this specification. DETAILED DESCRIPTION
[0013] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0014] This specification provides an index-based virtual image data processing method embodiment:
[0015] The index-based virtual image data processing method provided in this embodiment stores the virtual image in the form of an index, and in the process of storing the virtual image data, for any category of virtual images, only the image data of the category identification image is stored during storage, thereby reducing the demand for storage space. When the virtual image needs to be viewed, the index value in the index entry corresponding to the virtual image is queried according to the index identification of the virtual image, and the image is reconstructed based on the image data in the index value and the index identification to obtain the queried virtual image; specifically, according to the index identification for querying the virtual image in the virtual world, the index value mapped by the index identification is queried in the index list; the image is reconstructed based on the index identification and the image data in the index value to obtain the virtual image. In this way, there is no need to store a large number of virtual images, thus avoiding occupying a large amount of storage space, and the image data of the corresponding category identification image is stored during storage, and the image of the virtual image is subsequently reconstructed based on the image data of the index identification and the type identification image, thereby saving storage space while ensuring the image quality of the reconstructed virtual image.
[0016] Reference Figure 1 The index-based virtual image data processing method provided in this embodiment specifically includes steps S102 to S108.
[0017] Step S102, obtaining an index identifier of the virtual image data in the virtual world.
[0018] The virtual world described in this embodiment refers to a virtual simulation world based on decentralized collaboration and with an open economic system. Optionally, decentralized transactions are conducted in the virtual world by generating non-homogeneous identifiers, and ownership of virtual assets is obtained through transactions. Specifically, users in the real world can access the virtual world through access devices to conduct decentralized transactions and other behaviors in the virtual world, such as a game virtual world where users interact with games through access devices, a conference virtual world where users conduct online meetings through access devices, or a transaction virtual world where users conduct online transactions through access devices;
[0019] Furthermore, it is also possible to establish an identity mapping between the virtual image in the virtual world and the user in the real world, and to trade virtual assets in the virtual world by generating non-homogeneous identifiers based on the established identity mapping, and to possess ownership of virtual assets through transactions. The access device to the virtual world may be a VR (Virtual Reality) device or an AR (Augmented Reality) device connected to the virtual world, such as a head-mounted VR device connected to the virtual world. The server refers to a server or service platform that provides corresponding services for access devices to the virtual world, or a server or service platform that maintains the operation of the virtual world.
[0020] In this embodiment, the virtual image refers to a three-dimensional digital image (three-dimensional digital image) obtained by reconstructing the user's image using image reconstruction technology based on the user's image, which is used to display the user's image in the virtual world, or a digital twin image in the virtual world that has a digital twin relationship or identity mapping with the user in the real world and is obtained by reconstructing the user's image using image reconstruction technology based on the user's image. For example, based on the user's images from multiple perspectives in the real world, the user's images from multiple perspectives are input into the NeRF (Neural Radiance Fields) model for image reconstruction to obtain a three-dimensional digital image, digital twin image, or identity mapping image in the virtual world. The virtual image data includes virtual data of the user representing the virtual image in the virtual world.
[0021] In specific implementation, an index is created for each virtual image to obtain an index list for subsequent virtual image query. Optionally, the index entries in the index list correspond to the virtual images one by one; if the index value in the index entry includes image data, the virtual image corresponding to the index entry is the category identification image; if the index value in the index entry includes image features and image data of the category identification image, the virtual image corresponding to the index entry is the virtual image of the category to which the category identification image belongs.
[0022] Specifically, the virtual images correspond to the index entries one by one. During the creation of the index list, at least one virtual image data is obtained, and data processing is performed on the at least one virtual image data to obtain the index of the at least one virtual image data.
[0023] The following describes the process of creating an index entry for at least one avatar data.
[0024] An index entry includes two parts: an index identifier and an index value. Therefore, the process of creating an index entry for each virtual image data is the process of determining the index identifier and index value corresponding to each virtual image.
[0025] (1) Determining the image quantitative features of each virtual image in at least one virtual image
[0026] In order to improve the representation degree of the virtual image by the index mark, the multimodal features corresponding to the virtual image data are processed accordingly to obtain the image quantization features of the virtual image corresponding to the virtual image data, and the image quantization features are used as the index mark of the index entry of the virtual image. The corresponding processing includes: dimensionality reduction processing and quantization processing.
[0027] Optionally, the image quantitative features of the virtual image data are determined in the following manner:
[0028] Inputting each virtual image data and the corresponding two-dimensional image data in at least one virtual image data into a feature recognition model for multimodal feature recognition to obtain multimodal features of the virtual image corresponding to each virtual image data;
[0029] Performing dimensionality reduction processing on the multimodal features of each virtual image to obtain dimensionality reduction features of each virtual image;
[0030] The dimension reduction features of each virtual image are quantified to obtain the image quantization features of each virtual image.
[0031] Specifically, in order to save storage space and avoid directly using the multimodal features of the virtual image as index identifiers which results in a large amount of storage, after each virtual image data and the corresponding two-dimensional image data are input into a feature recognition model for multimodal feature recognition, the multimodal features of each virtual image obtained are subjected to dimensionality reduction and quantization processing to obtain the quantitative image features of each virtual image.
[0032] In practical applications, the feature recognition model can be pre-trained, for example, the feature recognition model can be trained on a cloud server. Specifically, in the feature recognition model training process, in an optional implementation provided in this embodiment, the feature recognition model is trained in the following manner:
[0033] Inputting the virtual image sample data into the feature recognition model to be trained to perform multimodal feature recognition to obtain a first modal feature and a second modal feature;
[0034] Reconstructing the first modal feature and the second modal feature to obtain reconstructed data;
[0035] Calculating the training loss of the feature recognition model to be trained based on the reconstructed data and the virtual image sample data, and adjusting parameters of the feature recognition model to be trained based on the training loss;
[0036] The first modal feature is obtained by extracting features from virtual sub-sample data in the virtual image sample data; and the second modal feature is obtained by extracting features from two-dimensional sub-sample data in the virtual image sample data.
[0037] Further, in the process of calculating the training loss of the feature recognition model to be trained based on the reconstruction data and the virtual image sample data, the reconstruction loss is calculated based on the reconstruction data obtained by reconstructing the data of the corresponding modalities of the first modal feature and the second modal feature, and the virtual image sample data;
[0038] Calculating a cross-modal reconstruction loss based on the reconstructed data obtained by performing relative modality data reconstruction on the first modality feature and the second modality feature, and the virtual image sample data;
[0039] The training loss is calculated based on the reconstruction loss and the cross-modal reconstruction loss.
[0040] Among them, reconstructing the data of the corresponding modality includes: reconstructing the data of the first modality (virtual modality) of the first modality feature to obtain first reconstruction data, and reconstructing the data of the second modality (two-dimensional modality) of the second modality feature to obtain second reconstruction data; reconstructing the data of the relative modality includes: reconstructing the data of the second modality of the first modality feature to obtain third reconstruction data, and reconstructing the data of the first modality of the second modality feature to obtain fourth reconstruction data.
[0041] Further, calculating the reconstruction loss includes: calculating a first reconstruction loss of the first reconstruction data and the virtual sub-sample data, calculating a second reconstruction loss of the second reconstruction data and the two-dimensional sub-sample data; and calculating the sum of the first reconstruction loss and the second reconstruction loss as the reconstruction loss. Calculating the cross-modal reconstruction loss includes: calculating a first cross-modal reconstruction loss of the third reconstruction data and the two-dimensional sub-sample data, calculating a second cross-modal reconstruction loss of the fourth reconstruction data and the virtual sub-sample data; and calculating the difference between the first cross-modal reconstruction loss and the second cross-modal reconstruction loss as the cross-modal reconstruction loss.
[0042] The feature recognition model can adopt two transformer architectures. Optionally, the two transformers interact with each other through a feature interaction module every two layers. During the training process, the virtual image data sample is input into one transformer and output as the first modal feature (virtual feature), and the two-dimensional image sample (RGB data) is input into another transformer and output as the second modal feature (two-dimensional feature). Then the product of the first modal feature and the second modal feature is calculated as the output of the feature recognition model. The first modal feature includes at least one virtual feature, and the second modal feature includes at least one two-dimensional feature. The multimodal feature includes features corresponding to the virtual feature and the two-dimensional feature.
[0043] During the training process, the loss function is the reconstruction loss and the cross-modal reconstruction loss; for example: Loss = L 2d +L 3d +L 2d-3d Among them, L 2d is the two-dimensional feature reconstruction loss; L 3d is the virtual feature reconstruction loss; L 2d-3d is the cross-modal reconstruction loss.
[0044] The model is trained in the above manner until the model converges to obtain a feature recognition model. The feature recognition model is trained and then used to perform multimodal feature recognition on the virtual image data and the two-dimensional image data of the virtual image. In the recognition process, the correlation between the virtual image data and the two-dimensional image data is integrated to make the obtained multimodal features more effective.
[0045] After the feature recognition model is obtained, each virtual image data in the at least one virtual image data is input into the feature recognition model for multimodal feature recognition to obtain multimodal features of the virtual image corresponding to each virtual image data. The multimodal features of each virtual image are quantified by dimensionality reduction to obtain image quantization features of each virtual image.
[0046] For example, after obtaining the multimodal features of each virtual image, PCA (Principal Component Analysis) is performed on the multimodal features of each virtual image to reduce the dimension from 512 dimensions to 128 dimensions; the int8 (8-bit signed number) quantization technology is used for the reduced dimension features of each virtual image obtained by dimensionality reduction, and the floating-point type data of the reduced dimension features is quantized to int8 type as the image quantization features of each virtual image, saving about 87% of the storage space.
[0047] (2) Determine the preset categories and the type identification images of each category based on the quantitative characteristics of each virtual image
[0048] In specific implementation, after obtaining the image quantification features of each virtual image, the image quantification features of at least one virtual image are clustered by a clustering algorithm to obtain a preset category; subsequently, only the index of other virtual images under the category needs to be created according to the category and the type identification image under the category, thereby improving the simplicity of index creation and reducing the storage space occupied by index storage; in an optional implementation manner provided by this embodiment, the preset category and the type identification image of each category are determined in the following manner:
[0049] Performing clustering processing based on the image quantification features of at least one virtual image to obtain at least one category as the preset category;
[0050] Determine the virtual image under each category whose image quantitative characteristics meet the category image condition of the category as the category identification image of the category.
[0051] Specifically, at least one category is determined as a preset category and a category identification image of each category based on the image quantification feature of at least one virtual image. The category image condition includes that the Euclidean distance with the average feature (category feature) of the category is less than the Euclidean distance between other image quantification features and the average feature. In addition, the above-mentioned determination of the virtual image under each category whose image quantification feature satisfies the category image condition of the category as the category identification image of the category can also be replaced by determining the virtual image corresponding to the image quantification feature of the virtual image under each category whose Euclidean distance with the average feature of the category is less than the Euclidean distance between other image quantification features and the average feature as the category identification image of the category; and forming a new implementation method with other processing steps provided in this embodiment.
[0052] For example, KMeans clustering is performed on the image quantization features of at least one virtual image, wherein the number of cluster centers (categories) is generally 1% to 5% of the total number of users, which means that the use of indexing to store virtual images saves 99% to 95% of memory. After clustering to obtain N categories, for each category, the average feature of the category is calculated based on the image quantization features of the virtual images under the category, and the virtual image whose image quantization feature and the average feature are less than the Euclidean distance between other image quantization features and the average feature is determined as the category identification image of this category.
[0053] (3) Determine the index value of each virtual image
[0054] For the at least one virtual image mentioned above; if the virtual image is a category identification image, the index value of the virtual image is determined as the image data of the image; if the virtual image is not a category identification image, the image quantitative characteristics and image data of the category identification image of the category to which the virtual image belongs are determined as the index value of the virtual image.
[0055] In addition to the index value composed of image data or image features and image data provided above, the index value in this embodiment can also be a pointer or storage address of image features and / or image data, so as to further save storage space. Specifically, for the category identification image, the index value is a pointer corresponding to the category identification image; for other virtual images under the same category as the category identification image, the index value can be the image quantitative features of the category identification image and the corresponding pointer.
[0056] (4) Constructing index entries for each virtual image based on the image quantitative features and index values of each virtual image
[0057] The image quantization feature of each virtual image is used as an index identifier, and the index entry of each virtual image is constructed based on the index identifier and the index value.
[0058] Step S104: determine the target index entry in the index list where the target index identifier matching the index identifier is located.
[0059] Optionally, the target index entry consists of the target index identifier and a mapped index value.
[0060] In specific implementation, in order to avoid the low matching efficiency of directly matching all index entries based on the acquired index identifier, and to avoid the inability to match the index entry due to incomplete acquired index identifiers or other problems, therefore, in order to improve the efficiency of reconstructing the virtual image, in this embodiment, after acquiring the index identifier of the virtual image data in the virtual world, the similarity between the index identifier and the index identifiers of each index entry in the index list is calculated to determine the target index identifier that matches the acquired index identifier (the similarity is higher than the similarity between other index identifiers and the acquired index identifier), and retrieve the target index entry in the index list where the target index identifier is located.
[0061] Similar to the construction method of the index entries of each virtual image provided above, in an optional implementation manner provided in this embodiment, the target index entry includes the image quantitative features of the virtual image; the image quantitative features are determined in the following manner:
[0062] Inputting the virtual image data and the two-dimensional image data of the virtual image into a feature recognition model to perform multimodal feature recognition to obtain multimodal features of the virtual image;
[0063] Performing dimensionality reduction processing on the multimodal features to obtain dimensionality reduction features of the virtual image;
[0064] The dimension reduction feature is quantized to obtain the image quantization feature.
[0065] Specifically, the image quantification feature of the target index entry, that is, the target index identifier, is similar to the construction method of the index entry provided above, and will not be described in detail in this embodiment.
[0066] The feature recognition model integrates the features corresponding to the virtual image data and the two-dimensional image data, and utilizes the complementarity of the virtual features and the two-dimensional features in the recognition process to achieve mutual promotion of the virtual features and the two-dimensional features in the recognition process. In an optional implementation provided by this embodiment, the feature recognition model performs multimodal feature recognition in the following manner:
[0067] Inputting the virtual image data into a first feature extraction network for feature extraction to obtain a first modal feature, and inputting the two-dimensional image data into a second feature extraction network for feature extraction to obtain a second modal feature;
[0068] Based on the first modal feature and the second modal feature, a multimodal feature of the virtual image is calculated.
[0069] Specifically, the feature recognition model calculates and outputs the multimodal features of the virtual image data and the two-dimensional data by identifying the virtual features and the two-dimensional features. Optionally, after obtaining the virtual features and the two-dimensional features, the feature recognition model calculates the product of the virtual features and the two-dimensional features as the multimodal features and outputs them.
[0070] Step S106: read the index value mapped by the target index identifier in the target index entry.
[0071] Optionally, the index value includes image features and image data of a category identification image corresponding to the virtual image data. Further, the category identification image is a category identification image of a category to which the virtual image belongs; the category to which the virtual image belongs is determined based on the image quantitative features of the virtual image.
[0072] After determining the target index entry in the index list where the target index identifier matching the index identifier is located, the index value mapped to the target index identifier is read from the target index entry.
[0073] Similar to the above-mentioned method of determining the index value of at least one virtual image, in an optional implementation manner provided by this embodiment, the index value mapped by the target index identifier, that is, the index value in the target index entry, is determined in the following manner:
[0074] Determining the category to which the virtual image belongs based on the image quantitative features;
[0075] The image features and image data of the category identification image under the category are read as the index value of the target index identification mapping.
[0076] Optionally, in the process of determining the category to which the virtual image belongs based on the image quantitative features, the feature distance between the image quantitative features and the category features of each category in the preset category is first calculated; then the category corresponding to the target category feature whose feature distance with the image quantitative features is smaller than that of other category features is determined as the category to which the virtual image belongs.
[0077] That is, the category to which the virtual image belongs is the category in which the distance between the image quantitative feature of the virtual image and the category feature of the category is smaller than other distances.
[0078] In a specific implementation, after reading the index value of the target index identification mapping, determine whether the virtual image is a category identification image according to the index value; if the index value includes the image data of the virtual image, it means that the virtual image is a category identification image; optionally, if the index value includes the image data of the virtual image, the image reconstruction processing of the virtual image is performed based on the image data to obtain the virtual image. Alternatively, if the index value includes the image data of the virtual image, a pre-stored category image of the category to which it belongs is read as the virtual image.
[0079] If the index value includes both the virtual image and the image features (image quantitative features), the following step S108 is executed to perform image reconstruction processing of the virtual image based on the target index identifier and the image data to obtain the virtual image.
[0080] In addition, step S106 can also be replaced by reading the index value including image features and image data mapped by the target index identifier in the target index entry; and forming a new implementation method with other processing steps provided in this embodiment; optionally, the image features and the image data are the image quantitative features and image data of the category identifier image of the category to which the virtual image data belongs.
[0081] Step S108, performing image reconstruction processing of the virtual image based on the target index identifier and the image data to obtain the virtual image.
[0082] In a specific implementation, after obtaining the target index identifier and the image data in the index value mapped by the target index identifier, image reconstruction processing is performed based on the target index identifier and the image data to obtain a virtual image. In order to improve the accuracy of the reconstructed virtual image, in an optional implementation provided by this embodiment, the image reconstruction process is implemented in the following manner:
[0083] Inputting the target index identifier and the image data into an image reconstruction model to perform image reconstruction processing to obtain the virtual image;
[0084] Accordingly, the image reconstruction model is trained in the following manner:
[0085] Inputting the index identifier of the virtual image sample and the image data of the corresponding type identifier image into the image reconstruction model to be trained to perform image reconstruction;
[0086] Calculate the training loss of the virtual image obtained by image reconstruction and the virtual image samples;
[0087] Parameters of the image reconstruction model to be trained are adjusted according to the training loss.
[0088] In this embodiment, the image reconstruction model can be pre-trained, such as training the image reconstruction model on a cloud server; wherein the image reconstruction model can adopt a semantic segmentation architecture, such as a UNET architecture, the input is the index identifier of the non-type identification image and the image data of the corresponding category identification image, and the output is a virtual image of the non-category identification image; the loss function is a Euclidean distance loss function; the model is trained in the above manner until the model converges.
[0089] In summary, the index-based virtual image data processing method provided in the present embodiment, in the process of creating an index entry of a virtual image corresponding to the virtual image data, firstly determines the multimodal features of the virtual image according to the virtual image data, and performs dimension reduction and quantization processing on the multimodal features to obtain image quantization features. After obtaining the image quantization features of the virtual image, the category to which the virtual image belongs is determined according to the image quantization features. If it is determined that the virtual image is a category identification image of the category, the image quantization features of the virtual image are used as index identifiers, and the image data of the virtual image are used as index values to construct an index entry of the virtual image, and only the index entry is stored. If it is determined that the virtual image is not a category identification image of the category, the image quantization features of the virtual image are used as index identifiers, and the image quantization features and image data of the category identification image of the category to which the virtual image belongs are used as index values to construct an index entry of the virtual image and store it.
[0090] In the process of image retrieval, according to the index identifier of the virtual image data in the virtual world, the target index entry in the index list that matches the index identifier is determined; the index value of the target index entry is read; the image reconstruction processing of the virtual image is performed based on the target index and the image data in the index value to obtain the virtual image; the process of performing image reconstruction processing of the virtual image based on the target index and the image data in the index value to obtain the virtual image can also be replaced by, if the index value contains the image characteristics and image data of the category identification image, then the target index identifier and image data in the target index entry are input into the image reconstruction model for image reconstruction processing to obtain the virtual image; or, if the index value contains image data, the virtual image corresponding to the target index identifier in the pre-stored target index entry is read.
[0091] In this way, only the category identification image of each category is stored, and other virtual images under the category use the image quantitative characteristics of the virtual image as the index identification, and the image quantitative characteristics and image data of the category identification image as the index value to construct the index entry of the virtual image. Only the index entry is stored, and the virtual image is subsequently reconstructed according to the index entry. In this way, storage space is saved, and the reconstruction quality of the virtual image after image reconstruction is guaranteed by constructing the index and using the data in the index to reconstruct the image.
[0092] The following takes the application of an index-based virtual image data processing method provided by this embodiment in a virtual world scene as an example to further illustrate the index-based virtual image data processing method provided by this embodiment. Figure 2 , an index-based virtual image data processing method applied to a virtual world scene, specifically includes steps S202 to S216.
[0093] Step S202: obtaining an index identifier for searching a virtual image in the virtual world.
[0094] Step S204: Calculate the similarity between the index identifier and the index identifiers in each index entry in the index list.
[0095] Step S206: determine the target index identifier in the target index entry whose similarity to the acquired index identifier for retrieval is higher than that of the index identifiers in other index entries.
[0096] Step S208: read the index value mapped by the target index identifier in the target index entry.
[0097] Step S210: If the index value includes the image quantization features and image data of the category identification image corresponding to the virtual image, it is determined that the virtual image is a non-category identification image.
[0098] Step S212, inputting the target index identifier and image data into the image reconstruction model to perform image reconstruction processing to obtain a virtual image.
[0099] Steps S210 to S212 can also be replaced by, if the index value contains the image quantitative features and image data of the category identification image corresponding to the virtual image, inputting the target index identification and image data into the image reconstruction model for image reconstruction processing to obtain the virtual image; and forming a new implementation method with other processing steps provided in this embodiment.
[0100] Step S214: if the index value only includes the image data of the virtual image, then the virtual image is determined to be a category identification image.
[0101] Step S216, reading the virtual image corresponding to the pre-stored target index identifier.
[0102] Steps S214 to S216 can also be replaced by, if the index value only contains the image data of the virtual image, reading the virtual image corresponding to the pre-stored target index identifier; and forming a new implementation method with other processing steps provided in this embodiment.
[0103] An embodiment of an index-based virtual image data processing device provided in this specification is as follows:
[0104] In the above-mentioned embodiment, a method for processing virtual image data based on an index is provided, and correspondingly, a device for processing virtual image data based on an index is also provided, which will be described below in conjunction with the accompanying drawings.
[0105] Reference Figure 3 , which shows a schematic diagram of an index-based virtual image data processing device provided in this embodiment.
[0106] Since the device embodiment corresponds to the method embodiment, the description is relatively simple, and the relevant parts can refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.
[0107] This embodiment provides an index-based virtual image data processing device, including:
[0108] An index identification acquisition module 302 is configured to acquire an index identification of the virtual image data in the virtual world;
[0109] A target index entry determination module 304 is configured to determine a target index entry in the index list where a target index identifier matching the index identifier is located;
[0110] An index value reading module 306 is configured to read the index value mapped by the target index identifier in the target index entry; the index value includes the image features and image data of the category identifier image corresponding to the virtual image data;
[0111] The image reconstruction module 308 is configured to perform image reconstruction processing of the virtual image based on the target index identifier and the image data to obtain the virtual image.
[0112] An embodiment of an index-based virtual image data processing device provided in this specification is as follows:
[0113] Corresponding to the above-described index-based virtual image data processing method, based on the same technical concept, one or more embodiments of this specification further provide an index-based virtual image data processing device, the index-based virtual image data processing device is used to execute the above-described index-based virtual image data processing method. Figure 4A schematic diagram of the structure of an index-based virtual image data processing device provided for one or more embodiments of this specification.
[0114] This embodiment provides an index-based virtual image data processing device, including:
[0115] like Figure 4 As shown, the index-based virtual image data processing device may have relatively large differences due to different configurations or performances, and may include one or more processors 401 and memory 402, and the memory 402 may store one or more storage applications or data. Among them, the memory 402 may be a temporary storage or a permanent storage. The application stored in the memory 402 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the index-based virtual image data processing device. Furthermore, the processor 401 may be configured to communicate with the memory 402, and execute a series of computer executable instructions in the memory 402 on the index-based virtual image data processing device. The index-based virtual image data processing device may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input / output interfaces 405, one or more keyboards 406, etc.
[0116] In a specific embodiment, the index-based virtual image data processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the index-based virtual image data processing device, and the one or more programs are configured to be executed by one or more processors, including computer-executable instructions for performing the following:
[0117] Obtaining an index identifier of the virtual image data in the virtual world;
[0118] Determine a target index entry in the index list where the target index identifier matching the index identifier is located;
[0119] Reading the index value of the target index identifier mapping in the target index entry; the index value includes the image characteristics and image data of the category identifier image corresponding to the virtual image data;
[0120] The image reconstruction processing of the virtual image is performed based on the target index identifier and the image data to obtain the virtual image.
[0121] An embodiment of a storage medium provided in this specification is as follows:
[0122] Corresponding to the index-based virtual image data processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a storage medium.
[0123] The storage medium provided in this embodiment is used to store computer executable instructions, and the computer executable instructions implement the following process when executed by a processor:
[0124] Obtaining an index identifier of the virtual image data in the virtual world;
[0125] Determine a target index entry in the index list where the target index identifier matching the index identifier is located;
[0126] Reading the index value of the target index identifier mapping in the target index entry; the index value includes the image characteristics and image data of the category identifier image corresponding to the virtual image data;
[0127] The image reconstruction processing of the virtual image is performed based on the target index identifier and the image data to obtain the virtual image.
[0128] It should be noted that the embodiment of the storage medium in this specification and the embodiment of the index-based virtual image data processing method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.
[0129] The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0130] In the 1930s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0131] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0132] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0133] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0134] It should be understood by those skilled in the art that one or more embodiments of this specification may be provided as a method, system or computer program product. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0135] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0138] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0139] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0140] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0141] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0142] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0143] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0144] The above description is only an embodiment of this document and is not intended to limit this document. For those skilled in the art, this document may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document should be included in the scope of the claims of this document.
Claims
1. A method for processing virtual image data based on an index, comprising: Obtaining an index identifier of the virtual image data in the virtual world; Determine a target index entry in the index list where a target index identifier matching the index identifier is located; Reading the index value mapped by the target index identifier in the target index entry; The image reconstruction processing of the virtual image is performed based on the image data of the category identification image corresponding to the virtual image data contained in the target index identifier and the index value to obtain the virtual image.
2. The index-based virtual image data processing method according to claim 1, wherein the index entries in the index list correspond to the virtual images one by one; If the index value in the index entry includes image data, the virtual image corresponding to the index entry is the category identification image; if the index value in the index entry includes image features and image data of the category identification image, the virtual image corresponding to the index entry is the virtual image under the category to which the category identification image belongs.
3. According to the index-based virtual image data processing method of claim 1, the target index identifier includes the image quantitative features of the virtual image; the image quantitative features are determined in the following manner: Inputting the virtual image data and the two-dimensional image data of the virtual image into a feature recognition model to perform multimodal feature recognition to obtain multimodal features of the virtual image; Performing dimensionality reduction processing on the multimodal features to obtain dimensionality reduction features of the virtual image; The dimension reduction feature is quantized to obtain the image quantization feature.
4. According to the index-based virtual image data processing method of claim 3, the index value of the target index identifier mapping is determined in the following manner: Determining the category to which the virtual image belongs based on the image quantitative features; The image features and image data of the category identification image under the category are read as the index value of the target index identification mapping.
5. The index-based virtual image data processing method according to claim 4, wherein determining the category to which the virtual image belongs based on the image quantitative features comprises: Calculating the feature distance between the image quantitative feature and the category features of each category in the preset category; Determine that the category corresponding to the target category feature whose feature distance to the image quantitative feature is smaller than that of other category features is the category to which the virtual image belongs.
6. According to the index-based virtual image data processing method of claim 3, the feature recognition model performs multimodal feature recognition in the following manner: Inputting the virtual image data into a first feature extraction network for feature extraction to obtain a first modal feature, and inputting the two-dimensional image data into a second feature extraction network for feature extraction to obtain a second modal feature; Based on the first modal feature and the second modal feature, a multimodal feature of the virtual image is calculated.
7. According to the index-based virtual image data processing method of claim 3, the feature recognition model is trained in the following manner: Inputting the virtual image sample data into the feature recognition model to be trained to perform multimodal feature recognition to obtain a first modal feature and a second modal feature; Reconstructing the first modal feature and the second modal feature to obtain reconstructed data; Calculating the training loss of the feature recognition model to be trained based on the reconstructed data and the virtual image sample data, and adjusting parameters of the feature recognition model to be trained based on the training loss; in, The first modal feature is obtained by extracting features from virtual sub-sample data in the virtual image sample data; and the second modal feature is obtained by extracting features from two-dimensional sub-sample data in the virtual image sample data.
8. The index-based virtual image data processing method according to claim 7, wherein the step of calculating the training loss of the feature recognition model to be trained based on the reconstructed data and the virtual image sample data comprises: Calculating the reconstruction loss based on the reconstruction data obtained by reconstructing the data of the corresponding modality of the first modal feature and the second modal feature, and the virtual image sample data; Calculating a cross-modal reconstruction loss based on the reconstructed data obtained by performing relative modality data reconstruction on the first modality feature and the second modality feature, and the virtual image sample data; The training loss is calculated based on the reconstruction loss and the cross-modal reconstruction loss.
9. The index-based virtual image data processing method according to claim 5, wherein the preset category and the category identification image of each category in the preset category are determined in the following manner: Performing clustering processing based on the image quantification features of at least one virtual image to obtain at least one category as the preset category; Determine the virtual image under each category whose image quantitative characteristics meet the category image condition of the category as the category identification image of the category.
10. The index-based virtual image data processing method according to claim 1, further comprising: If the index value includes the image data of the virtual image, image reconstruction processing of the virtual image is performed based on the image data to obtain the virtual image.
11. The index-based virtual image data processing method according to claim 1, wherein the image reconstruction processing of the virtual image is performed based on the image data of the category identification image corresponding to the virtual image data contained in the target index identification and the index value to obtain the virtual image, comprising: Inputting the target index identifier and the image data into an image reconstruction model to perform image reconstruction processing to obtain a virtual image; Accordingly, the image reconstruction model is trained in the following manner: Inputting the index identifier of the virtual image sample and the image data of the corresponding type identifier image into the image reconstruction model to be trained to perform image reconstruction; Calculate the training loss of the virtual image obtained by image reconstruction and the virtual image samples; Parameters of the image reconstruction model to be trained are adjusted according to the training loss.
12. An index-based virtual image data processing device, comprising: An index identification acquisition module is configured to acquire an index identification of the virtual image data in the virtual world; A target index entry determination module is configured to determine a target index entry in the index list where a target index identifier matching the index identifier is located; An index value reading module, configured to read the index value mapped by the target index identifier in the target index entry; The image reconstruction module is configured to perform image reconstruction processing of the virtual image based on the image data of the category identification image corresponding to the virtual image data contained in the target index identifier and the index value to obtain a virtual image.
13. An index-based virtual image data processing device, comprising: processor; as well as, a memory configured to store computer executable instructions which, when executed, cause the processor to: Obtaining an index identifier of the virtual image data in the virtual world; Determine a target index entry in the index list where the target index identifier matching the index identifier is located; Reading the index value mapped by the target index identifier in the target index entry; The image reconstruction processing of the virtual image is performed based on the image data of the category identification image corresponding to the virtual image data contained in the target index identifier and the index value to obtain the virtual image.
14. A storage medium for storing computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the following process: Obtaining an index identifier of the virtual image data in the virtual world; Determine a target index entry in the index list where the target index identifier matching the index identifier is located; Reading the index value mapped by the target index identifier in the target index entry; The image reconstruction processing of the virtual image is performed based on the image data of the category identification image corresponding to the virtual image data contained in the target index identifier and the index value to obtain the virtual image.
Citation Information
Patent Citations
File loading method and device, and electronic equipment
CN111580881A
Role image generation method and device, storage medium and electronic device
CN113769393A
Information processing method, information processing device, program causing computer to execute information processing method
JP2018190196A
System and method for object searching in virtual worlds
US20110191365A1
Method and apparatus for acquiring virtual object data in augmented reality
US20200380771A1
