A self-supervised reconstruction method for 3D human body based on multi-view images
Through a self-supervised method based on multi-view images, combined with structured implicit coding and neural radiation fields, a universal 3D human body reconstruction model is established, which solves the problem of insufficient reconstruction capabilities for new target human bodies in the existing technology and achieves rapid and universal 3D human body reconstruction and texture recovery.
Patent Information
- Application Number
- CN202210558080.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-19
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-05-19
AI Technical Summary
Existing 3D human body reconstruction methods lack the ability to generalize to new scenes or target human bodies. In particular, methods that combine implicit neural radiation fields and parameterized models can usually only be applied to a single scene or the same target human body, and are difficult to handle complex non-human objects. Rigid deformation and generalization to new target human bodies.
A self-supervised reconstruction method based on multi-view images is adopted. By obtaining multi-view images and camera parameters, the feature extraction network and sparse convolution network are used to establish a universal 3D human body reconstruction model. It combines structured implicit coding and neural radiation fields to perform volumetric reconstruction. Voxel rendering is used to realize the reconstruction of different target human bodies, and is trained through multi-objective optimization functions to avoid dependence on 3D true values.
It achieves rapid reconstruction of 3D human body geometry and texture from sparse multi-view images, has the ability to generalize to new scenes or target human bodies, improves reconstruction efficiency, and avoids dependence on 3D true value data through self-supervision.
Smart Images

Figure CN114998515B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional human body reconstruction, and in particular to a 3D human body self-supervised reconstruction method based on multi-view images. Background Art
[0002] In recent years, 3D human body reconstruction has attracted widespread attention in academia and industry. A large number of different methods attempt to reconstruct a digital human body from single-view images, multi-view images, or monocular videos.
[0003] Among the existing 3D human reconstruction methods, one class of methods uses parametric body models such as extended SMPL to express the shape of the human body with clothing deformation. These methods can obtain a drivable human body model with high-quality texture. On the other hand, methods such as PIFu and PIFuHD that use neural networks to implicitly express 3D surfaces have achieved amazing results. This new implicit 3D expression method can theoretically represent 3D structures of arbitrary topological structures, such as complex postures, hair, clothing and other geometric structures. There is another class of methods that use multi-view images or videos for self-supervised 3D reconstruction and have achieved great success in using neural networks to express specific scenes. SRN proposes to assign a feature vector to each 3D spatial position and then use a differentiable voxel rendering algorithm to generate images. NeRF uses a neural network to map the density and color of the layer to establish the expression of static scenes. Nerfies and NGNeRF extend NeRF to reconstruct dynamic scenes by introducing implicit deformation fields. NeuralBody combines the implicit neural radiation field with the human body parametric model SMPL, so that it can handle the geometric deformation of the human body well.
[0004] However, existing 3D human reconstruction methods have various shortcomings. The extended SMPL parametric body model cannot express complex geometries such as hair and skirts due to the limitation of model resolution. The method of implicitly expressing 3D surfaces using neural networks usually requires supervision of 3D true value data to reconstruct 3D human models from a single image. However, it is difficult to obtain a large amount of data with 3D true value geometry in real scenes, so such methods are usually trained using synthetic data sets, resulting in low generalization ability in real scenes. Such methods that use multi-view images or videos for self-supervised 3D reconstruction can render very realistic images, but are limited to static scenes. The method of introducing implicit deformation fields is difficult to explicitly control the complex non-rigid deformations caused by human body movement. The method of combining implicit neural radiation fields with human body parametric models is only suitable for the reconstruction of a single scene or the same target human body, and has no generalization ability for new scenes or target human bodies. In summary, it is necessary to invent a 3D human body reconstruction method that combines implicit neural radiation fields with human body parametric models and has the ability to generalize to new scenes or target human bodies. Summary of the invention
[0005] In view of this, the purpose of the present invention is to propose a 3D human body self-supervised reconstruction method based on multi-view images to solve the problem that the existing image-based 3D human body reconstruction algorithm does not have the generalization ability to new scenes or target humans, thereby realizing the rapid reconstruction of 3D human body geometry and texture from sparse multi-view graphics.
[0006] The technical means adopted by the present invention are as follows:
[0007] A 3D human body self-supervised reconstruction method based on multi-view images, the method comprising the following steps:
[0008] Acquire multi-view images and establish three-dimensional space;
[0009] Obtain the camera parameters of images at different viewing angles, the segmentation map of the target foreground human body, the 2D key points of the target human body, the 3D key points of the human body, and the SMPL parameters of the human body model;
[0010] A universal 3D human body reconstruction model based on multiple perspectives is established. The method for establishing the universal 3D human body reconstruction model based on multiple perspectives includes:
[0011] Input the multi-view image, the SMPL parameters corresponding to the multi-view image, and the camera parameters into the feature extraction network ResUnet34, and output a multi-view feature map;
[0012] Define structured implicit encoding;
[0013] Projecting the vertices in the three-dimensional space to 2D projection points on the multi-view feature map according to the camera parameters;
[0014] The features of the vertices in the multi-view feature map are obtained through bilinear interpolation sampling;
[0015] Get the structured implicit encoding corresponding to the vertex;
[0016] Using a sparse convolution network SpareConvNet to diffuse the structured implicit code into the surrounding space, a dense implicit code voxel is obtained;
[0017] Establishing neural radiation fields;
[0018] For any point x in the three-dimensional space, the implicitly encoded voxels are sampled using trilinear interpolation to obtain a geometric encoding of x;
[0019] Projecting the point x onto a multi-view feature map to extract features and fuse the multi-views to obtain an appearance code;
[0020] Obtaining a universal neural radiation field according to the geometric coding and the appearance coding;
[0021] A new viewing angle camera parameter is given by using a voxel rendering method, and the universal neural radiation field is rendered to obtain a 2D image under the new viewing angle camera parameter, and the universal 3D human body reconstruction model based on multiple viewing angles is established;
[0022] The multi-view images, the camera parameters corresponding to the multi-view images, and the SMPL parameters of the human body model corresponding to the multi-view images are input into a universal 3D human body reconstruction model based on multi-view, and a target view 2D image is output.
[0023] Furthermore, the method of acquiring multi-view images and establishing a three-dimensional space includes: using multiple cameras to simultaneously shoot a target human body from different viewpoints to obtain multi-view images of the target human body; and establishing a three-dimensional space using the center positions of the multiple cameras as the origin of a world coordinate system.
[0024] Furthermore, the camera parameters of the images under different viewing angles, the segmentation map of the target foreground human body, the 2D key points of the target human body, the 3D key points of the human body and the SMPL parameters of the human body model are obtained as follows:
[0025] Use Opencv to perform camera calibration on the multi-view images to obtain camera parameters of images at different viewing angles;
[0026] Using the human body segmentation algorithm CIHP to obtain a segmentation map of the target foreground human body on the multi-view image;
[0027] Use the Openpose algorithm to detect multi-view images and obtain the 2D key points of the target human body;
[0028] The camera parameters and 2D key points are input into the EasyMocap system, and the 3D key points of the human body and the SMPL parameters of the human body model are output.
[0029] Furthermore, the SMPL model models the human body shape and posture separately, wherein the shape includes the height, weight, and body attributes of the human body model; and the posture includes different movements of the human body model.
[0030] Furthermore, average pooling or attention mechanism is used for fusion to obtain the structured implicit coding corresponding to the vertices.
[0031] Furthermore, it also includes training the general 3D human body reconstruction model based on multiple perspectives through a multi-objective optimization function, and the multi-objective optimization function is:
[0032]
[0033] in, is the image reconstruction loss, is the image perception loss, is the background regularization loss, λ p is the image perception loss weight, λ d is the background regularization loss weight.
[0034] Furthermore, the image reconstruction loss formula is as follows:
[0035]
[0036] Among them, r is the target image I t A camera ray, is the pixel color obtained by voxel rendering, C(r) is the target image I t The corresponding pixel color of
[0037] The image perception loss formula is as follows:
[0038]
[0039] in, To render the image, For the VGG network, is the feature extracted from the i-th layer of the VGG network, N i is the number of elements of the i-th layer feature, and M is the number of feature layers;
[0040] The background regularization loss formula is as follows:
[0041]
[0042] in, is the density obtained using voxel rendering, and D(r) is the mask obtained by segmentation.
[0043] Compared with the prior art, the present invention has the following advantages:
[0044] The existing 3D human body reconstruction method can only reconstruct a single target human body. The present invention establishes a universal 3D human body reconstruction model based on multiple perspectives, so that the 3D human body reconstruction method can generalize the reconstruction of different target human bodies, greatly improving the reconstruction efficiency.
[0045] The present invention reconstructs the human body by using sparse multi-viewpoints and then renders the image under the target viewpoint, thereby realizing self-supervision from 2D image to 2D image and avoiding dependence on 3D true value. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0047] Figure 1 The figure is a flow chart of the method of the present invention.
[0048] Figure 2 This is a framework diagram of the universal 3D human body reconstruction model based on multiple perspectives of the present invention. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0050] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0051] like Figure 1 and Figure 2 As shown, the present invention provides a 3D human body self-supervised reconstruction method based on multi-view images, comprising the following steps:
[0052] 1. Data acquisition and preprocessing.
[0053] First, use multiple cameras to simultaneously capture multi-view images of the target human body from different perspectives. 1) Use Opencv to calibrate the camera to obtain the camera parameters of the images at different perspectives. 2) Use the human body segmentation algorithm CIHP to obtain the segmentation map of the target foreground human body in the image. 3) Use the Openpose algorithm to detect the 2D key points of the target human body in the image. 4) Then use the EasyMocap system to obtain the 3D key points of the human body and the SMPL parameters of the human body model.
[0054] 2. Multi-view feature map extraction
[0055] The algorithm uses m multi-view images of the target human body. And the corresponding SMPL parameters M(θ,β) and camera parameters As input, K i represents the camera intrinsic parameter of the i-th input view, R k ,t k Represents the camera external parameters of the i-th input view. The SMPL model used here models the human body shape and posture separately: the shape is mainly the height, weight, body attributes, etc. of the human body model; the posture is mainly the various different actions of the human body model. Shape parameters are the coefficients of a low-dimensional shape space learned from thousands of recorded scans, and the pose parameters It is obtained by rotating the K = 23 joints of the skeleton through forward kinematics. The SMPL model is a differentiable function Output is a 3D mesh with N = 6980 vertices and F = 13776 faces. For each view First, use ResUnet34 as the feature extraction network to get the image feature map
[0056] 3. Multi-view structured human feature extraction and fusion
[0057] Using a set of structured implicit encodings To represent the local geometry and texture of the human body, these implicit codes are defined at each vertex on the SMPL surface mesh Such implicit coding can provide a priori information of human body geometry for human body reconstruction. Unlike NeuralBody, NeuralBody’s structured implicit coding It is obtained through optimization. Such implicit coding can only be applied to a single target human body, while the implicit coding of this scheme is obtained through multi-view feature maps. Extract and fuse them, so that they can be used for different target human bodies and then used to realize 3D human body reconstruction from multi-view images. First, the vertex v in the three-dimensional space is i According to the camera parameters 2D projection points projected onto the feature map of each view Then the vertex v is obtained by bilinear interpolation sampling i Features of feature maps at different views Finally, the average pooling or attention mechanism is used to fuse the vertex v i The corresponding structured implicit encoding Since SMPL is just a skin mesh and does not model geometric details such as surface clothing and hair, this set of structured implicit encoding It only exists on the mesh surface of SMPL and cannot see the geometry of the clothing part. To this end, the sparse convolution network SpareConvNet is used to diffuse the implicit encoding of the surface into the surrounding space to form a dense implicit encoding voxel
[0058] 4. Neural Radiation Field
[0059] Neural radiance field NeRF uses a fully connected neural network F(x,d)=(c,σ) to represent a 3D scene, mapping the 3D position x and the sight direction d to the color c and density σ to form a continuous field. However, the neural network F using the 3D position x as input can only be used to express a single scene. Therefore, for any point in the 3D space Sampling implicitly encoded voxels using trilinear interpolation Get the implicit encoding of the corresponding point x Instead of the 3D position x as input, like PIFu, point x is projected onto the feature map at different viewpoints, and the features of the sampled pixels are fused to obtain a(x) as an additional input of the neural radiation field F. Finally, the general neural radiation field F(z(x), a(x), d) = (c, σ) is formed.
[0060] 5. Voxel Rendering
[0061] This solution uses the voxel rendering method introduced in NeRF to render the neural radiation field F into a 2D image. Given the parameters of a camera at a new perspective, the color of the image pixel at that camera perspective can be obtained by integrating the color and density on the ray r emitted by the corresponding camera using the rendering equation in NeRF. In fact, continuous integration can be obtained by sampling N points between the near plane and the far plane along the camera ray r. Using numerical methods we can approximate:
[0062]
[0063]
[0064]
[0065] where δ k =||x k+1 -x k || 2 is the distance between adjacent sampling points, The color is obtained by voxel rendering. is the corresponding desired opacity.
[0066] 6. Model Training
[0067] In order to avoid the use of 3D true value geometry supervision, this scheme uses multi-view images for self-supervised 3D human reconstruction. Reconstruct and render the image I from another new perspective t Conduct supervised training to achieve image-to-image self-supervision. In order to achieve stable and robust training, a multi-objective optimization function is used here. The specific function is as follows:
[0068]
[0069] in and Respectively represent image reconstruction loss, image perception loss and background regularization loss. p and λ d are the weights corresponding to the image perception loss and background regularization loss respectively.
[0070] Image reconstruction loss
[0071] The image reconstruction loss aims to optimize the mean square error between the rendered image and the target image, which is defined as follows:
[0072]
[0073] Where r is the target image I t A camera ray, is the pixel color obtained by voxel rendering, and C(r) is the target image I t The corresponding pixel color.
[0074] Image Perceptual Loss
[0075]
[0076] Use the VGG-19 model pre-trained on the ImageNet classification task to extract the target image I t and render images The intermediate representation is used here. represents the VGG network, where represents the features extracted by the i-th layer of the VGG network, N i It represents the number of elements of the feature layer, and M represents the number of feature layers.
[0077] Background regularization loss
[0078] The main purpose of this method is to reconstruct the target person, not the background. The density is concentrated in the foreground, while the density of the background should be zero, and the ambiguity caused by the color of the background and the color of the clothes should be avoided. Minimize the error between the density obtained by rendering and the mask obtained by segmentation:
[0079]
[0080] Where r is the target image I t A camera ray, is the density obtained using voxel rendering, and D(r) is the mask obtained by segmentation.
[0081] Example
[0082] The number of multi-view images input in the scheme is m=4, and the resolution of the image is 512×512. Since voxel rendering is very memory-intensive, it is impossible to render an entire target image at one time during each training. This embodiment adopts a block training method, that is, a 64×64 image block is sampled from the target image for training each time. At the same time, for voxel rendering, 64 points are uniformly sampled for each ray of the neural radiation field for rendering. Other hyperparameter settings in the experiment: H=256, d=64, λ p =0.01,λ d = 0.1. Model optimization sampling Adam optimizer, learning rate is set to 5e -4 , a total of 120,000 optimization iterations were performed.
[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A 3D human body self-supervised reconstruction method based on multi-view images, characterized in that: The method comprises the following steps: Acquire multi-view images and establish three-dimensional space; Obtain the camera parameters of images at different viewing angles, the segmentation map of the target foreground human body, the 2D key points of the target human body, the 3D key points of the human body, and the SMPL parameters of the human body model; A universal 3D human body reconstruction model based on multiple perspectives is established. The method for establishing the universal 3D human body reconstruction model based on multiple perspectives includes: Input the multi-view image, the SMPL parameters corresponding to the multi-view image, and the camera parameters into the feature extraction network ResUnet34, and output a multi-view feature map; Define structured implicit encoding; Projecting the vertices in the three-dimensional space to 2D projection points on the multi-view feature map according to the camera parameters; The features of the vertices in the multi-view feature map are obtained through bilinear interpolation sampling; Get the structured implicit encoding corresponding to the vertex; Using a sparse convolutional network SparseConvNet to diffuse the structured implicit code into the surrounding space, obtaining a dense implicit code voxel; Establishing neural radiation fields; For any point in three-dimensional space x , using trilinear interpolation to sample the implicitly encoded voxels, we get x The geometric encoding of The point x Project it to the multi-view feature map to extract features and fuse them into multiple views to get the appearance code. Obtaining a universal neural radiation field according to the geometric coding and the appearance coding; A new viewing angle camera parameter is given by using a voxel rendering method, and the universal neural radiation field is rendered to obtain a 2D image under the new viewing angle camera parameter, and the universal 3D human body reconstruction model based on multiple viewing angles is established; The multi-view images, the camera parameters corresponding to the multi-view images, and the SMPL parameters of the human body model corresponding to the multi-view images are input into a universal 3D human body reconstruction model based on multi-view, and a target view 2D image is output.
2. The method for self-supervised reconstruction of a 3D human body based on multi-view images according to claim 1, characterized in that: The method of acquiring multi-view images and establishing a three-dimensional space includes: using multiple cameras to simultaneously shoot a target human body from different viewpoints to obtain multi-view images of the target human body; and establishing a three-dimensional space using the center positions of the multiple cameras as the origin of a world coordinate system.
3. The method for self-supervised reconstruction of a 3D human body based on multi-view images according to claim 1, characterized in that: The camera parameters of images under different viewing angles, the segmentation map of the target foreground human body, the 2D key points of the target human body, the 3D key points of the human body and the SMPL parameters of the human body model are obtained as follows: Use Opencv to perform camera calibration on the multi-view images to obtain camera parameters of images at different viewing angles; Using the human body segmentation algorithm CIHP to obtain a segmentation map of the target foreground human body on the multi-view image; Use the Openpose algorithm to detect multi-view images and obtain the 2D key points of the target human body; The camera parameters and 2D key points are input into the EasyMocap system, and the 3D key points of the human body and the SMPL parameters of the human body model are output.
4. The method for self-supervised reconstruction of a 3D human body based on multi-view images according to claim 1, characterized in that: The human body model SMPL parameters separately model the human body shape and posture, wherein the shape includes the height, weight, and body attributes of the human body model; and the posture includes different movements of the human body model.
5. The method for self-supervised reconstruction of a 3D human body based on multi-view images according to claim 1, characterized in that: Use average pooling or attention mechanism to fuse and obtain the structured implicit coding corresponding to the vertex.
6. The method for self-supervised reconstruction of a 3D human body based on multi-view images according to claim 1, characterized in that: The method further includes training the general 3D human body reconstruction model based on multiple perspectives through a multi-objective optimization function, wherein the multi-objective optimization function is: in, is the image reconstruction loss, is the image perception loss, is the background regularization loss, is the image perceptual loss weight, is the background regularization loss weight.
7. The method for self-supervised reconstruction of a 3D human body based on multi-view images according to claim 6, characterized in that: The image reconstruction loss formula is as follows: Among them, r is the target image I t A camera ray, is the pixel color obtained by voxel rendering, For the target image I t The corresponding pixel color of The image perception loss formula is as follows: in, To render the image, For the VGG network, For the VGG network i The features extracted by the layer, For the i The number of elements of the layer feature, is the number of feature layers; The background regularization loss formula is as follows: in, is the density obtained using voxel rendering, is the mask obtained by segmentation.
Citation Information
Patent Citations
Single-image human body three-dimensional reconstruction method and system based on grid deformation
CN110428493A
Dynamic human body three-dimensional reconstruction and visual angle synthesis method
CN112465955A
