A single image 3D human body fine reconstruction method based on cross-domain multi-task
Through the cross-domain feature generation network of multi-task learning and the separation and reconstruction method of visible and invisible areas, combined with normal map prediction and human posture prior, the problem of global integrity and refinement of human body three-dimensional model reconstruction in a single image is solved. , achieving high-quality 3D human body model reconstruction.
Patent Information
- Application Number
- CN202210350105.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-02
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-04-02
AI Technical Summary
It is difficult to reconstruct a globally complete and detailed three-dimensional human body model from a single image with existing technology, especially the problem of unsatisfactory geometric reconstruction quality in invisible areas.
Using a cross-domain feature generation network based on multi-task learning, through the shared network of normal map prediction and human body three-dimensional reconstruction tasks, the geometric features in the image are extracted, the visible area and the invisible area separation reconstruction method is designed, and the advanced knowledge of human posture is introduced. empirical knowledge to improve the robustness of the model.
It achieves the reconstruction of a globally complete and precise three-dimensional human body model, significantly improves the quality of geometric reconstruction in invisible areas, makes the model more consistent with the real human body surface, and achieves the best results on the high-precision human body scanning model test set.
Smart Images

Figure CN114758070B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of three-dimensional vision, and in particular relates to a method for reconstructing a three-dimensional human body fine model from a single image based on cross-domain multi-task. Background Art
[0002] Vision-based 3D reconstruction of the human body is one of the important issues in computer vision and computer graphics. Refined 3D human models are widely used in the film industry and the game industry. Virtual digital screen characters and game characters require modelers to spend a lot of time manually modeling. In addition, personalized, high-fidelity digital human models also play an important role in applications such as medical diagnosis, virtual fitting, and online meetings. The reconstruction of 3D human models is also the basis for research on topics such as human behavior analysis and character interaction in 3D space.
[0003] Although it has important application value in many aspects, it is a challenging technical problem to reconstruct a fine and high-fidelity 3D human body model from a single image due to the lack of depth information, complete shape and posture information of the human body in a single image. Most of the existing 3D human body reconstruction methods adopt a codec structure, encode the geometric features of the image from the input image, reconstruct the 3D human body model through the decoder, and learn the correspondence from the 2D image to the 3D human body model. The mainstream 3D human body reconstruction methods are mainly divided into two types: human body reconstruction methods based on parametric models and human body reconstruction methods based on non-parametric models. Human body reconstruction methods based on parametric models use parametric models to reduce the dimensionality of complex human body representations to a limited parameter space, and reconstruct by directly regressing human body parameters. Kanazawa et al. (Kanazawa A. and Black, MJ and Jacobs, DW and Malik, J. End-to-end Recovery of Human Shape and Pose. IEEE, 2018) used weakly supervised training to regress human body parameters by projecting 3D key points onto a 2D plane. Kolotouros et al. (Kolotouros, Nikos and Pavlakos, Georgios and Jayaraman, Dinesh and Daniilidis, Kostas. Probabilistic modeling for human recovery. In International Conference on Computer Vision, 2021) output the entire distribution of possible mapped 3D postures through conditional normalized flow model regression. However, this type of method is limited by the expressive power of the parametric model and can only reconstruct a smooth naked human body model. The reconstruction method based on the non-parametric human body model improves the details and accuracy of model reconstruction by using different 3D data representations. Varol G et al. (Varol G, Ceylan D, Russell B, et al. Bodynet: Volumetric inference of 3d human body shape. In European Conference on Computer Vision, 2018) first proposed a human body model that directly regresses volumetric pixel representation from a single image.Zheng et al. (Zheng z, Yu T, Wei Y, et al. Deephuman: 3D human reconstruction from a single image. In International Conference on Computer Vision, 2019) obtained dense semantic representation by estimating the parameterized model as an additional input to the voxel representation regression network, and optimized the voxel grid based on a normal optimization network. Saito S et al. (Saito S, Huang Z, Natsume R, et al. PIFu: Pixel-aligned implicit function for high-resolution clothed human digitization. In International Conference on Computer Vision, 2019) proposed a single image human reconstruction method using image pixel alignment features to regress deep implicit functions. Zheng Z et al. (Zheng Z, Yu T, Liu Y, et al. PaMIR: Parametric Model-Conditioned Implicit Representation for Image-based Human Reconstruction. In IEEE Transactions on Pattern Analysis and Machine Intelegence, 2021) provided structural information to the estimated human parameterized model through a 3D convolutional network to improve the completeness and accuracy of the model's reconstruction results for complex postures. However, due to the viewing angle limitation of a single image, it can only provide local human body information. Such methods are often unable to reconstruct the global surface geometric details of the human body, especially for the geometric reconstruction results of invisible areas of the human body.
[0004] In view of the above problems, the present invention proposes a cross-domain feature generation network guided by multi-task learning, and designs a dual-branch reconstruction method for separate reconstruction of visible areas and invisible areas. Utilizing the correlation between normal maps and human body geometry, the two tasks of normal map prediction and three-dimensional reconstruction of the human body are integrated into an overall network. Through the partial shared network of the related task (normal map prediction) and the main task (three-dimensional reconstruction of the human body), cross-domain representation information is provided to each other, and geometric features in the image are extracted more effectively. At the same time, by separate reconstruction of visible and invisible areas, the network is more effectively guided to extract image features of invisible areas, and then a globally complete and detailed three-dimensional model of the human body is reconstructed. In addition, the present invention also introduces prior knowledge of human posture, so that the method proposed by the present invention has better robustness and stability for the case of complex human posture. Summary of the invention
[0005] The purpose of the present invention is to 1) address the fact that previous methods cannot decouple geometric structure information from highly coupled image features when extracting image features, and the present invention proposes a cross-domain feature generation network based on multi-task guidance.
[0006] 2) In order to improve the reconstruction quality of the invisible areas of the human body 3D model and enhance the global geometric integrity and refinement, the present invention designs a method for separate reconstruction of the visible area and the invisible area, and introduces human body posture prior to enhance the robustness of the model of the present invention.
[0007] To achieve the above object, the present invention adopts the following technical solutions:
[0008] The single image 3D human body fine reconstruction method based on cross-domain multi-task includes the following steps:
[0009] S1. Collect a human body scan model dataset, and randomly divide the dataset into a training set and a test set;
[0010] S2. Preprocess the data set; render the human body scan model from multiple perspectives, collect sampling points of the human body scan model, and define the visibility and invisibility of the sampling points;
[0011] S3. Train a cross-domain multi-task feature extraction network using the preprocessed training set; the cross-domain multi-task feature extraction network includes two encoders and a high-resolution backbone network, and the two encoders have the same structure; the features extracted by the high-resolution backbone network are concatenated with the outputs of the two encoders and sent to the decoder networks corresponding to the visible area and the invisible area, and the two decoders have the same network structure, and feature maps of different scales are generated through four residual blocks respectively, and the normal map and mask map predicted by the output of the last layer of feature maps are extracted;
[0012] S4, from the multi-scale feature map obtained in S3, the feature maps of different scales of the four encoder layers are sent to the spatial sampling point regressor, and the sampling points are projected onto the feature map, and the pixel-aligned local features are obtained in the feature map using bilinear interpolation, and the human joint points are introduced. The relative orientation relationship between the sampling points and the human joint points is used to send the joint points and the local features together to the spatial sampling point classifier for encoding;
[0013] S5. The image features separated based on the visible area and the invisible area are sent to the spatial sampling point classifier to convert the image features into a continuous occupancy field representation of the space where the human body scanning model is located, and then the final human body model is obtained through the isosurface extraction algorithm.
[0014] Preferably, in S1, a human body scan model dataset is collected, and for each human body scan model, a 3D scan model, an SMPL model and a texture map in obj format are provided. The 3D scan models, SMPL models and texture maps of all human body scan models constitute a dataset; the dataset is randomly divided into a training set and a test set in a ratio of 8:2.
[0015] Preferably, the data preprocessing of the data set in S2 comprises the following steps:
[0016] S21. For the human scan model in the dataset, high-quality images of 32 perspectives are rendered using spherical harmonics-based global illumination.
[0017] S22, calculating the normal maps of the front and back sides under 32 viewing angles through the SMPL model corresponding to the human body scan model, and calculating the joint points corresponding to each SMPL model;
[0018] S23, spatially sampling each human scan model by randomly sampling 5000 points on the surface of the human scan model and adding a random disturbance of 5 cm;
[0019] S24. Sample 300 points in the human body scan model space, and define the visibility and invisibility of each sampling point according to the positive or negative value of its normal in the depth direction by calculating the vertex on the model surface closest to each sampling point.
[0020] Preferably, the overall loss function in the supervised normal map prediction task in S3 is as follows:
[0021]
[0022] in and They are the L1 losses predicted by the visible area and the invisible normal map, is the L1 loss of the human mask, as follows:
[0023]
[0024]
[0025] Where n is the number of pixels, f(x input ) is the feature map output by the high-resolution backbone network, F is the multi-scale feature encoder-decoder, and is the L1 loss of the human mask.
[0026] Preferably, the loss function used in the human body 3D reconstruction task in S5 is as follows:
[0027]
[0028]
[0029] in, and are the binary cross entropy loss functions for the estimated occupancy values of the visible and invisible regions, n is the number of sampling points, x is n and n are the predicted value and the true value respectively.
[0030] Beneficial Effects
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] The present invention proposes a method for fine three-dimensional reconstruction of the human body based on a multi-task guided cross-domain feature generation network and separate reconstruction of visible areas and invisible areas. By inputting a single image, the method can reconstruct a three-dimensional human body model with more complete and fine global geometry. The method introduces a normal map prediction task, and through the correlation between the task and the three-dimensional reconstruction task of the human body in terms of geometric structure, guides the network to more effectively extract the geometric representation of the image, thereby improving the fineness of the reconstructed geometric surface of the human body. In addition, the method independently reconstructs the visible and invisible areas of the human body, effectively solving the problem in previous methods that the geometry of the reconstructed invisible areas is too smooth and inconsistent with the real human body. The method achieved the best results on a high-precision human body scan model test set. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a system framework diagram of a single image three-dimensional human body fine reconstruction method based on cross-domain multi-task in the present invention;
[0034] Figure 2 It is the result of the human body reconstruction model on the high-precision human body scan model data set in the present invention;
[0035] Figure 3 It is a qualitative comparison between the present invention and the current mainstream methods for this task. DETAILED DESCRIPTION
[0036] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0037] Embodiment 1:
[0038] The overall system consists of three parts: dataset preprocessing, multi-task guided cross-domain feature encoder-decoder network, and spatial sampling point classifier. The specific technical solution is as follows:
[0039] 1) Dataset preprocessing:
[0040] For the human body scan model in the data set, firstly, high-quality images of 32 viewing angles are rendered using global illumination based on spherical harmonics, and the normal maps of the front and back under 32 viewing angles are calculated by the SMPL parameterized model corresponding to the human body scan model, and the joint points corresponding to each SMPL model are calculated, which are used as the input of the system of the present invention. In addition, the real human body scan model and the normal map of the rendered real human body scan model are used as supervision. The present invention performs spatial sampling on each human body model, randomly samples 5000 points on the surface of the human body model and adds a random disturbance of 5 cm, while increasing the diversity of the sampling points, samples 300 points in the model space, and calculates the vertex closest to each sampling point on the model surface, and defines the visibility and invisibility of each sampling point according to the positive and negative of its normal in the depth direction, which is used in the spatial sampling point classifier to predict the occupancy value of the sampling point according to its visibility. This system uses a total of 32768 sets of data rendered by 1024 human body scan models for training.
[0041] 2) Multi-task guided cross-domain feature encoder-decoder network:
[0042] The feature extraction network of this part integrates the human body 3D reconstruction task and the normal map prediction task into an overall network. First, for the input image, a high-dimensional spatial position representation is extracted through a high-resolution backbone network. The feature map is concatenated with the feature map of the SMPL normal map encoded by the feature encoder and sent to the multi-scale feature decoder network, and the predicted accurate human body normal map and the corresponding mask are output through the last layer of feature map of the decoder. For the task of human body 3D reconstruction, the present invention makes full use of the encoder-decoder network features shared with the normal map prediction task, and uses the multi-scale feature map splicing in the decoder as the feature input source of the spatial sampling point classifier. In addition, in order to better reconstruct the human body geometry in the invisible area, the present invention separates the above feature encoder-decoder network into two branches, which respectively encode the image features of the visible area and the invisible area. In this network, the overall loss function in the supervised normal map prediction task is as follows:
[0043]
[0044] in and They are the L1 losses of the visible area and the invisible normal map prediction, and is the L1 loss of the human mask, as follows:
[0045]
[0046]
[0047] Where n is the number of pixels, f(x input ) is the feature map output by the high-resolution backbone network, and F is the multi-scale feature encoder-decoder. and is the L1 loss of the human mask.
[0048] 3) Spatial sampling point classifier
[0049] The present invention uses the image features obtained in step 2 to separate the visible area from the invisible area, and converts the image features into a continuous occupancy field representation of the space where the human body model is located. Then, the final human body model can be obtained through the isosurface extraction algorithm. Specifically, the present invention designs a visible area spatial sampling point classifier and an invisible area spatial sampling point classifier. For each sampling point, the sampling point is projected onto the feature map in a pixel-aligned manner, and the features corresponding to the sampling point are obtained through bilinear sampling, and spliced with the introduced human joint points. According to its visibility, it is sent to the corresponding spatial sampling point classifier to predict the occupancy value of each sampling point, and by setting the isosurface to 0.5, the three-dimensional model of the human body is reconstructed through the isosurface extraction algorithm. The loss function used for the three-dimensional reconstruction task of the human body is as follows:
[0050]
[0051]
[0052] in, and are the binary cross entropy loss functions for the estimated occupancy values of the visible and invisible regions, n is the number of sampling points, x is n and n are the predicted value and the true value respectively.
[0053] Embodiment 2:
[0054] The method of the present invention based on the above system mainly comprises the following steps:
[0055] Step 1: Data preprocessing:
[0056] In the present invention, 1384 high-precision human body scan data sets are used, which contain rich human body postures and shapes and various styles of clothing. For each human body scan model, the data set provides a 3D scan model in obj format, an SMPL model and a texture map. The data set is randomly divided into a training set and a test set at a ratio of about 8:2, of which 1024 models are used for training and 360 data models are used for testing. In order to obtain paired data of images and geometric models for training, the scanned model is rendered from multiple perspectives. Specifically, in order to obtain a rendered picture with real illumination, the PRT (Precomputed Radiance Transfer) is pre-calculated by the spherical harmonic function coefficients to represent the global illumination and visibility of the surface, and the model is rotated 360 degrees based on perspective projection, and images with a resolution of 512*512 from 32 perspectives are rendered, obtaining 1384*32=44288 sets of data. In addition, in order to guide the learning of the normal map prediction model in multi-task learning, the normal maps of the front and back of the scanned model and the corresponding SMPL model are rendered respectively.
[0057] Step 2: Cross-domain multi-task feature extraction network:
[0058] The cross-domain multi-task feature extraction network proposed in the present invention includes two encoders and decoders for extracting image features of visible areas and invisible areas respectively, and a high-resolution backbone network. For the input image and the front and back SMPL normal maps, two encoders and a high-resolution backbone network encode the front and back normal maps and the input image respectively. The two encoders have the same structure. The features extracted by the backbone network are then spliced with the outputs of the two encoders and sent to the decoder networks corresponding to the visible and invisible areas. The two decoders have the same network structure and generate feature maps of different scales through four residual blocks respectively. The number of channels of each layer of feature maps is 128, 64, 32, and 4 respectively. The normal map and mask map predicted by the output of the last layer of feature maps are extracted.
[0059] Step 3: Separate and reconstruct the visible and invisible regions:
[0060] From the multi-scale feature map obtained in step 2, feature maps of different scales of the four encoder layers are extracted and sent to the spatial sampling point regressor. The sampling points are projected onto the feature map, and bilinear interpolation is used to obtain pixel-aligned local features in the feature map. The human joints are introduced, and the relative orientation relationship between the sampling points and the human joints is used to send the joints and local features to the spatial sampling point classifier for encoding. The above process uses the visible area spatial sampling point classifier and the invisible area spatial sampling point classifier for prediction according to the visibility of the sampling points. In the test phase, sending all sampling points into the two branches and taking the smaller value of the two prediction values can effectively obtain a more accurate prediction value. After obtaining the occupancy value of the sampling point, the fine three-dimensional model of the human body is reconstructed by the isosurface extraction algorithm.
[0061] Figure 2 The human body reconstruction results of the present invention on the test set of high-precision human body scanning data sets are demonstrated. The results fully indicate that the three-dimensional human body fine reconstruction method proposed in the present invention can more effectively utilize the geometric structure features of the image to reconstruct a more detailed surface, and at the same time can make the geometric reconstruction results of the invisible areas more accurate, thereby obtaining a globally complete three-dimensional human body model.
[0062] Figure 3 The qualitative results of the present invention and the current mainstream three-dimensional human body fine reconstruction methods are compared. It can be seen that the present method can reconstruct finer geometric details in the visible area than other methods, and it is more consistent with the person in the image. In addition, the reconstruction quality of the present method in the invisible area of the human body is significantly better than that of other methods.
[0063] Table 1 lists the comparison of the quantitative results of the present invention and the current mainstream three-dimensional human body fine reconstruction methods. PIFu was proposed by Saito S et al. (Saito S, Huang Z, Natsume R, et al. PIFu: Pixel-aligned implicit function for high-resolution clothed human digitization. In International Conference on Computer Vision, 2019) in 2019, and PaMIR was proposed by Zheng Z et al. (Zheng Z, YuT, Liu Y, et al. PaMIR: Parametric Model-Conditioned Implicit Representation for Image-based Human Reconstruction, In IEEE Transactions on Pattern Analysis and Machine Intelegence, 2021). The evaluation indicators of the quantitative results are P2S and Chamfer. Among them, P2S is the distance from the vertex to the surface, and Chamfer is the chamfer distance. These two indicators are used to measure the Euclidean distance between the predicted three-dimensional human body model and the real scanned human body model. It can be seen that the reconstruction results of the present invention have achieved the best effect in the task of three-dimensional human body fine reconstruction.
[0064]
[0065] Table 1
[0066] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A single image 3D human body fine reconstruction method based on cross-domain multi-task, characterized by: The steps include: S1. Collect a human body scan model dataset, and randomly divide the dataset into a training set and a test set; S2. Preprocess the data set; render the human body scan model from multiple perspectives, collect sampling points of the human body scan model, and define the visibility and invisibility of the sampling points; S3. Train a cross-domain multi-task feature extraction network using the preprocessed training set; the cross-domain multi-task feature extraction network includes two encoders and a high-resolution backbone network, and the two encoders have the same structure; the features extracted by the high-resolution backbone network are concatenated with the outputs of the two encoders and sent to the decoder networks corresponding to the visible area and the invisible area, and the two decoders have the same network structure, and feature maps of different scales are generated through four residual blocks respectively, and the normal map and mask map predicted by the output of the last layer of feature maps are extracted; S4, from the multi-scale feature map obtained in S3, the feature maps of different scales of the four encoder layers are sent to the spatial sampling point regressor, and the sampling points are projected onto the feature map, and the pixel-aligned local features are obtained in the feature map using bilinear interpolation, and the human joint points are introduced. The relative orientation relationship between the sampling points and the human joint points is used to send the joint points and the local features together to the spatial sampling point classifier for encoding; S5. The image features separated based on the visible area and the invisible area are sent to the spatial sampling point classifier to convert the image features into a continuous occupancy field representation of the space where the human body scanning model is located, and then the final human body model is obtained through the isosurface extraction algorithm.
2. The method for fine reconstruction of a 3D human body from a single image based on cross-domain multi-task according to claim 1, characterized in that: In the S1, a human body scan model dataset is collected. For each human body scan model, a 3D scan model, an SMPL model and a texture map in obj format are provided. The 3D scan models, SMPL models and texture maps of all human body scan models constitute a dataset; the dataset is randomly divided into a training set and a test set in a ratio of 8:
2.
3. The method for fine reconstruction of a 3D human body from a single image based on cross-domain multi-task according to claim 2, characterized in that: The data preprocessing of the data set in S2 includes the following steps: S21. For the human scan model in the dataset, high-quality images of 32 perspectives are rendered using spherical harmonics-based global illumination. S22, calculating the normal maps of the front and back sides under 32 viewing angles through the SMPL model corresponding to the human body scan model, and calculating the joint points corresponding to each SMPL model; S23, spatially sampling each human scan model by randomly sampling 5000 points on the surface of the human scan model and adding a random disturbance of 5 cm; S24. Sample 300 points in the human body scan model space, and define the visibility and invisibility of each sampling point according to the positive or negative value of its normal in the depth direction by calculating the vertex on the model surface closest to each sampling point.
4. The method for fine reconstruction of a 3D human body from a single image based on cross-domain multi-task according to claim 1 or 3, characterized in that: The overall loss function in the supervised normal map prediction task in S3 is as follows: in and They are the L1 losses predicted by the visible area and the invisible normal map, and is the L1 loss of the human mask, as follows: Where n is the number of pixels, f(x input ) is the feature map output by the high-resolution backbone network, F is the multi-scale feature encoder-decoder, and is the L1 loss of the human mask.
5. The method for fine reconstruction of a 3D human body from a single image based on cross-domain multi-task according to claim 4, characterized in that: The loss function used in the human body 3D reconstruction task in S5 is as follows: in, and are the binary cross entropy loss functions for the estimated occupancy values of the visible and invisible regions, n is the number of sampling points, x is n and n are the predicted value and the true value respectively.
