Single human body image three-dimensional reconstruction method and device based on wavelet diffusion model
Through the method based on the wavelet diffusion model, the problem of inaccurate geometry and blurred texture of loose clothes in the three-dimensional reconstruction of a single human body image is solved, and the high-precision reconstruction of the three-dimensional human body model is achieved, especially in loose clothes and invisible areas. Remarkable results have been achieved in detail capture, improving the processing capabilities of high-frequency information.
Patent Information
- Application Number
- CN202410218674.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
Existing three-dimensional reconstruction methods for single human body images have inaccurate geometry when dealing with loose clothes, the geometry of invisible areas is too smooth, and the texture is blurred. In particular, the processing of high-frequency information is not detailed enough, resulting in a lack of detailed information in the reconstruction results.
Using a method based on the wavelet diffusion model, by designing the backside image estimation and geometric model estimation modules, the wavelet transform and conditional diffusion model are used to learn the Fourier occupancy field, combined with the Marching Cubes algorithm to extract the three-dimensional Mesh grid, and generate the band through rasterization technology. Textured 3D human body model.
It achieves accurate reconstruction of the three-dimensional geometric model of the human body, especially in capturing details of loose clothing and invisible areas. It improves the accuracy and efficiency of textures, reduces the consumption of GPU memory, and improves the accuracy of high-frequency information. learning ability.
Smart Images

Figure CN118570366A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of three-dimensional reconstruction of human body, and in particular relates to a three-dimensional reconstruction method of a single human body image based on a wavelet diffusion model. Background Art
[0002] Reconstructing a 3D human body model from a single image is of great significance in the fields of computer vision and computer graphics. Single-image 3D human body reconstruction can be widely used in education, entertainment, virtual reality (VR), augmented reality (AR), and the metaverse. It provides the necessary technical support for personalized and immersive virtual experience, while reducing hardware requirements and promoting the development of the metaverse.
[0003] There has been a lot of research on the 3D reconstruction of a single human image. Initially, researchers introduced clothing displacement into the human body parametric model to reconstruct the human body geometry with clothing details. Although these methods can reconstruct some clothing details, it is still challenging for loose clothing. One type of method attempts to estimate the depth or normal of the front and back sides, and then uses the Poisson reconstruction method to convert the depth and normal into a 3D geometric model. However, the back geometry reconstructed by these methods is often too smooth. Another type of method uses a 3D convolutional network to estimate the voxel grid, but it needs to store discrete spatial grids and 3D convolution has high requirements on the GPU, which limits the spatial resolution of the reconstructed model. Later, researchers proposed a representation of neural implicit fields to predict the geometric properties of spatial points through the network. However, due to the limitation of GPU memory, this method is hindered in processing the number of sample points during inference, and it is time-consuming to use multiple batches.
[0004] Recently, a new 3D representation has been proposed, the Fourier occupancy field, which converts the occupancy values of a 3D model into a multi-channel 2D image. As an efficient and flexible 3D geometric representation, the Fourier occupancy field has more high-frequency information. However, using ordinary convolutional networks to predict it may lead to the loss of high-frequency information. The resulting problem is that the reconstructed 3D geometric model presents less detail information, especially in invisible areas, and its geometry is too smooth. In thin areas, there may be geometric discontinuities and distortion problems. This shows that current methods need to be further improved to better handle the high-frequency information in the Fourier occupancy field to achieve high-precision 3D geometric reconstruction.
[0005] In the field of single-view human reconstruction, implicit neural representation and back image prediction are two common surface color estimation methods. Based on implicit neural representation, a multi-layer perceptron is used to independently predict the color of each 3D point, which may lead to blurred reconstructed texture. Among the methods based on back image prediction, few methods consider the correlation between the back image and the input image, resulting in inaccurate texture of the estimated back image. Summary of the invention
[0006] The present invention aims at the deficiencies of the prior art, such as inaccurate geometry of loose clothing, overly smooth geometry of invisible areas, blurred texture, etc. The technical solution of the present invention proposes a method for 3D reconstruction of a single human image based on a wavelet diffusion model. The method includes a back image estimation module and a geometric model estimation module.
[0007] Given a single human image as a reference image, the back image is first predicted. Then, based on these two images, a wavelet-based conditional diffusion model is designed to learn the Fourier occupancy field. The predicted Fourier occupancy field is converted into the probability of a 3D point inside the human body, and the Marching Cubes algorithm is used to extract a 3D Mesh grid on an isosurface with a threshold of 0.5. Finally, the reference image and the predicted back image are back-projected to the 3D Mesh using rasterization technology to generate a textured 3D human body.
[0008] The single human body image three-dimensional reconstruction method based on the wavelet diffusion model designed by the present invention comprises the following steps: Construct training data sets, each set of data contains front and back images of the human body, Fourier occupancy field, and wavelet coefficients corresponding to the Fourier occupancy field.
[0009] Design a loss function to estimate the back image. According to the correlation between the front and back of human clothes, design a consistency constraint between them to optimize the back image estimation network.
[0010] A geometry estimation network is designed, which includes an image encoder module, a diffusion model, and a geometry optimization module. The image encoder module extracts multi-scale features from the reference image and the estimated back image. The diffusion model predicts the wavelet coefficients of the Fourier occupancy field conditioned on the low-resolution features of the image. The predicted wavelet coefficients are then converted to the Fourier occupancy field using an inverse wavelet transform. The geometry optimization module further optimizes the initially estimated Fourier occupancy field using the high-resolution features as a guide.
[0011] Three losses are used to train the geometry estimation network, including the difference loss between the wavelet coefficients and the true value, the difference loss between the initial estimated Fourier occupancy field and the true value, and the difference loss between the optimized Fourier occupancy field and the true value. The reference image and the estimated back image are mapped onto the three-dimensional geometric model based on the rasterization principle.
[0012] Furthermore, the construction of the training data set specifically includes first collecting the human body 3D geometric model, and then using the weak perspective projection method to generate the human body color image, back image and Fourier occupancy field at each perspective through the ray tracing algorithm at 360 different perspectives. The Fourier occupancy field generation process includes the following steps: for each pixel corresponding to a ray, the intersection of the ray and the human body Mesh is obtained through the rasterization principle; then, according to the positions of these intersections, the corresponding Fourier coefficients are calculated using the integral formula. Finally, the Fourier occupancy field is converted into the corresponding wavelet coefficients through wavelet transform.
[0013] Furthermore, the HR-Net network is adopted as the back image estimation network, and the color consistency loss and style consistency loss are used to iteratively optimize the network.
[0014] Furthermore, the Siamese network training strategy is used to improve the accuracy of the back image estimation network model, that is, a pair of opposite face images and Input into a set of twin networks to estimate the back color respectively and .
[0015] Furthermore, the specific steps of designing the geometry estimation network are as follows: First, two convolution operators are used to extract image features. Then, a convolutional block attention CBAM module is used to capture the attention features of the image features. The output of CBAM is used as high-resolution features to guide the refinement of the Fourier occupancy field. The high-resolution features are downsampled to half of the original resolution and fed into two convolutional layers and a CBAM module to generate low-resolution features for the conditional input of the diffusion model.
[0016] Furthermore, the U-Net architecture is adopted as the network for estimating wavelet coefficients, and the input consists of low-resolution features and noise maps from the image encoder module.
[0017] Furthermore, based on the high-resolution image features, the specific steps of optimizing the Fourier occupancy field are as follows: First, the predicted Fourier occupancy field is encoded using the convolution operator. Then, the Fourier occupancy field and the high-resolution image features are connected along the channel dimension and input into the CBAM module to aggregate the attention features. The high-precision Fourier occupancy field is output through the convolution operator.
[0018] Furthermore, three kinds of losses are adopted to train the geometric estimation network, including: the difference loss between the wavelet coefficients and the true value, the difference loss between the initial estimated Fourier occupancy field and the true value, and the difference loss between the optimized Fourier occupancy field and the true value.
[0019] Furthermore, the specific steps of mapping the reference image and the estimated back image onto the three-dimensional geometric model based on the rasterization principle are as follows: First, the predicted Fourier occupancy field is converted into the probability of each 3D point being inside the human body, and the Marching Cubes algorithm is used to extract the 3D Mesh mesh on a certain threshold isosurface. Then, the rasterization technology of PyTorch3D is used under the weak perspective camera model to determine the visibility of the 3D Mesh vertices in the two views, and the color of the visible view is selected as the vertex color.
[0020] Based on the same inventive concept, the present invention also designs an electronic device, including: one or more processors; A storage device for storing one or more programs; When one or more programs are executed by the one or more processors, the one or more processors implement a three-dimensional reconstruction method for a single human body image based on a wavelet diffusion model.
[0021] Based on the same inventive concept, the present solution also designs a computer-readable medium on which a computer program is stored. When the program is executed by a processor, a three-dimensional reconstruction method of a single human body image based on a wavelet diffusion model is implemented.
[0022] The present invention gives full play to the advantages of the conditional diffusion model and wavelet transform, and realizes the accurate reconstruction of the three-dimensional geometric model of the human body. Compared with the traditional convolutional network, the diffusion model has a stronger generation ability, while the wavelet transform can effectively decompose the high- and low-frequency information of the image and improve the network's learning ability for high-frequency information. In addition, the wavelet transform reduces the image resolution by half, reduces the memory consumption, and thus speeds up the prediction speed. The method performs well in capturing the geometric details of the human body, especially for invisible areas. The present invention has achieved remarkable results in accurately reconstructing loose clothing. The proposed texture method is not only simple but also efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is the overall flow chart of the present invention.
[0024] Figure 2 It is the image feature encoding module and the geometry optimization module in the geometry estimation of the present invention.
[0025] Figure 3 are the geometry estimation training details.
[0026] Figure 4 are the geometry estimation test details. DETAILED DESCRIPTION
[0027] In order to further understand the content of the present invention and make the purpose, technical solution and advantages of the present invention clearer, the present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0028] The present invention proposes a single human body image 3D reconstruction method based on wavelet transform. Figure 1 As shown, the algorithm includes a back image estimation module and a 3D geometry estimation module. The back image estimation module includes the following steps: Step 1: Build a training set. The details are as follows: First, collect the 3D geometric model of the human body. Then, set the rendering image resolution to 360 different viewing angles. , the 3D human body model is rendered by ray tracing algorithm using weak perspective projection, generating human body color image (reference image), back image and Fourier occupancy field. The Fourier occupancy field is converted into wavelet coefficients by wavelet transform. The Fourier occupancy field generation process is as follows: for each pixel corresponding to a ray, the intersection of the ray and the human body Mesh is obtained based on the rasterization principle, and then the Fourier coefficients are calculated based on these intersections by the integral formula.
[0029] The relationship between Fourier occupancy field and 3D Mesh is as follows: Under weak perspective projection, for pixel points On the corresponding ray, the spatial point The corresponding geometric occupancy function is expanded through Fourier series as follows: , in and The basic functions are and The coefficients of are the Fourier occupation fields of the geometric model. The goal is to estimate the Fourier occupation field In this embodiment According to the above equation, the estimated Fourier occupancy field is converted into the probability of each 3D point being inside the human body, and the MarchingCubes algorithm is used to extract the three-dimensional Mesh grid on the isosurface with a threshold of 0.5.
[0030] The process of converting Mesh to Fourier occupancy field is as follows: Under weak perspective projection, each pixel corresponds to a ray passing through the human body. The intersection of each ray and the human body model is calculated by the rasterization principle and recorded as Second, for the human body model, The value range is For the Second intersection point, set and are the positions inside and outside the grid, respectively. , .point At the position, the Fourier coefficient corresponding to the light is obtained by integrating the intersection points: .
[0031] Step 2, the method for back image estimation includes the following steps: First, the HR-Net network is used as the back image estimation network. Then, the loss function is set to continuously iteratively optimize the back image estimation network. It is observed that there is a significant correlation between the clothes on the front and back sides of a person. For example, when a person wears a black jacket and a white T-shirt, the clothes on the back are likely to be black as well. Therefore, a style consistency constraint is introduced between the predicted back and the input image. In order to enhance the learning ability of the network, the Siamese network training strategy is used to train the back image estimation network. A set of images of opposite faces are trained. and Input into the twin network to estimate their back images respectively and A first-order color consistency constraint is established to ensure the consistency of the estimated back image with the true value image, and a style consistency constraint is introduced to maintain the consistency of the estimated back image with the input image: , in and . Predicted back image and truth value The color consistency loss function is: .
[0032] Predicted back side image and the input image The style consistency loss function is: , in represents the Gram matrix, Represents the first layer latent space features of the pre-trained VGG19 model.
[0033] Step 3, design the geometry estimation network, including the image encoder module, conditional diffusion model and geometry optimization module. A lightweight attention module is integrated into the image encoder and Fourier occupancy field refinement network, namely the convolutional block attention module (CBAM). This module uses two independent sub-modules to extract channel and spatial attention respectively.
[0034] The network details of the image encoder module are as follows Figure 2As shown in Figure 1. First, two convolution operations are used to extract image features. Then, the attention features of the image features are captured using the CBAM module as high-resolution features to guide the refinement of the Fourier occupancy field. The high-resolution features are downsampled to half the resolution of the input image and fed into two convolutional layers and a CBAM module to generate low-resolution features for the conditional diffusion model. The high-resolution is kept as the original resolution.
[0035] In the conditional diffusion model, the U-Net architecture is used as the network for estimating wavelet coefficients. The input consists of low-resolution features from the image encoder module and concatenated along the channel dimension. Channel noise map composition.
[0036] As attached Figure 2 The network details of the geometry optimization module in this embodiment are shown. First, the predicted Fourier occupancy field is encoded using a convolution operator. Then, the Fourier occupancy field and high-resolution image features are connected and input into the CBAM module, and a high-precision Fourier occupancy field is output through a cubic convolution operator.
[0037] Step 4: Geometric estimation network training, respectively design the wavelet coefficients, the initial predicted Fourier occupancy field, and the constraints of the optimized Fourier occupancy field. Continuously iterate and optimize until the loss no longer decreases. The following first introduces the diffusion model framework, and then describes the training details and test details.
[0038] The purpose of the diffusion model is to transform pure noise data Through multiple iterations of denoising, positions close to the data distribution are gradually generated to generate high-quality images The diffusion model is divided into a noise adding process and a denoising process. The purpose of noise adding is to construct a training set by Start adding Gaussian noise to generate a noisy image : , .
[0039] in, represents a Gaussian distribution, is the identity matrix, is a variance change from Increase to , and controls the amount of noise added at each time step. For any time step Noise data at time The original data Adding Noise Perturbation Generation: ,
[0040] in .
[0041] The denoising process is given a noisy image , find the image with less noise The posterior distribution of is: , in , The denoising process predicts different time steps through the deep network model Raw data arrive Total noise , the noise conforms to the normal distribution. Need to optimize the refined Fourier occupancy field, so training generate , rather than noise When training is complete, the model The posterior probability can be approximated The mean : .
[0042] The goal of this invention is to use deep learning methods to extract Learning the wavelet coefficients of the Fourier occupation field , then converted to Fourier occupancy field by inverse wavelet transform, and finally optimized.
[0043] At any time step On, sampling Available through Add Gaussian noise get: , in and time related to, as a matter of time To encode: , .
[0044] The training framework is Figure 3 First, use the image encoder network to transform the input image and the predicted back image Extract multi-scale features from the model. Use low-resolution features as conditions for the conditional diffusion model . Connecting Noisy Data ,condition and time ( The value range of ) and input into the denoising network to estimate the wavelet coefficients Applying the inverse wavelet transform to estimate the wavelet coefficients Converted to Fourier occupancy field, denoted as the initial estimated Fourier occupancy field . The Fourier occupied field and high-resolution image features are input into the refinement network to output high-quality Fourier occupancy fields .
[0045] The following three losses are used to iteratively optimize the Fourier occupancy field estimation network: the predicted wavelet coefficients and truth value The loss of the initial estimate of the Fourier occupation field and truth value The difference between the optimized Fourier occupancy field and truth value The difference between: .
[0046] The predicted wavelet coefficients and truth value The consistency loss function is: .
[0047] Predicted Fourier occupation field and truth value The consistency loss function is: .
[0048] Optimized Fourier occupation field and truth value The consistency loss function is: .
[0049] Test frameworks such as Figure 4 As shown in Figure 2. In the prediction process, given a human image and a predicted back image, the multi-scale features of the image are first extracted. Then, the noise is randomly initialized from a Gaussian distribution. , input the image features, noise and time into the denoising network U-Net to generate the denoised wavelet coefficients The DDIM update rule is used for the conditional diffusion model sampling process, and 100 iterations of denoising are performed to generate the wavelet coefficients corresponding to the Fourier occupancy field. Finally, the wavelet coefficients are converted into the Fourier occupancy field using the inverse wavelet transform, and the high-resolution image features are used as a guide to refine it.
[0050] The network input update rules are as follows: Current moment The time code is recorded as , the next moment The time code is recorded as The noise at the current moment is the wavelet coefficient after adding noise and the predicted wavelet coefficients The linear difference is: , The wavelet coefficients of noise addition at the next moment are: .
[0051] Step 5: Based on the rasterization principle, the reference image and the estimated back image are mapped to the 3D geometric model. First, the Fourier occupancy field predicted in step 4 is converted into the probability of each 3D point inside the human body, and the Marching Cubes algorithm is used to extract the 3D Mesh mesh on the isosurface with a threshold of 0.5. Then, the rasterization technology of PyTorch3D is used under the weak perspective camera model to determine the visibility of the 3D Mesh vertices in the two views, and the color of the visible view is selected as the vertex color.
[0052] Embodiment 2 Based on the same inventive concept, the present invention also provides an electronic device, comprising one or more processors; a storage device for storing one or more programs; when one or more programs are executed by the one or more processors, the one or more processors implement the method described in Example 1.
[0053] Since the device introduced in the second embodiment of the present invention is an electronic device used to implement the single human body image three-dimensional reconstruction method based on the wavelet diffusion model in the first embodiment of the present invention, based on the method introduced in the first embodiment of the present invention, the technical personnel in the field can understand the specific structure and deformation of the electronic device, so it is not repeated here. All electronic devices used in a method of the embodiment of the present invention belong to the scope of protection of the present invention.
[0054] Embodiment 3 Based on the same inventive concept, the present invention further provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method described in the first embodiment is implemented.
[0055] Since the device introduced in the third embodiment of the present invention is a computer-readable medium used to implement the single human body image three-dimensional reconstruction method based on the wavelet diffusion model in the first embodiment of the present invention, based on the method introduced in the first embodiment of the present invention, the technical personnel in the field can understand the specific structure and deformation of the electronic device, so it is not repeated here. All electronic devices used in a method of the embodiment of the present invention belong to the scope of protection of the present invention.
[0056] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
Claims
1. A three-dimensional reconstruction method for a single human body image based on a wavelet diffusion model, characterized in that: The following steps are involved: Construct a training data set, which includes a human body reference image, a back image corresponding to the human body reference image, a Fourier occupancy field and corresponding wavelet coefficients; A loss function is designed to optimize the back image estimation model; a style consistency constraint is introduced based on the correlation between the front and back sides of the clothes to optimize the back image estimation network; Design a geometry estimation network, which includes an image encoder module, a diffusion model, and a geometry optimization module. The image encoder module extracts multi-scale features from the reference image and the estimated back image. The diffusion model predicts the wavelet coefficients corresponding to the Fourier occupancy field based on the low-resolution features of the image. The predicted wavelet coefficients are converted into the Fourier occupancy field using the inverse wavelet transform. The geometry optimization module uses the high-resolution features as a guide to further optimize the initial estimated Fourier occupancy field. Three losses are used to train the geometry estimation network, including the difference loss between the wavelet coefficients and the true value, the difference loss between the initial estimated Fourier occupancy field and the true value, and the difference loss between the optimized Fourier occupancy field and the true value. The Fourier occupancy field is converted into a three-dimensional geometric model, and the reference image and the estimated back image are mapped onto the three-dimensional geometric model based on the rasterization principle.
2. The single human body image 3D reconstruction method based on wavelet diffusion model according to claim 1, characterized in that: The construction of the training data set specifically includes first collecting the three-dimensional geometric model of the human body, and then using weak perspective projection to generate the human body color image, back image and Fourier occupancy field at each perspective through the ray tracing algorithm at 360 different perspectives. The Fourier occupancy field generation process includes the following steps: for each pixel corresponding to a ray, the intersection of the ray and the human body Mesh is obtained through rasterization; according to the positions of these intersections, the corresponding Fourier coefficients are calculated using the integral formula; based on wavelet decomposition, the Fourier occupancy field is decomposed into corresponding wavelet coefficients.
3. The method for 3D reconstruction of a single human body image based on a wavelet diffusion model according to claim 1, characterized in that: The HR-Net network is used as the back image estimation network, and the style consistency loss between the back image and the input image is designed to optimize the network.
4. The method for 3D reconstruction of a single human body image based on a wavelet diffusion model according to claim 1, characterized in that: The Siamese network training strategy is used to improve the accuracy of the back-face estimation network model. and Input into a set of twin networks to estimate the back color respectively and .
5. The method for 3D reconstruction of a single human body image based on a wavelet diffusion model according to claim 1, characterized in that: First, two convolution operators are used to extract image features. Then, the convolution block attention CBAM module is used to extract the attention features of the image features, which are used as high-resolution features to guide the refinement of the Fourier occupancy field. The high-resolution features are downsampled to half of the original resolution and input into two convolution layers and a CBAM module to generate low-resolution features for the conditional input of the diffusion model.
6. The method for 3D reconstruction of a single human body image based on a wavelet diffusion model according to claim 1, characterized in that: The U-Net architecture is adopted as the network for estimating wavelet coefficients, and the input consists of low-resolution features from the image encoder module and the noise map.
7. The method for 3D reconstruction of a single human body image based on a wavelet diffusion model according to claim 5, characterized in that: The predicted Fourier occupancy field is encoded using a convolution operator. Then, the Fourier occupancy field and high-resolution image features are connected along the channel dimension and input into the CBAM module to aggregate the attention features, and a high-precision Fourier occupancy field is output through the convolution operator.
8. The method for 3D reconstruction of a single human body image based on a wavelet diffusion model according to claim 1, characterized in that: The specific steps of mapping the reference image and the estimated back image onto the 3D geometric model based on the rasterization principle are as follows: Firstly, the predicted Fourier occupancy field is converted into the probability of each 3D point being inside the human body, and the MarchingCubes algorithm is used to extract the 3D Mesh grid on a certain threshold isosurface; then, the rasterization technology of PyTorch3D is used under the weak perspective camera model to determine the visibility of the 3D Mesh vertices in the two views, and the color of the visible view is selected as the vertex color.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Three-dimensional digital human body generation method and system
CN119963708A
Diffusion model-based three-dimensional scene generation method and related equipment
CN121837552A
3D scene reconstruction using voxelized gaussian splat representations
WO2026065491A1
