Virtual image generation, model training method, device and electronic equipment
Through deep learning model training and multi-layer neural network processing, point cloud and geometric information are used to generate virtual digital humans, which solves the problems of high virtual digital human generation cost and poor scalability in the existing technology, and achieves high quality and multi-scene adaptability. Avatar generation.
Patent Information
- Application Number
- CN202310798428.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-06-30
AI Technical Summary
When generating virtual digital humans, existing technology requires professional designers to rely on professional software for professional design in various aspects such as geometric textures, resulting in high hardware and design costs, weak scalability, and difficulty in achieving low-cost migration and multiple scenarios. adapt.
Through the training of the deep learning model, the point cloud information and geometric information of the first sub-region and the second sub-region of the object are used to generate a virtual image of the target area, and the rendering color and pseudo-normal information are processed through a multi-layer neural network to realize virtualization. The generation and training of images reduce the difficulty of generation and improve the applicability.
It achieves high-quality virtual image generation, reduces generation costs and hardware requirements, has strong scalability, is suitable for a variety of scenes and rendering effects, and improves virtual image generation and rendering effects.
Smart Images

Figure CN116843807B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, especially to the technical fields of computer vision, augmented reality, virtual reality, deep learning, etc., and can be applied to scenes such as the metaverse and digital humans. Specifically, it relates to a method, device, and electronic device for generating a virtual image and training a model. Background Art
[0002] Virtual digital humans are one of the key elements in creating the virtual world of the Metaverse. According to different business needs of digital humans, digital humans can be divided into 2D, 3D, cartoon, realistic, hyper-realistic, etc. In actual scenarios, it is necessary to build a basic virtual image for virtual digital humans that adapts to business needs. Summary of the invention
[0003] The present invention provides a method, device and electronic device for training a virtual image and a model.
[0004] According to one aspect of the present disclosure, a method for generating a virtual image is provided, comprising: determining target area point cloud information of a target area of an object based on first sub-area point cloud information of a first sub-area of the object and second sub-area geometric information of a second sub-area of the object, wherein the target area of the object includes the first sub-area of the object and the second sub-area of the object; and generating a virtual image of the target area of the object based on target rendering color information and the target area point cloud information.
[0005] According to another aspect of the present disclosure, a training method for a deep learning model is provided, comprising: inputting a sample video of a target area of an object into a first neural network of the deep learning model to obtain sample first sub-area point cloud information of a first sub-area of the sample object and sample second sub-area geometric information of a second sub-area of the sample object, wherein the sample video has a real rendering color label and a real target area point cloud label; inputting the sample first sub-area point cloud information and the sample second sub-area geometric information into a second neural network of the deep learning model to obtain sample target area point cloud information of the sample object target area, wherein the sample object target area includes the sample first sub-area and the sample second sub-area, and the sample target area point cloud information includes sample target area diffuse reflection information and sample target area pseudo-normal information; inputting the sample target area diffuse reflection information and the sample target area pseudo-normal information into a third neural network of the deep learning model to obtain sample rendering color information; and training the deep learning model according to the sample rendering color information, the real rendering color label, the sample target area point cloud information and the real target area point cloud label to obtain a trained deep learning model.
[0006] According to one aspect of the present disclosure, a method for generating a virtual image is provided, comprising: obtaining a video to be processed, wherein the video to be processed includes an object to be processed; and inputting the video to be processed into a deep learning model to obtain a virtual image of the object to be processed, wherein the deep learning model is trained using the deep learning model training method described in the present disclosure.
[0007] According to another aspect of the present disclosure, a virtual image generating device is provided, including: a target point cloud determining module, for determining target area point cloud information of an object target area based on first sub-area point cloud information of a first sub-area of the object and second sub-area geometric information of a second sub-area of the object, wherein the object target area includes the first sub-area of the object and the second sub-area of the object; and a generating module, for generating a virtual image of the object target area based on target rendering color information and the target area point cloud information.
[0008] According to one aspect of the present disclosure, a training device for a deep learning model is provided, comprising: a first network module, for inputting a sample video of a target area of an object into a first neural network of the deep learning model, to obtain sample first sub-area point cloud information of a first sub-area of the sample object and sample second sub-area geometric information of a second sub-area of the sample object, wherein the sample video has a real rendering color label and a real target area point cloud label; a second network module, for inputting the sample first sub-area point cloud information and the sample second sub-area geometric information into a second neural network of the deep learning model, to obtain sample target area point cloud information of the sample object target area, wherein the sample video has a real rendering color label and a real target area point cloud label; The target area of the object includes the first sub-area of the sample object and the second sub-area of the sample object, and the point cloud information of the sample target area includes diffuse reflection information of the sample target area and pseudo-normal information of the sample target area; a third network module is used to input the diffuse reflection information of the sample target area and the pseudo-normal information of the sample target area into the third neural network of the deep learning model to obtain sample rendering color information; and a training module is used to train the deep learning model according to the sample rendering color information, the real rendering color label, the point cloud information of the sample target area and the real target area point cloud label to obtain a trained deep learning model.
[0009] According to another aspect of the present disclosure, a virtual image generating device is provided, comprising: a video acquisition module, used to acquire a video to be processed, wherein the video to be processed includes an object to be processed; and a deep learning module, used to input the video to be processed into a deep learning model to obtain a virtual image of the object to be processed, wherein the deep learning model is trained using a deep learning model training device according to the present disclosure.
[0010] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute at least one of the virtual image generation method and deep learning model training method of the present disclosure.
[0011] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute at least one of the virtual image generation method and deep learning model training method of the present disclosure.
[0012] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program is stored on at least one of a readable storage medium and an electronic device, and when the computer program is executed by a processor, the computer program implements at least one of the virtual image generation method and the deep learning model training method of the present disclosure.
[0013] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0015] Figure 1 Schematically illustrates an exemplary system architecture in which at least one of a method for generating a virtual image and a method for training a deep learning model and a corresponding device can be applied according to an embodiment of the present disclosure;
[0016] Figure 2 A flowchart of a method for generating a virtual image according to an embodiment of the present disclosure is schematically shown;
[0017] Figure 3 A flowchart of a deep learning model training method according to an embodiment of the present disclosure is schematically shown;
[0018] Figure 4 A method for generating a virtual image based on a deep learning model according to an embodiment of the present disclosure is schematically shown;
[0019] Figure 5 A schematic diagram of generating a virtual image based on a deep learning model according to an embodiment of the present disclosure is schematically shown;
[0020] Figure 6A block diagram of a virtual image generating device according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 7 A block diagram of a deep learning model training device according to an embodiment of the present disclosure is schematically shown;
[0022] Figure 8 A block diagram schematically shows a virtual image generating device according to an embodiment of the present disclosure; and
[0023] Fig. 9 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0024] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0025] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information involved comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.
[0026] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0027] When designing a high-quality virtual human avatar, professional animators are needed to professionally optimize the geometric modeling, texture mapping, and light mapping of the avatar to build a basic avatar that meets business needs. For example, due to the driving needs of the avatar in various scenarios, it is necessary to perform fine-grained modeling of the digital human material, lighting model, 3D model, etc. When designing the rendering map of the avatar, it is necessary to rely on professional designers to iteratively optimize the design according to business needs.
[0028] In the process of realizing the concept of the present disclosure, the inventors found that the above method of generating virtual images requires professional designers to rely on professional software and conduct professional design of geometric textures and other aspects, which has high hardware and design costs. In addition, the scalability is weak and it is difficult to achieve low-cost migration.
[0029] Figure 1An exemplary system architecture of at least one of a virtual image generation method and a deep learning model training method and a corresponding device according to an embodiment of the present disclosure is schematically shown.
[0030] It should be noted that Figure 1 The examples shown are only examples of system architectures to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. For example, in another embodiment, an exemplary system architecture of at least one of the methods and corresponding devices of the virtual image generation method and the deep learning model training method can be applied, and the terminal device can implement at least one of the methods and corresponding devices of the virtual image generation method and the deep learning model training method provided by the embodiments of the present disclosure without interacting with the server.
[0031] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0032] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software, etc. (only as examples).
[0033] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0034] The server 105 may be a server that provides various services, such as a background management server that provides support for the content browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (for example only). The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server for a distributed system, or a server combined with a blockchain.
[0035] It should be noted that at least one of the virtual image generation method and the deep learning model training method provided in the embodiments of the present disclosure can generally be executed by the first terminal device 101, the second terminal device 102, or the third terminal device 103. Correspondingly, at least one of the virtual image generation device and the deep learning model training device provided in the embodiments of the present disclosure can also be set in the first terminal device 101, the second terminal device 102, or the third terminal device 103.
[0036] Alternatively, at least one of the virtual image generation method and the deep learning model training method provided in the embodiment of the present disclosure may also be generally executed by the server 105. Accordingly, at least one of the virtual image generation device and the deep learning model training device provided in the embodiment of the present disclosure may generally be set in the server 105. At least one of the virtual image generation method and the deep learning model training method provided in the embodiment of the present disclosure may also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, at least one of the virtual image generation device and the deep learning model training device provided in the embodiment of the present disclosure may also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0037] For example, when it is necessary to generate a virtual image, the first terminal device 101, the second terminal device 102, and the third terminal device 103 can obtain the first sub-region point cloud information of the first sub-region of the object and the second sub-region geometric information of the second sub-region of the object, and then determine the target region point cloud information of the target region of the object according to the first sub-region point cloud information and the second sub-region geometric information, the target region of the object includes the first sub-region of the object and the second sub-region of the object, and generate a virtual image of the target region of the object according to the target rendering color information and the target region point cloud information. Alternatively, a server or server cluster that can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105 analyzes the first sub-region point cloud information and the second sub-region geometric information, and realizes the generation of a virtual image of the target region of the object.
[0038] For example, when it is necessary to train a deep learning model, the first terminal device 101, the second terminal device 102, and the third terminal device 103 can obtain the sample first sub-region point cloud information of the sample object first sub-region and the sample second sub-region geometric information of the sample object second sub-region, as well as the sample video of the object target region, and then send the obtained sample first sub-region point cloud information, sample second sub-region geometric information, and sample video to the server 105, and the server 105 inputs the sample first sub-region point cloud information and the sample second sub-region geometric information into the first neural network of the deep learning model to obtain the sample target region of the sample object target region. The object target area includes the first sub-area of the object and the second sub-area of the object, and the sample target area point cloud information includes the sample target area diffuse reflection information and the sample target area pseudo-normal information; the sample target area diffuse reflection information and the sample target area pseudo-normal information are input into the second neural network of the deep learning model to obtain the target rendering color information; according to the sample video, the real rendering color label and the real target area point cloud label are determined; and according to the target rendering color information, the real rendering color label, the sample target area point cloud information and the real target area point cloud label, the deep learning model is trained to obtain a trained deep learning model. Alternatively, the aforementioned operations are performed by a server or server cluster that can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105, and a trained deep learning model is obtained.
[0039] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0040] Figure 2 The flowchart of the method for generating a virtual image according to an embodiment of the present disclosure is schematically shown.
[0041] like Figure 2 As shown, the method includes operations S210 to S220.
[0042] In operation S210, target region point cloud information of an object target region is determined according to first subregion point cloud information of a first subregion of the object and second subregion geometric information of a second subregion of the object, wherein the object target region includes the first subregion of the object and the second subregion of the object.
[0043] In operation S220, a virtual image of the target area of the object is generated according to the target rendering color information and the target area point cloud information.
[0044] According to an embodiment of the present disclosure, the object may include any one of animals, plants, people and other objects in nature, and may not be limited thereto. The first sub-region of the object and the second sub-region of the object may represent the same partial sub-region in the target region of the object, or may represent different partial sub-regions, which is not limited here.
[0045] According to an embodiment of the present disclosure, the first sub-region point cloud information and the second sub-region geometric information may be used as inputs, and the target region point cloud information may be used as outputs to train a first network model, so as to implement the process corresponding to the above operation S210 based on the trained first network model. The first algorithm program may also be constructed by using the parameterized information of both the first sub-region point cloud information and the second sub-region geometric information as independent variables and the parameterized information of the target region point cloud information as dependent variables, so as to implement the process corresponding to the above operation S210 based on the first algorithm program.
[0046] For example, the object target area may be a human head, and the object first sub-area and the object second sub-area may be a human face or a partial area of a human face. The first sub-area point cloud information may represent the face point cloud information. The second sub-area geometric information may represent at least one of the face geometry, the face expression coefficient, etc., and may not be limited thereto. In this embodiment, the head point cloud information including the face, neck, hair, etc. may be determined based on the face point cloud information and the face expression coefficient. The head point cloud information including the face, neck, hair, etc. may also be determined based on the face point cloud information and the face geometry.
[0047] It should be noted that, when the object area is a human head, the human head obtained in this embodiment is not for a specific user and cannot reflect the personal information of a specific user. The execution subject of the method for generating a virtual image corresponding to a human head in this embodiment can obtain human head information or human face information in various public, legal and compliant ways, such as from a public data set or from a user with the user's authorization.
[0048] According to an embodiment of the present disclosure, the target rendering color information may include color information predefined according to business requirements. For example, the point cloud of a certain area may be defined to be fixedly displayed as a certain set color. In this embodiment, the rendered point cloud information of the target area may be determined based on the target rendering color information and the point cloud information of the target area. Based on the rendered point cloud information of the target area, a virtual image of the target area of the object may be generated.
[0049] According to an embodiment of the present disclosure, the target rendering color information may also include color information learned by a second network model trained by taking the target area point cloud information as input and the virtual image of the target area of the object as output. In this embodiment, by processing the input target area point cloud information based on the trained second network model, the target rendering color information of each point in the target point cloud represented by the target area point cloud information can be learned, and the virtual image of the target area of the object can be output in combination with the target area point cloud information.
[0050] According to an embodiment of the present disclosure, the parameterized information of both the target rendering color information and the target area point cloud information can be used as independent variables, and the parameterized information of the virtual image of the target area of the object can be used as a dependent variable to construct a second algorithm program, so as to learn the target rendering color information based on the second algorithm program and implement the process corresponding to the above-mentioned operation S220.
[0051] According to an embodiment of the present disclosure, the first network model and the second network model may be various types of neural rendering networks. For example, the first network model may be a deformation network, a convolutional network, etc., and may not be limited thereto. The second network model may be an MLP (multilayer perceptron) network, and may not be limited thereto.
[0052] It should be noted that the model structures of the first network model and the second network model, and the configurations of the parameter items and algorithm rules in the first algorithm program and the second algorithm program are not limited here, as long as the above operations S210 and S220 can be implemented.
[0053] Through the above-mentioned embodiments of the present disclosure, a relatively complete virtual image corresponding to the corresponding area of the object can be generated based on the information of the partial area of the object, which reduces the difficulty of generating the virtual image and can be applied to a variety of scenarios, and can effectively improve the generation and rendering effects of the virtual image in a variety of scenarios.
[0054] In conjunction with specific embodiments, Figure 2 The method shown is further explained.
[0055] According to an embodiment of the present disclosure, before performing the above operation S210, the first sub-region point cloud information and the second sub-region geometric information may be first obtained, and the method may include: obtaining video information of the target area of the object, the video information including at least one video frame. Obtaining camera internal and external parameters of the video frame. Based on the camera internal and external parameters, constructing point cloud information for a first pixel area representing the first sub-region of the object in the video frame to obtain the first sub-region point cloud information. Determining the second sub-region geometric information based on the camera internal and external parameters and the second pixel area representing the second sub-region of the object in the video frame.
[0056] According to an embodiment of the present disclosure, the spatial attribute information represented by each pixel point in the video frame can be first determined based on the internal and external parameters of the camera. The spatial attribute information can be two-dimensional spatial attribute information or three-dimensional spatial attribute information, which is not limited here. For example, the first spatial attribute information represented by the first pixel point of the first pixel area can be obtained. Then, the first spatial attribute information can be used as a constraint to construct point cloud information that satisfies the constraint, and the point cloud information of the first sub-area can be obtained. Based on the aforementioned method, the second spatial attribute information represented by the second pixel point of the second pixel area can also be first obtained. Then, the second sub-area geometric information can be determined based on the shape represented by the second spatial attribute information.
[0057] For example, if the target area of the object is a head, a video frame or multiple continuous video frames including the head or a part of the head (such as a face) can be first obtained to obtain video information. Then, the three-dimensional spatial attribute information of the head, such as the head area, can be determined by combining the internal and external parameters of the camera, and based on this, by constructing point cloud information and extracting three-dimensional shape information, for example, point cloud information of the head area and geometric information of the face area can be obtained, or point cloud information of the face area and geometric information of the face area can be obtained, or point cloud information of the head area and geometric information of the head area can be obtained, or point cloud information of the face area and geometric information of the head area can be obtained, and the above are not limited here.
[0058] It should be noted that, when the object target area is a human head, the video information in this embodiment may come from a public data set, or the acquisition of the video information is authorized by the corresponding user.
[0059] According to an embodiment of the present disclosure, the above-mentioned constructing point cloud information for the first pixel area representing the first sub-area of the object in the video frame according to the camera internal and external parameters, and obtaining the first sub-area point cloud information and the second sub-area geometric information may include: projecting the first pixel area in the video frame into a three-dimensional space according to the camera internal and external parameters to obtain a first three-dimensional representation result of the first pixel area in the video frame. Constructing point cloud information for the first three-dimensional representation result of the first pixel area in at least one video frame to obtain the first sub-area point cloud information.
[0060] According to an embodiment of the present disclosure, when the video information includes only one video frame, after obtaining a first three-dimensional characterization result of a first pixel region in one video frame, a first sub-region of the object can be three-dimensionally reconstructed according to the first three-dimensional characterization result to obtain a three-dimensional reconstruction result of the first sub-region. Then, point cloud information is constructed for the three-dimensional reconstruction result of the first sub-region to obtain point cloud information of the first sub-region.
[0061] According to an embodiment of the present disclosure, when the video information includes multiple video frames, the first three-dimensional representation result of the first pixel area in each video frame can be first obtained to obtain multiple first three-dimensional representation results. Then, the first sub-area of the object can be three-dimensionally reconstructed based on the multiple first three-dimensional representation results to obtain the three-dimensional reconstruction result of the first sub-area. After that, point cloud information is constructed for the three-dimensional reconstruction result of the first sub-area to obtain the point cloud information of the first sub-area.
[0062] According to an embodiment of the present disclosure, the determining of the second sub-region geometric information based on the camera internal and external parameters and the second pixel region representing the second sub-region of the object in the video frame may include: projecting the second pixel region in the video frame into a three-dimensional space based on the camera internal and external parameters to obtain a second three-dimensional representation result of the second pixel region in the video frame. Determining the second sub-region geometric information based on the second three-dimensional representation result of the second pixel region in at least one video frame.
[0063] According to an embodiment of the present disclosure, when the video information includes only one video frame, after obtaining the second three-dimensional characterization result of the second pixel area in one video frame, the second sub-area of the object can be three-dimensionally reconstructed according to the second three-dimensional characterization result to obtain the three-dimensional reconstruction result of the second sub-area. Then, the second sub-area geometric information can be determined according to the shape information represented by the three-dimensional reconstruction result of the second sub-area.
[0064] According to an embodiment of the present disclosure, when the video information includes multiple video frames, the second three-dimensional representation result of the second pixel area in each video frame can be first obtained to obtain multiple second three-dimensional representation results. Then, the second sub-area of the object can be three-dimensionally reconstructed based on the multiple second three-dimensional representation results to obtain the second sub-area three-dimensional reconstruction result. Thereafter, the second sub-area geometric information can be determined based on the shape information represented by the second sub-area three-dimensional reconstruction result.
[0065] For example, the video information includes 50 video frames, and every two video frames may correspond to the same or different image content. The same image content may include, for example, the same object and the same background. Different image content may include, for example, the same object but different background, different objects but the same background, different objects and different backgrounds, etc. The same object may be, for example, the object attributes such as the position, angle, direction, size, etc. of the object collected in different video frames are the same. The different objects may be, for example, the position, angle, direction, size, etc. of the object collected in different video frames are different in at least one of the attributes. The different backgrounds may be manifested in different scenes where the object is located, different lighting in the scene where the object is located, etc., and are not limited to this.
[0066] In the above embodiment, for each video frame, the first pixel area and the second pixel area obtained from the video frame can be projected into a three-dimensional space in combination with the camera internal and external parameters corresponding to the video frame, respectively, to obtain a first three-dimensional characterization result and a second three-dimensional characterization result. It is also possible to project a merged area of the first pixel area and the second pixel area obtained from the video frame into a three-dimensional space to obtain a merged three-dimensional characterization result of the merged area. For 50 video frames, for example, 50 corresponding first three-dimensional characterization results and second three-dimensional characterization results, or 50 merged three-dimensional characterization results, can be obtained based on the above processing. The first three-dimensional characterization result and the second three-dimensional characterization result under the same video frame can have an associated relationship, and the first three-dimensional characterization result and the second three-dimensional characterization result under the same viewing angle and illumination can also have an associated relationship.
[0067] According to the embodiments of the present disclosure, the point cloud of the target area of the object can be reconstructed based on the first three-dimensional characterization result and the second three-dimensional characterization result having an associated relationship, and the point cloud information of the target area under the corresponding viewing angle and illumination can be obtained. The point cloud of the target area of the object can also be reconstructed based on the merged three-dimensional characterization result to obtain the point cloud information of the target area. This is not limited here. Corresponding to the above embodiment, for example, up to 50 point cloud information of the target area can be obtained.
[0068] According to an embodiment of the present disclosure, the 50 target area point cloud information obtained by processing the above 50 video frames can be combined with the learning of the trained second network model to obtain, for example, at most 50 target rendering color information. The target area point cloud information and the target rendering color information determined based on the same video frame can have an associated relationship.
[0069] According to an embodiment of the present disclosure, in the process of generating a virtual image of the target area of an object based on target rendering color information and target area point cloud information, the virtual image of the target area of the object generated based on the corresponding video frame can be determined based on the target area point cloud information and target rendering color information that have an associated relationship.
[0070] Through the above-mentioned embodiments of the present disclosure, by acquiring the first sub-region point cloud information and the second sub-region geometric information represented by each video frame in the video information, it can be beneficial to generate a moving virtual image based on a moving object, and the corresponding lighting characteristics can be maintained in the virtual image, thereby improving the generation effect of the virtual image.
[0071] According to an embodiment of the present disclosure, after obtaining the first sub-region point cloud information and the second sub-region geometric information, the above operation S210 may be performed. The above operation S210 may include: geometrically reconstructing the target region of the object according to the first sub-region point cloud information and the second sub-region geometric information to obtain the target region geometric information of the target region of the object. Point cloud reconstruction of the target region of the object is performed according to the first sub-region point cloud information, the second sub-region geometric information and the target region geometric information to obtain the target region point cloud information.
[0072] For example, the target area of the object may be a human head, the first sub-area point cloud information may represent the face point cloud information, and the second sub-area geometric information may represent the face expression coefficient. The human head may be geometrically reconstructed based on the face point cloud information and the face expression coefficient to obtain the head geometric information, and the human head may be point cloud reconstructed based on the face point cloud information, the face expression coefficient and the head geometric information to obtain the head point cloud information. This process may be implemented based on a trained network model or a constructed algorithm program, which is not limited here.
[0073] According to an embodiment of the present disclosure, performing point cloud reconstruction on the target area of the object based on the first sub-area point cloud information and the second sub-area geometric information to obtain the target area geometric information of the target area of the object may include: performing geometric reconstruction on the non-second sub-area in the target area of the object based on the first sub-area point cloud information and the second sub-area geometric information to obtain the non-second sub-area geometric information of the non-second sub-area. Performing geometric reconstruction on the target area of the object based on the non-second sub-area geometric information and the second sub-area geometric information to obtain the target area geometric information.
[0074] For example, corresponding to the aforementioned embodiment, the area outside the face in the head can be geometrically reconstructed based on the face point cloud information and the face expression coefficient to obtain the geometric information of the area outside the face, which may include, for example, the geometric information of the hair area, the geometric information of the neck area, etc. Then, the head can be geometrically reconstructed based on the geometric information of the hair area, the geometric information of the neck area, etc. and the face expression coefficient to determine the geometric information of the head including all areas such as the face, neck, and hair.
[0075] According to an embodiment of the present disclosure, the first sub-region point cloud information may include the first sub-region pseudo-normal information and the first sub-region diffuse reflection information. According to the first sub-region point cloud information, the second sub-region geometric information and the target region geometric information, point cloud reconstruction is performed on the target region of the object to obtain the point cloud information of the target region, which may include: rendering the non-first sub-region in the target region of the object according to the first sub-region pseudo-normal information, the first sub-region diffuse reflection information and the second sub-region geometric information to obtain the non-first sub-region pseudo-normal information of the non-first sub-region and the non-first sub-region diffuse reflection information. According to the non-first sub-region pseudo-normal information and the non-first sub-region diffuse reflection information, point cloud reconstruction is performed on the non-first sub-region to obtain the non-first sub-region point cloud information of the non-first sub-region. According to the first sub-region point cloud information, the non-first sub-region point cloud information and the target region geometric information, point cloud reconstruction is performed on the target region of the object to obtain the point cloud information of the target region.
[0076] According to an embodiment of the present disclosure, pseudo normal information can characterize the position, orientation and other characteristics of a point in a point cloud in space, and diffuse reflection information can characterize the texture characteristics of an object area. The first sub-area point cloud information obtained according to the video information can include pseudo normal information and diffuse reflection information of the point cloud of the first sub-area of the object.
[0077] For example, corresponding to the aforementioned embodiment, the pseudo-normal information and diffuse reflection information of the face can be first determined according to the face point cloud information. According to the pseudo-normal information, diffuse reflection information and facial expression coefficient, the area outside the face is rendered to obtain pseudo-normal information and diffuse reflection information of the area outside the face, which may include pseudo-normal information of the hair area, diffuse reflection information of the hair area, pseudo-normal information of the neck area, diffuse reflection information of the neck area, etc. According to the pseudo-normal information of the hair area, diffuse reflection information of the hair area, pseudo-normal information of the neck area, diffuse reflection information of the neck area, etc., the area outside the face is reconstructed by point cloud, for example, point cloud information of the hair area, point cloud information of the neck area, etc. can be obtained. Then, according to the face point cloud information, the hair area point cloud information, the neck area point cloud information and the head geometry information, the head area can be reconstructed by point cloud to obtain head point cloud information.
[0078] It should be noted that the above embodiment in which the target region of the object is described as a human head is only an exemplary embodiment, but is not limited thereto. For other physical objects existing in nature, the above process of determining the target region point cloud information of the target region of the object according to the first subregion point cloud information of the first subregion of the object and the second subregion geometric information of the second subregion of the object can also be implemented, and will not be repeated here.
[0079] Through the above-mentioned embodiments of the present disclosure, the characteristic information of each partial area can be obtained based on a finer-grained processing method, and the point cloud information of the target area can be further determined by combining the characteristic information of each partial area and the characteristic information of the overall area. The fine-grained processing method can help improve the accuracy of the determined point cloud information of the target area.
[0080] According to an embodiment of the present disclosure, the target area point cloud information may include target area pseudo-normal information and target area diffuse reflection information. Before performing the above operation S220, the target rendering color information may be first determined. The method may include: rendering the target area point cloud information according to at least one of the target area pseudo-normal information, the target area diffuse reflection information and the target area geometric information to obtain the target rendering color information.
[0081] According to an embodiment of the present disclosure, based on the target area pseudo-normal information and the target area diffuse reflection information, the point pseudo-normal information and the point diffuse reflection information corresponding to each point in the target point cloud represented by the target area point cloud information can be determined. Based on the point pseudo-normal information and the point diffuse reflection information, the point color information of each point in the target point cloud can be determined, and the point color information can be used as the target rendering color information of each point in the target point cloud.
[0082] According to an embodiment of the present disclosure, the target rendering color information of the target point cloud may also be determined based on the point color information of each point in the target point cloud combined with the position information of each point in the target point cloud represented by the target area geometric information.
[0083] According to an embodiment of the present disclosure, the initial rendering color information of the target point cloud can also be determined based on the point color information and position information of each point in the target point cloud. Then, the initial rendering color information can be denoised in combination with the target area geometry information to obtain the target rendering color information.
[0084] It should be noted that the above method for obtaining the target rendering color information is only an exemplary embodiment. In actual applications, according to business needs, at least one of the target area pseudo-normal information, target area diffuse reflection information and target area geometric information can be selected to render the target area point cloud information to obtain the target rendering color information, which is not limited here.
[0085] Through the above-mentioned embodiments of the present disclosure, relatively accurate target rendering color information that can reflect the color characteristics of the object itself can be obtained for the three-dimensional point cloud, thereby achieving a better rendering effect.
[0086] According to an embodiment of the present disclosure, rendering the target area point cloud information according to at least one of the target area pseudo-normal information, the target area diffuse reflection information, and the target area geometric information, and obtaining the target rendering color information may include: determining the first-perspective pseudo-normal information and the first-perspective diffuse reflection information of the target point cloud at the first perspective according to the target area pseudo-normal information and the target area diffuse reflection information, and the target point cloud is a point cloud represented by the target area point cloud information. Rendering the target area point cloud information represented by the target point cloud at the first perspective according to at least one of the first-perspective pseudo-normal information, the first-perspective diffuse reflection information, and the target area geometric information, and obtaining the image space shading information of the target point cloud at the first perspective. The image space shading information and the first-perspective diffuse reflection information are fused to obtain the target rendering color information.
[0087] According to an embodiment of the present disclosure, the first viewing angle may represent any viewing angle at which the target point cloud can be observed. The target area pseudo-normal information and the target area diffuse reflection information may be input into a trained second network model, and the second network model may learn the characteristic information of the target point cloud at each viewing angle based on one or more viewing angles.
[0088] For example, the second network model can first learn the first-perspective pseudo-normal information and the first-perspective diffuse reflection information of the target point cloud in the first perspective. Then, the second network model can learn the image space shading information of the target point cloud when it is projected to the image space based on the first perspective based on the first-perspective pseudo-normal information, the first-perspective diffuse reflection information and the target area geometry information. The image space shading information may not have texture information. Afterwards, the second network model can fuse the learned image space shading information and the first-perspective diffuse reflection information to obtain the target rendering color information of the target point cloud projected to the image space based on the first perspective. The target rendering color information may include color information and texture information.
[0089] Through the above-mentioned embodiments of the present disclosure, target rendering color information of the target point cloud at the first perspective can be obtained, which can be applicable to the scene of generating a two-dimensional virtual image and can show a better rendering effect.
[0090] It should be noted that the above embodiment can also be applied to the scene of generating a three-dimensional virtual image, for example, it can be applied to the scene of generating a three-dimensional virtual image that only requires Xu Ran's perspective, and it is not limited to this.
[0091] According to an embodiment of the present disclosure, the above-mentioned fusion of the image space shading information and the first-view diffuse reflection information to obtain the target rendering color information may include: fusing the image space shading information and the first-view diffuse reflection information to obtain the image space rendering color information of the target point cloud at the first view. Determine the target rendering color information based on the image space rendering color information of multiple viewpoints.
[0092] According to an embodiment of the present disclosure, the multiple perspectives may include a first perspective and at least one other perspective different from the first perspective. For each of the multiple perspectives, the image space rendering color information of the corresponding perspective may be obtained in combination with the aforementioned method, and the multiple image space rendering color information corresponding to the multiple perspectives may be determined as the target rendering color information.
[0093] Through the above-mentioned embodiments of the present disclosure, by rendering color information according to the image space of multiple perspectives and determining the target rendering color information, it can be applicable to the scene of generating three-dimensional virtual images and moving virtual images, and can show better rendering effects and driving effects.
[0094] According to an embodiment of the present disclosure, after obtaining the target rendering color information based on the aforementioned method, the above operation S220 may be performed. The above operation S220 may include: according to the target rendering color information, rendering the target area point cloud information represented by the target point cloud in the second perspective, to obtain the second perspective rendering color information and the second perspective point cloud information of the target point cloud in the second perspective. According to the second perspective rendering color information, rendering the second perspective point cloud information, to obtain the virtual image rendering result of the target area of the object in the second perspective. According to the virtual image rendering result, generating a virtual image.
[0095] According to an embodiment of the present disclosure, the second perspective and the first perspective may represent the same perspective or different perspectives. After obtaining the second perspective rendering color information and the second perspective point cloud information of the second perspective, the second perspective rendering color information and the second perspective point cloud information may be fused to obtain a virtual image rendering result of the second perspective. In this embodiment, the generated virtual image may be a two-dimensional virtual image that only displays the second perspective, or a three-dimensional virtual image that only renders the second perspective. For other areas in the three-dimensional virtual image that are not rendered, they may be displayed with a default effect or with a set default rendering effect.
[0096] According to an embodiment of the present disclosure, generating a virtual image according to the virtual image rendering result may include: generating a virtual image according to the virtual image rendering results of multiple perspectives.
[0097] According to an embodiment of the present disclosure, based on the aforementioned method of obtaining the virtual image rendering result of the second perspective, the virtual image rendering results of other perspectives different from the second perspective can be obtained, and the virtual image rendering results of multiple perspectives can be obtained. Combining the virtual image rendering results of multiple perspectives, the rendering effect of the target point cloud at each perspective can be determined. In this embodiment, the generated virtual image can be a three-dimensional virtual image obtained after rendering for each perspective.
[0098] Through the above-mentioned embodiments of the present disclosure, a method for generating virtual images in various dimensions and various motion states can be implemented. In particular, for a moving virtual image, by rendering in combination with perspective characteristics, the rendered virtual image can show a good display effect when moving to various angles, which can effectively improve the driving effect of the moving virtual image.
[0099] According to an embodiment of the present disclosure, the above-mentioned virtual image generation method can be implemented by training a complete deep learning model.
[0100] Figure 3 A flowchart of a deep learning model training method according to an embodiment of the present disclosure is schematically shown.
[0101] like Figure 3 As shown, the method includes operations S310 to S340.
[0102] In operation S310, a sample video of the target area of the object is input into the first neural network of the deep learning model to obtain sample first sub-area point cloud information of the first sub-area of the sample object and sample second sub-area geometric information of the second sub-area of the sample object, and the sample video has a real rendering color label and a real target area point cloud label.
[0103] In operation S320, the sample first sub-region point cloud information and the sample second sub-region geometric information are input into the second neural network of the deep learning model to obtain the sample target region point cloud information of the sample object target region, the sample object target region includes the sample object first sub-region and the sample object second sub-region, and the sample target region point cloud information includes the sample target region diffuse reflection information and the sample target region pseudo-normal information.
[0104] In operation S330, the sample target area diffuse reflection information and the sample target area pseudo-normal information are input into a third neural network of the deep learning model to obtain sample rendering color information.
[0105] In operation S340, a deep learning model is trained according to the sample rendering color information, the real rendering color label, the sample target area point cloud information, and the real target area point cloud label to obtain a trained deep learning model.
[0106] According to an embodiment of the present disclosure, the sample object may have the same or similar features as the aforementioned object. The first sub-region of the sample object may have the same or similar features as the aforementioned first sub-region, and the sample first sub-region point cloud information may have the same or similar features as the aforementioned first sub-region point cloud information. The second sub-region of the sample object may have the same or similar features as the aforementioned second sub-region, and the sample second sub-region geometric information may have the same or similar features as the aforementioned second sub-region geometric information. The target region of the sample object may have the same or similar features as the aforementioned target region, and the sample target region point cloud information may have the same or similar features as the aforementioned target region point cloud information. The sample target region diffuse reflection information may have the same or similar features as the aforementioned target region diffuse reflection information. The sample target region pseudo-normal information may have the same or similar features as the aforementioned target region pseudo-normal information. The second neural network may have the same or similar features as the aforementioned first network model, and the third neural network may have the same or similar features as the aforementioned second network model. The sample rendering color information may have the same or similar features as the aforementioned target rendering color information. The sample video may have the same or similar features as the aforementioned video information. No further details will be given here.
[0107] According to an embodiment of the present disclosure, the first neural network may include, for example, a point cloud generation model and any one of the following: 3DMM (3D Morphable Models), albedo-3DMM (reflectivity-three-dimensional deformable model), etc., and may not be limited thereto. The point cloud generation model may be any neural network model that can generate point cloud information based on image information, and is not limited here. Based on the point cloud generation model, the sample video is processed to obtain the point cloud information of the first sub-region of the sample. Based on 3DMM, the sample video is processed to obtain the geometric information of the second sub-region of the sample.
[0108] According to an embodiment of the present disclosure, a real rendering color label can represent the color information of the target area obtained by directly analyzing the target area of the object in the sample video. A real target area point cloud label can represent the target area point cloud information obtained by processing the target area in the sample video based on a high-precision point cloud construction model. A real target area point cloud label can include the real diffuse reflection information and the real pseudo-normal information of the target point cloud represented by the target area point cloud information.
[0109] According to an embodiment of the present disclosure, a more detailed learning process corresponding to the first neural network, the second neural network and the third neural network in the above training process can be found in the aforementioned embodiment and will not be described in detail here.
[0110] According to an embodiment of the present disclosure, in the above training process, RGB loss, perceptual loss, object feature loss, mask loss, eikonal-sdf loss, etc. can be constructed for network supervision, and these losses are converged by training the network to complete the training process. RGB supervision can be used to constrain the sample rendering color information output by the deep learning model to be close to the color information represented by the real rendering color label. Perceptual loss can establish coarse-grained constraints for the sample target area point cloud information and the real target area point cloud label, which can be used to constrain different perspectives to target the same sample object. Object feature loss can establish fine-grained constraints for the sample target area point cloud information and the real target area point cloud label corresponding to the same perspective, which can be used to constrain the sample target area point cloud information corresponding to the same perspective to be close to the point cloud information represented by the real target area point cloud label. Mask loss can be used to constrain the semantic information represented by the fusion of the sample rendering color information and the sample target area point cloud information corresponding to the same perspective to be close to the semantic information represented by the fusion of the real rendering color label and the real target area point cloud label corresponding to the same perspective. The eikonal-sdf loss can be used to constrain the surface represented by the sample rendering color information and the sample target area point cloud information to be smooth.
[0111] It should be noted that when the target area of the object is a human head, the deep learning model obtained through this embodiment contains the facial information of the object, but the construction of the deep learning model is performed after the user's authorization, and its construction process complies with relevant laws and regulations.
[0112] Through the above-mentioned embodiments of the present disclosure, a model that is always applicable to the method of generating a moving virtual image can be realized. The model has strong scalability and can be applied to a variety of virtual image generation scenarios.
[0113] According to an embodiment of the present disclosure, the above operation S310 may include: determining the first sub-region sparse point cloud information according to the sample video. Upsampling the first sub-region sparse point cloud information to obtain the first sub-region dense point cloud information. Determining the sample first sub-region point cloud information according to at least one of the first sub-region sparse point cloud information and the first sub-region dense point cloud information.
[0114] According to an embodiment of the present disclosure, the above-mentioned upsampling process can be implemented based on, for example, a KNN-mean algorithm. For example, the position information of each point in the sparse point cloud of the first sub-area can be first determined based on the sparse point cloud information of the first sub-area. Then, the position average value of the position information of multiple adjacent points in the sparse point cloud of the first sub-area can be calculated to obtain the insertion point position information. By inserting a new point at the insertion point position to obtain a denser dense point cloud of the first sub-area, the upsampling process can be implemented. In this process, the pseudo-normal information and diffuse reflection information of the new point inserted at the insertion point position can also be determined by calculating the average value of the pseudo-normal information and diffuse reflection information of multiple original points adjacent to the new point.
[0115] It should be noted that the above upsampling process can be performed multiple times, and after each upsampling, a dense point cloud information of the first sub-region with a higher density can be obtained. Each stage of training can use one or more first sub-region point cloud information with different densities.
[0116] For example, when starting to train a deep learning model, you can first use the sparse point cloud information of the first sub-region, combined with other information required in the training process, to train and obtain a deep learning model trained in the first stage. Afterwards, you can use the dense point cloud information of the first sub-region, combined with other information required in the training process, to further train the deep learning model trained in the first stage, to obtain a deep learning model trained in the second stage. Afterwards, you can use the dense point cloud information of the first sub-region with a higher density obtained by upsampling the dense point cloud information of the first sub-region, combined with other information required in the training process, to further train the deep learning model trained in the second stage, to obtain a deep learning model trained in the next stage. And so on, this process can be repeated multiple times.
[0117] Through the above-mentioned embodiments of the present disclosure, by dynamically sampling and changing the number of point clouds at regular intervals or according to a set incremental threshold, the sophistication of geometric learning can be increased, and the output accuracy and rendering effect of the deep learning model can be improved.
[0118] According to an embodiment of the present disclosure, when a virtual image needs to be generated, a virtual image can be generated based on the deep learning model obtained through the above training.
[0119] Figure 4 The method for generating a virtual image based on a deep learning model according to an embodiment of the present disclosure is schematically illustrated.
[0120] like Figure 4 As shown, the method includes operations S410 to S420.
[0121] In operation S410, a video to be processed is obtained, where the video to be processed includes an object to be processed.
[0122] In operation S420, the video to be processed is input into a deep learning model to obtain a virtual image of the object to be processed.
[0123] According to an embodiment of the present disclosure, the video to be processed may have the same or similar features as the aforementioned video information. The object to be processed may have the same or similar features as the aforementioned object. No further details will be given here.
[0124] Figure 5 A schematic diagram of generating a virtual image based on a deep learning model according to an embodiment of the present disclosure is schematically shown.
[0125] like Figure 5 As shown, the deep learning model 500 includes a first neural network 510, a second neural network 520, and a third neural network 530. The object to be processed in the video to be processed 501 is, for example, a human head. After the video to be processed 501 is input into the deep learning model 500, for example, the face geometry information 511 and the face point cloud information 512 can be extracted through the first neural network 510. The face geometry information 511 and the face point cloud information 512 can be processed by the second neural network 520 to obtain the head point cloud information 521. The head point cloud information 521 can include head geometry information, head diffuse reflection information, and head pseudo-normal information. The head point cloud information can be input into the third neural network 530 for processing, and the third neural network 530 can output head rendering color information 531 from multiple perspectives by learning the head coloring information. By exporting the head point cloud information 521 output by the second neural network 520, combining it with the head rendering color information 531 output by the third neural network 530, and using the rendering pipeline to embed dynamic lighting effects, a rendered two-dimensional or three-dimensional virtual image 541 can be generated.
[0126] Through the above-mentioned embodiments of the present disclosure, a method for driving the generation of a virtual image is provided, which has great advantages over other methods in terms of computing power cost, hardware cost, terminal adaptability, rendering engine adaptability, convergence speed, etc. It is not only applicable to the generation and interaction scenarios of virtual digital humans in the Metaverse, but also to the generation and interaction scenarios of virtual images in most terminals at present. It is expected to become a standard form of multi-terminal digital human generation, display and interaction in the Metaverse.
[0127] Figure 6 A block diagram of a virtual image generating device according to an embodiment of the present disclosure is schematically shown.
[0128] like Figure 6 As shown, the virtual image generating device 600 includes a target point cloud determining module 610 and a generating module 620 .
[0129] The target point cloud determination module 610 is used to determine the target area point cloud information of the object target area according to the first sub-area point cloud information of the first sub-area of the object and the second sub-area geometric information of the second sub-area of the object, and the object target area includes the first sub-area of the object and the second sub-area of the object.
[0130] The generation module 620 is used to generate a virtual image of the target area of the object according to the target rendering color information and the target area point cloud information.
[0131] According to an embodiment of the present disclosure, the virtual image generation device also includes a video information acquisition module, a camera internal and external parameter acquisition module, a point cloud construction module and a geometry determination module.
[0132] The video information acquisition module is used to acquire video information of the target area of the object, and the video information includes at least one video frame.
[0133] The camera internal and external parameter acquisition module is used to obtain the camera internal and external parameters of the video frame.
[0134] The point cloud construction module is used to construct point cloud information for a first pixel area representing a first sub-area of an object in a video frame according to internal and external parameters of the camera, so as to obtain point cloud information of the first sub-area.
[0135] The geometry determination module is used to determine the geometry information of the second sub-region according to the camera internal and external parameters and the second pixel region representing the second sub-region of the object in the video frame.
[0136] According to an embodiment of the present disclosure, the point cloud construction module includes a first projection unit and a point cloud construction unit.
[0137] The first projection unit is used to project a first pixel area in the video frame into a three-dimensional space according to the internal and external parameters of the camera to obtain a first three-dimensional representation result of the first pixel area in the video frame.
[0138] The point cloud construction unit is used to construct point cloud information based on a first three-dimensional representation result of a first pixel area in at least one video frame to obtain first sub-area point cloud information.
[0139] According to an embodiment of the present disclosure, the geometry determination module includes a second projection unit and a geometry determination unit.
[0140] The second projection unit is used to project the second pixel area in the video frame into the three-dimensional space according to the internal and external parameters of the camera to obtain a second three-dimensional representation result of the second pixel area in the video frame.
[0141] The geometry determination unit is used to determine the second sub-region geometry information according to the second three-dimensional representation result of the second pixel region in at least one video frame.
[0142] According to an embodiment of the present disclosure, the target point cloud determination module includes a geometry reconstruction unit and a point cloud reconstruction unit.
[0143] The geometric reconstruction unit is used to geometrically reconstruct the target area of the object according to the first sub-area point cloud information and the second sub-area geometric information to obtain the target area geometric information of the target area of the object.
[0144] The point cloud reconstruction unit is used to reconstruct the point cloud of the target area of the object according to the point cloud information of the first sub-area, the geometric information of the second sub-area and the geometric information of the target area to obtain the point cloud information of the target area.
[0145] According to an embodiment of the present disclosure, the geometry reconstruction unit includes a first geometry reconstruction subunit and a second geometry reconstruction subunit.
[0146] The first geometric reconstruction subunit is used to geometrically reconstruct the non-second sub-region in the object target region according to the first sub-region point cloud information and the second sub-region geometric information to obtain the non-second sub-region geometric information of the non-second sub-region.
[0147] The second geometric reconstruction subunit is used to geometrically reconstruct the target area of the object according to the non-second sub-area geometric information and the second sub-area geometric information to obtain the target area geometric information.
[0148] According to an embodiment of the present disclosure, the first sub-region point cloud information includes first sub-region pseudo-normal information and first sub-region diffuse reflection information. The point cloud reconstruction unit includes a rendering sub-unit, a first point cloud reconstruction sub-unit and a second point cloud reconstruction sub-unit.
[0149] The rendering sub-unit is used to render the non-first sub-region in the object target region according to the first sub-region pseudo-normal information, the first sub-region diffuse reflection information and the second sub-region geometric information to obtain the non-first sub-region pseudo-normal information and the non-first sub-region diffuse reflection information of the non-first sub-region.
[0150] The first point cloud reconstruction subunit is used to reconstruct the point cloud of the non-first sub-region according to the pseudo-normal information of the non-first sub-region and the diffuse reflection information of the non-first sub-region to obtain the non-first sub-region point cloud information of the non-first sub-region.
[0151] The second point cloud reconstruction subunit is used to reconstruct the point cloud of the target area of the object according to the point cloud information of the first sub-area, the point cloud information of the non-first sub-area and the geometric information of the target area to obtain the point cloud information of the target area.
[0152] According to an embodiment of the present disclosure, the target area point cloud information includes target area pseudo-normal information and target area diffuse reflection information. The virtual image generation device also includes a rendering module.
[0153] The rendering module is used to render the point cloud information of the target area according to at least one of the pseudo-normal information of the target area, the diffuse reflection information of the target area and the geometric information of the target area to obtain the target rendering color information.
[0154] According to an embodiment of the present disclosure, the rendering module includes a first viewing angle information determining unit, a first rendering unit and a fusion unit.
[0155] The first viewing angle information determination unit is used to determine the first viewing angle pseudo normal information and the first viewing angle diffuse reflection information of the target point cloud at the first viewing angle according to the target area pseudo normal information and the target area diffuse reflection information, wherein the target point cloud is the point cloud represented by the target area point cloud information.
[0156] The first rendering unit is used to render the target area point cloud information represented by the target point cloud at the first perspective according to at least one of the first perspective pseudo-normal information, the first perspective diffuse reflection information and the target area geometric information, so as to obtain the image space shading information of the target point cloud at the first perspective.
[0157] The fusion unit is used to fuse the image space shading information and the first-view diffuse reflection information to obtain the target rendering color information.
[0158] According to an embodiment of the present disclosure, the fusion unit includes a fusion subunit and a rendering color determination subunit.
[0159] The fusion subunit is used to fuse the image space shading information and the first-view diffuse reflection information to obtain the image space rendering color information of the target point cloud in the first-view image space.
[0160] The rendering color determination subunit is used to determine target rendering color information according to the image space rendering color information of multiple viewing angles.
[0161] According to an embodiment of the present disclosure, the generating module includes a second rendering unit, a third rendering unit and a generating unit.
[0162] The second rendering unit is used to render the target area point cloud information represented by the target point cloud at the second perspective according to the target rendering color information, so as to obtain the second perspective rendering color information and the second perspective point cloud information of the target point cloud at the second perspective.
[0163] The third rendering unit is used to render the second perspective point cloud information according to the second perspective rendering color information to obtain a virtual image rendering result of the object target area at the second perspective.
[0164] The generating unit is used to generate a virtual image according to the virtual image rendering result.
[0165] According to an embodiment of the present disclosure, the generating unit includes a generating subunit.
[0166] The generating subunit is used to generate a virtual image according to the virtual image rendering results of multiple viewing angles.
[0167] Figure 7 A block diagram of a deep learning model training device according to an embodiment of the present disclosure is schematically shown.
[0168] like Figure 7 As shown, the training device 700 for the deep learning model includes a first network module 710, a second network module 720, a third network module 730 and a training module 740.
[0169] The first network module 710 is used to input the sample video of the target area of the object into the first neural network of the deep learning model to obtain the sample first sub-area point cloud information of the first sub-area of the sample object and the sample second sub-area geometric information of the second sub-area of the sample object, and the sample video has a real rendering color label and a real target area point cloud label.
[0170] The second network module 720 is used to input the sample first sub-region point cloud information and the sample second sub-region geometric information into the second neural network of the deep learning model to obtain the sample target region point cloud information of the sample object target region, the sample object target region includes the sample object first sub-region and the sample object second sub-region, and the sample target region point cloud information includes the sample target region diffuse reflection information and the sample target region pseudo-normal information.
[0171] The third network module 730 is used to input the sample target area diffuse reflection information and the sample target area pseudo-normal information into the third neural network of the deep learning model to obtain the sample rendering color information.
[0172] The training module 740 is used to train the deep learning model according to the sample rendering color information, the real rendering color label, the sample target area point cloud information and the real target area point cloud label to obtain a trained deep learning model.
[0173] According to an embodiment of the present disclosure, the first network module includes a sparse point cloud determination unit, an upsampling unit and a sample point cloud determination unit.
[0174] The sparse point cloud determination unit is used to determine the sparse point cloud information of the first sub-region according to the sample video.
[0175] The upsampling unit is used to upsample the sparse point cloud information of the first sub-region to obtain dense point cloud information of the first sub-region.
[0176] The sample point cloud determination unit is used to determine the sample first sub-region point cloud information according to at least one of the first sub-region sparse point cloud information and the first sub-region dense point cloud information.
[0177] Figure 8 A block diagram of a virtual image generating device according to an embodiment of the present disclosure is schematically shown.
[0178] like Figure 8 As shown, the virtual image generating device 800 includes a video acquisition module 810 and a deep learning module 820 .
[0179] The video acquisition module 810 is used to acquire a video to be processed, where the video to be processed includes an object to be processed.
[0180] The deep learning module 820 is used to input the video to be processed into the deep learning model to obtain a virtual image of the object to be processed, wherein the deep learning model is trained using the training device of the deep learning model described in the present disclosure.
[0181] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0182] According to an embodiment of the present disclosure, an electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute at least one of the virtual image generation method and deep learning model training method of the present disclosure.
[0183] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute at least one of the virtual image generation method and deep learning model training method of the present disclosure.
[0184] According to an embodiment of the present disclosure, a computer program product includes a computer program, wherein the computer program is stored on at least one of a readable storage medium and an electronic device, and when the computer program is executed by a processor, it implements at least one of the virtual image generation method and the deep learning model training method of the present disclosure.
[0185] Fig. 9A schematic block diagram of an example electronic device 900 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0186] like Fig. 9 As shown, the device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0187] A number of components in the device 900 are connected to an input / output (I / O) interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0188] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above, such as at least one of the virtual image generation method and the deep learning model training method. For example, in some embodiments, at least one of the virtual image generation method and the deep learning model training method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of at least one of the virtual image generation method and the deep learning model training method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured in any other appropriate manner (e.g., by means of firmware) to execute at least one of the virtual image generation method and the deep learning model training method.
[0189] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0190] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0191] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0192] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0193] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0194] A computer system may include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises through computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server combined with a blockchain.
[0195] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0196] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for generating a virtual image, include: Determine target region point cloud information of a target region of the object according to first subregion point cloud information of a first subregion of the object and second subregion geometric information of a second subregion of the object, wherein the target region of the object includes the first subregion of the object and the second subregion of the object, and the first subregion and the second subregion are different subregions; as well as Generating a virtual image of the target area of the object according to the target rendering color information and the point cloud information of the target area; The target area point cloud information of the target area of the object to be determined includes: According to the first sub-region point cloud information and the second sub-region geometric information, geometrically reconstructing the non-second sub-region in the object target region to obtain the non-second sub-region geometric information of the non-second sub-region; and According to the non-second sub-region geometric information and the second sub-region geometric information, geometrically reconstruct the target region of the object to obtain the target region geometric information; Point cloud reconstruction is performed on the target area of the object according to the first sub-area point cloud information, the second sub-area geometric information and the target area geometric information to obtain the target area point cloud information.
2. The method according to claim 1, further comprising: include: Before determining the target region point cloud information of the target region of the object according to the first sub-region point cloud information of the first sub-region of the object and the second sub-region geometric information of the second sub-region of the object, Acquire video information of the target area of the object, wherein the video information includes at least one video frame; Obtaining camera internal and external parameters of the video frame; Constructing point cloud information for a first pixel region representing a first sub-region of the object in the video frame according to the camera internal and external parameters, and obtaining point cloud information of the first sub-region; as well as The second sub-region geometric information is determined according to the camera internal and external parameters and a second pixel region representing the second sub-region of the object in the video frame.
3. The method according to claim 2, in, The step of constructing point cloud information for a first pixel region representing a first sub-region of the object in the video frame according to the camera internal and external parameters, and obtaining the point cloud information of the first sub-region includes: Projecting a first pixel region in the video frame into a three-dimensional space according to the camera internal and external parameters to obtain a first three-dimensional representation result of the first pixel region in the video frame; and Point cloud information is constructed for a first three-dimensional representation result of a first pixel area in the at least one video frame to obtain the first sub-area point cloud information.
4. The method according to claim 2, in, The determining the second sub-region geometric information according to the camera internal and external parameters and a second pixel region representing the second sub-region of the object in the video frame comprises: Projecting the second pixel region in the video frame into a three-dimensional space according to the camera internal and external parameters to obtain a second three-dimensional representation result of the second pixel region in the video frame; and The second sub-region geometric information is determined according to a second three-dimensional representation result of a second pixel region in the at least one video frame.
5. The method according to claim 1, in, The first sub-region point cloud information includes first sub-region pseudo-normal information and first sub-region diffuse reflection information; performing point cloud reconstruction on the target region of the object according to the first sub-region point cloud information, the second sub-region geometric information and the target region geometric information to obtain the target region point cloud information includes: Rendering a non-first sub-region in the object target region according to the first sub-region pseudo-normal information, the first sub-region diffuse reflection information, and the second sub-region geometric information to obtain the non-first sub-region pseudo-normal information and the non-first sub-region diffuse reflection information of the non-first sub-region; Reconstructing a point cloud of the non-first sub-region according to the pseudo-normal information of the non-first sub-region and the diffuse reflection information of the non-first sub-region to obtain the point cloud information of the non-first sub-region; and Point cloud reconstruction is performed on the target area of the object according to the first sub-area point cloud information, the non-first sub-area point cloud information and the target area geometric information to obtain the target area point cloud information.
6. The method according to claim 1, in, The target area point cloud information includes target area pseudo normal information and target area diffuse reflection information; the method further includes: before generating a virtual image of the target area of the object according to the target rendering color information and the target area point cloud information, The target area point cloud information is rendered according to at least one of the target area pseudo-normal information, the target area diffuse reflection information and the target area geometric information to obtain the target rendering color information.
7. The method according to claim 6, in, The rendering of the target area point cloud information according to at least one of the target area pseudo-normal information, the target area diffuse reflection information and the target area geometric information to obtain the target rendering color information includes: Determine, according to the target area pseudo-normal information and the target area diffuse reflection information, the first-perspective pseudo-normal information and the first-perspective diffuse reflection information of the target point cloud at the first perspective, the target point cloud being the point cloud represented by the target area point cloud information; Rendering the target area point cloud information represented by the target point cloud at the first perspective according to at least one of the first perspective pseudo-normal information, the first perspective diffuse reflection information, and the target area geometric information to obtain image space shading information of the target point cloud at the first perspective; and The image space shading information and the first viewing angle diffuse reflection information are fused to obtain the target rendering color information.
8. The method according to claim 7, in, The fusing the image space shading information and the first viewing angle diffuse reflection information to obtain the target rendering color information includes: fusing the image space shading information and the first viewing angle diffuse reflection information to obtain the image space rendering color information of the target point cloud in the first viewing angle; and The target rendering color information is determined according to the image space rendering color information of multiple viewing angles.
9. The method according to claim 7 or 8, in, Generating a virtual image of the target area of the object according to the target rendering color information and the target area point cloud information includes: Rendering the target area point cloud information represented by the target point cloud at the second perspective according to the target rendering color information to obtain the second perspective rendering color information and the second perspective point cloud information of the target point cloud at the second perspective; Rendering the second perspective point cloud information according to the second perspective rendering color information to obtain a virtual image rendering result of the object target area at the second perspective; and The virtual image is generated according to the virtual image rendering result.
10. The method according to claim 9, in, Generating the virtual image according to the virtual image rendering result includes: The virtual image is generated according to the virtual image rendering results of multiple perspectives.
11. A training method for a deep learning model, include: Inputting a sample video of the target area of the object into a first neural network of a deep learning model, obtaining sample first sub-area point cloud information of a first sub-area of the sample object and sample second sub-area geometric information of a second sub-area of the sample object, wherein the sample video has a real rendering color label and a real target area point cloud label, and the first sub-area and the second sub-area are different sub-areas; Inputting the sample first sub-region point cloud information and the sample second sub-region geometric information into a second neural network of a deep learning model to obtain the sample target region point cloud information of the sample object target region, wherein the sample object target region includes the sample object first sub-region and the sample object second sub-region, and the sample target region point cloud information includes the sample target region diffuse reflection information and the sample target region pseudo-normal information; Inputting the sample target area diffuse reflection information and the sample target area pseudo-normal information into the third neural network of the deep learning model to obtain sample rendering color information; as well as Training the deep learning model according to the sample rendering color information, the real rendering color label, the sample target area point cloud information, and the real target area point cloud label to obtain a trained deep learning model; The obtaining of the sample target area point cloud information of the sample object target area comprises: According to the first sub-region point cloud information and the second sub-region geometric information, geometrically reconstructing the non-second sub-region in the sample object target region to obtain the non-second sub-region geometric information of the non-second sub-region; and According to the non-second sub-region geometric information and the second sub-region geometric information, geometrically reconstruct the target region of the sample object to obtain the target region geometric information; The target area of the sample object is reconstructed by performing point cloud reconstruction on the target area according to the first sub-area point cloud information, the second sub-area geometric information and the target area geometric information to obtain the target area point cloud information.
12. The method according to claim 11, in, The step of inputting the sample video of the target area of the object into the first neural network of the deep learning model to obtain the sample first sub-area point cloud information of the first sub-area of the sample object comprises: Determining sparse point cloud information of a first sub-region according to the sample video; Upsampling the sparse point cloud information of the first sub-region to obtain dense point cloud information of the first sub-region; and The sample first sub-region point cloud information is determined according to at least one of the first sub-region sparse point cloud information and the first sub-region dense point cloud information.
13. A method for generating a virtual image, include: Acquire a video to be processed, wherein the video to be processed includes an object to be processed; as well as Input the video to be processed into a deep learning model to obtain a virtual image of the object to be processed, Wherein, the deep learning model is trained using the method according to any one of claims 11-12.
14. A virtual image generating device, include: a target point cloud determination module, configured to determine target region point cloud information of a target region of an object according to first subregion point cloud information of a first subregion of the object and second subregion geometric information of a second subregion of the object, wherein the target region of the object includes the first subregion of the object and the second subregion of the object, and the first subregion and the second subregion are different subregions; as well as A generating module, used for generating a virtual image of the target area of the object according to the target rendering color information and the point cloud information of the target area; The target point cloud determination module includes: a geometric reconstruction unit, configured to geometrically reconstruct a non-second sub-region in the target region of the object according to the first sub-region point cloud information and the second sub-region geometric information to obtain the non-second sub-region geometric information of the non-second sub-region; and geometrically reconstruct the target region of the object according to the non-second sub-region geometric information and the second sub-region geometric information to obtain the target region geometric information; and perform point cloud reconstruction on the target region of the object according to the first sub-region point cloud information, the second sub-region geometric information and the target region geometric information to obtain the target region point cloud information; and The point cloud reconstruction unit is used to reconstruct the point cloud of the target area of the object according to the first sub-area point cloud information, the second sub-area geometric information and the target area geometric information to obtain the target area point cloud information.
15. The device according to claim 14, further comprising: include: A video information acquisition module, used to acquire video information of the target area of the object, wherein the video information includes at least one video frame; A camera internal and external parameter acquisition module, used to acquire the camera internal and external parameters of the video frame; A point cloud construction module, configured to construct point cloud information for a first pixel region representing a first sub-region of the object in the video frame according to the camera internal and external parameters, and obtain point cloud information of the first sub-region; as well as The geometry determination module is used to determine the geometry information of the second sub-region according to the camera internal and external parameters and a second pixel region representing the second sub-region of the object in the video frame.
16. The device according to claim 15, in, The point cloud construction module includes: A first projection unit, configured to project a first pixel region in the video frame into a three-dimensional space according to the camera internal and external parameters, to obtain a first three-dimensional representation result of the first pixel region in the video frame; and The point cloud construction unit is used to construct point cloud information based on the first three-dimensional representation result of the first pixel area in the at least one video frame to obtain the first sub-area point cloud information.
17. The device according to claim 15, in, The geometry determination module comprises: A second projection unit, configured to project a second pixel region in the video frame into a three-dimensional space according to the camera internal and external parameters, to obtain a second three-dimensional representation result of the second pixel region in the video frame; and The geometry determination unit is used to determine the second sub-region geometry information according to the second three-dimensional representation result of the second pixel region in the at least one video frame.
18. The device according to claim 14, in, The first sub-region point cloud information includes first sub-region pseudo-normal information and first sub-region diffuse reflection information; the point cloud reconstruction unit includes: a rendering subunit, configured to render a non-first subregion in the object target region according to the first subregion pseudo-normal information, the first subregion diffuse reflection information and the second subregion geometric information, to obtain the non-first subregion pseudo-normal information and the non-first subregion diffuse reflection information of the non-first subregion; A first point cloud reconstruction subunit is used to reconstruct the point cloud of the non-first sub-region according to the pseudo-normal information of the non-first sub-region and the diffuse reflection information of the non-first sub-region to obtain the non-first sub-region point cloud information of the non-first sub-region; and The second point cloud reconstruction subunit is used to reconstruct the point cloud of the target area of the object according to the first sub-area point cloud information, the non-first sub-area point cloud information and the target area geometric information to obtain the target area point cloud information.
19. The device according to claim 14, in, The target area point cloud information includes target area pseudo-normal information and target area diffuse reflection information; the device also includes: A rendering module is used to render the point cloud information of the target area according to at least one of the pseudo-normal information of the target area, the diffuse reflection information of the target area and the geometric information of the target area to obtain the target rendering color information.
20. The device according to claim 19, in, The rendering module includes: A first viewing angle information determination unit, configured to determine first viewing angle pseudo normal information and first viewing angle diffuse reflection information of a target point cloud at a first viewing angle according to the target area pseudo normal information and the target area diffuse reflection information, wherein the target point cloud is a point cloud represented by the target area point cloud information; A first rendering unit is configured to render the target area point cloud information represented by the target point cloud at the first perspective according to at least one of the first perspective pseudo-normal information, the first perspective diffuse reflection information, and the target area geometric information, so as to obtain image space shading information of the target point cloud at the first perspective; and A fusion unit is used to fuse the image space shading information and the first viewing angle diffuse reflection information to obtain the target rendering color information.
21. The device according to claim 20, in, The fusion unit comprises: a fusion subunit, configured to fuse the image space shading information and the first viewing angle diffuse reflection information to obtain the image space rendering color information of the target point cloud in the first viewing angle; and The rendering color determination subunit is used to determine the target rendering color information according to the image space rendering color information of multiple viewing angles.
22. The device according to claim 20 or 21, in, The generation module comprises: A second rendering unit is used to render the target area point cloud information represented by the target point cloud at the second perspective according to the target rendering color information, so as to obtain the second perspective rendering color information and the second perspective point cloud information of the target point cloud at the second perspective; A third rendering unit is used to render the second perspective point cloud information according to the second perspective rendering color information to obtain a virtual image rendering result of the object target area at the second perspective; and A generating unit is used to generate the virtual image according to the rendering result of the virtual image.
23. The device according to claim 22, in, The generating unit comprises: The generating subunit is used to generate the virtual image according to the virtual image rendering results of multiple viewing angles.
24. A training device for a deep learning model, include: A first network module is used to input a sample video of a target area of an object into a first neural network of a deep learning model to obtain sample first sub-area point cloud information of a first sub-area of the sample object and sample second sub-area geometric information of a second sub-area of the sample object, wherein the sample video has a real rendering color label and a real target area point cloud label, and the first sub-area and the second sub-area are different sub-areas; A second network module is used to input the sample first sub-region point cloud information and the sample second sub-region geometric information into a second neural network of a deep learning model to obtain the sample target region point cloud information of the sample object target region, wherein the sample object target region includes the sample object first sub-region and the sample object second sub-region, and the sample target region point cloud information includes the sample target region diffuse reflection information and the sample target region pseudo-normal information; A third network module is used to input the sample target area diffuse reflection information and the sample target area pseudo-normal information into the third neural network of the deep learning model to obtain sample rendering color information; as well as A training module, used to train the deep learning model according to the sample rendering color information, the real rendering color label, the sample target area point cloud information and the real target area point cloud label to obtain a trained deep learning model; The second network module is further used to geometrically reconstruct the non-second sub-region in the target region of the sample object according to the first sub-region point cloud information and the second sub-region geometric information to obtain the non-second sub-region geometric information of the non-second sub-region; And based on the non-second sub-area geometric information and the second sub-area geometric information, the target area of the sample object is geometrically reconstructed to obtain the target area geometric information; based on the first sub-area point cloud information, the second sub-area geometric information and the target area geometric information, the target area of the sample object is point cloud reconstructed to obtain the target area point cloud information.
25. The device according to claim 24, in, The first network module includes: A sparse point cloud determining unit, configured to determine sparse point cloud information of a first sub-region according to the sample video; an upsampling unit, configured to upsample the sparse point cloud information of the first sub-region to obtain dense point cloud information of the first sub-region; and The sample point cloud determining unit is used to determine the sample first sub-region point cloud information according to at least one of the first sub-region sparse point cloud information and the first sub-region dense point cloud information.
26. A virtual image generating device, include: A video acquisition module, used to acquire a video to be processed, wherein the video to be processed includes an object to be processed; as well as A deep learning module is used to input the video to be processed into a deep learning model to obtain a virtual image of the object to be processed. Wherein, the deep learning model is trained using the device according to any one of claims 24-25.
27. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 13.
28. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-13.
29. A computer program product, comprising a computer program, wherein the computer program is stored on at least one of a readable storage medium and an electronic device, and when the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
