A method for reconstructing a three-dimensional human body based on a custom gradient descent algorithm

By combining a custom gradient descent algorithm and data augmentation techniques with contour information to optimize the SMPL model, the problems of high instrument precision, difficulty in obtaining datasets, and long reconstruction time in 3D human body reconstruction were solved, achieving efficient and accurate 3D human body reconstruction.

CN117392346BActive Publication Date: 2026-11-20DALIAN NEUSOFT UNIV OF INFORMATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311329782.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2026-11-20
Estimated Expiration
2043-10-13

AI Technical Summary

Technical Problem

Existing 3D human body reconstruction technology suffers from problems such as high instrument precision, high cost, difficulty in acquiring datasets, long reconstruction time, and low accuracy. In particular, reconstruction models based on optimization methods are prone to getting trapped in local minima and rely on single 2D information, leading to inaccurate estimations.

Method used

A custom gradient descent algorithm is adopted, combined with data augmentation technology and contour information. The SMPL parameterized model is optimized through a gradient update network. The 3D human body is reconstructed using 2D joints and contour information, avoiding the time-consuming problem of traditional optimization methods and improving the estimation accuracy of the model.

Benefits of technology

It achieves efficient and accurate 3D human body reconstruction, reduces dependence on 3D human body datasets, improves body shape prediction accuracy and reconstruction accuracy, and adapts to the generation of diverse body shapes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117392346B_ABST
    Figure CN117392346B_ABST
Patent Text Reader

Abstract

The application discloses a method for reconstructing a three-dimensional human body based on a self-defined gradient descent algorithm, which comprises the following steps: obtaining a data set containing human body postures and body shape parameters and enhancing the body shape parameters; representing randomly generated cameras, postures and body shape parameters as initial states; obtaining 3D joint nodes, initial 2D joint nodes and initial contour information based on the initial states and an SMPL parameterized model; constructing a gradient update network; for each iteration, calculating the value of a loss function according to the predicted values of the 2D joint nodes and the contour information and the corresponding true values in the data set; calculating partial derivatives according to the value of the loss function; obtaining a state parameter gradient update term according to the partial derivatives, the current state, the initial 2D joint nodes and the initial contour information; obtaining a next state according to the update term and the current state; representing the next state as the current state; obtaining the current state after the iteration is completed; and reconstructing a three-dimensional human body according to the current state. The method effectively improves the estimation precision and reconstruction accuracy of the SMPL model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of three-dimensional human body reconstruction technology, and in particular to a method for reconstructing a three-dimensional human body based on a custom gradient descent algorithm. Background Technology

[0002] There are several main methods for achieving 3D human reconstruction. One is to scan the target object with a high-precision camera to reconstruct a 3D model. However, this method requires high instrument precision and is costly. Another method is point cloud reconstruction, which involves obtaining the point cloud coordinates of the target object and then constructing the target model through operations such as merging and rendering. However, due to the large number of point clouds, this method is time-consuming in terms of storage and computation. A third method is to reconstruct the target model using parametric models. Commonly used human parametric models include SCAPE (Shape Completion and Animation through Parametric Estimation), a model that completes shape and animation based on parameter estimation, and SMPL (Skinned Multi-Person Linear Model). SMPL is commonly used; it provides a differentiable equation, with input Θ = {θ, β}, and outputs a posed 3D mesh with 6980 vertices on its surface. in These represent posture and body shape parameters, respectively. The posture parameter θ includes the global rotation of the root joint (pelvis) and 23 local rotations of other joints relative to their parent joints along the motion tree. Using the SMPL parametric model, 3D human reconstruction can be transformed into a problem of solving model parameters. Compared to the previous two methods, this method of reconstructing the 3D human body through a digital model is more economical and convenient.

[0003] Methods for generating 3D human models using SMPL models mainly fall into two categories: optimization-based methods (two-stage methods) and model training methods (end-to-end methods). Each method has its advantages and disadvantages. As is well known, model training requires a corresponding dataset; however, creating a 3D human dataset is relatively complicated, primarily due to the need to obtain the 3D joint coordinates of the human body. Currently, commonly used 3D human datasets often employ motion cameras such as MoCap, requiring test subjects to wear specific equipment and the data to be collected in fixed locations such as indoors. This increases the difficulty of obtaining 3D labels for 3D human datasets, and the relatively limited data collection scenarios can easily lead to the trained network model failing to generalize effectively in outdoor environments.

[0004] The optimization-based method does not require a corresponding 3D labeled human dataset. It only requires an image of the target person and corresponding 2D human information (e.g., 2D joint coordinates, silhouette outline information, etc.) to generate a 3D human model. However, this method uses traditional optimization techniques, resulting in a long reconstruction time and a tendency to get trapped in local minima. In addition, this method relies on only a single 2D information, which can easily lead to inaccurate estimation of the final 3D model. Summary of the Invention

[0005] This invention provides a method for reconstructing a 3D human body based on a custom gradient descent algorithm to overcome the aforementioned technical problems.

[0006] A method for reconstructing a 3D human body based on a custom gradient descent algorithm includes,

[0007] Step 1: Obtain a dataset containing human posture and body shape parameters, and then use data augmentation techniques to enhance the body shape parameters in the dataset.

[0008] Step 2: Randomly generate camera parameters. The randomly generated camera parameters, pose parameters, and body shape parameters randomly sampled from the dataset are used as the initial state.

[0009] Step 3: Based on the initial state and the SMPL parametric model, obtain 3D joints. Based on the initial state and the weak perspective camera model, project the 3D joints into initial 2D joints and obtain initial contour information.

[0010] Step 4: Construct a gradient update network. The loss function of the gradient update network consists of a 2D joint projection loss function and a 2D contour loss function. The camera parameters, pose parameters, and body shape parameters are initialized to 0 and represented as the current state.

[0011] Step 5: Set the number of iterations. For each iteration, calculate the predicted values ​​of 2D joints and contour information based on the current state. Calculate the loss function based on the predicted values ​​of the 2D joints and contour information and their corresponding true values ​​in the dataset. Calculate the partial derivatives based on the loss function values. Obtain the state parameter gradient update term based on the partial derivatives, the current state, and the initial 2D joints and contour information. Obtain the next state based on the state parameter gradient update term and the current state. Represent the next state as the current state and start iterating again.

[0012] Step 6: Obtain the current state after the iteration ends, and reconstruct the 3D human body based on the current state.

[0013] Preferably, step three includes constructing an SMPL parametric model, obtaining a triangular mesh based on the pose and body shape parameters in the initial state and the SMPL parametric model, and obtaining 3D joints based on a linear combination of a linear regressor and the triangular mesh.

[0014] Based on the initial camera parameters and the weak perspective camera model, the 3D joints are projected into the initial 2D joints using formula (1). And obtain the initial contour information according to formula (2).

[0015]

[0016]

[0017] Where ∏ represents orthographic projection, s is the scale parameter in the camera parameters, t is the translation parameter in the camera parameters, R is the global rotation parameter in the camera parameters, S represents the neural mesh renderer, θ is the pose parameter, β is the body shape parameter, and X is the 3D joint.

[0018] Preferably, the loss function of the gradient update network is expressed according to formula (3).

[0019]

[0020]

[0021]

[0022] in, and x represents the predicted value of 2D key points and contour information calculated by the gradient update network. gt-i and S gt-i The values ​​represent the true values ​​of the 2D joints and contours in the dataset, where m is the number of triangular meshes, n is the number of gradient update network iterations, and Θ... n ={θ n ,β n R n , t n s n}, s n Let t be the scale parameter in the camera parameters obtained in the nth iteration. n R represents the translation parameter in the camera parameters obtained in the nth iteration. n β is the global rotation parameter in the camera parameters obtained in the nth iteration. n Let θ represent the body shape parameter obtained in the nth iteration. n These are the attitude parameters obtained in the nth iteration.

[0023] Preferably, the gradient update network is a multilayer perceptron.

[0024] Preferably, the enhancement of body shape parameters in the dataset using data augmentation techniques includes replacing β with a new random vector β′ to enhance body shape, where β is a body shape parameter, and β′ is generated by sampling each body shape parameter. Calculate the variance of the current dataset's type parameters and express it as the raw variance, where σ n It is the size variance that is greater than the original variance.

[0025] This invention provides a method for reconstructing a 3D human body based on a custom gradient descent algorithm. This method avoids the time-consuming problem of traditional optimization-based model reconstruction and does not rely on a 3D human body dataset, requiring only the 2D joint coordinates and silhouette information of the human body. It uses simple data augmentation techniques to overcome the lack of body shape diversity in existing human body datasets, achieving better body shape prediction accuracy than other competing methods. Contour information is introduced into the original gradient update network, and an additional contour loss function is introduced into the original 2D joint loss function, effectively improving the estimation accuracy and reconstruction accuracy of the SMPL model. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a flowchart of the method of the present invention;

[0028] Figure 2 This is a flowchart of the reconstruction process of this invention. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0030] Figure 1 This is a flowchart of the method of the present invention, as shown below. Figure 1 As shown, the method in this embodiment may include:

[0031] Step 1: Obtain a dataset containing human posture and body shape parameters, and then use data augmentation techniques to enhance the body shape parameters in the dataset.

[0032] Step 2: Randomly generate camera parameters. The randomly generated camera parameters, pose parameters, and body shape parameters randomly sampled from the dataset are used as the initial state.

[0033] Step 3: Based on the initial state and the SMPL parametric model, obtain 3D joints. Based on the initial state and the weak perspective camera model, project the 3D joints into initial 2D joints and obtain initial contour information.

[0034] Step 4: Construct a gradient update network. The loss function of the gradient update network consists of a 2D joint projection loss function and a 2D contour loss function. The camera parameters, pose parameters, and body shape parameters are initialized to 0 and represented as the current state.

[0035] Step 5: Set the number of iterations. For each iteration, calculate the predicted values ​​of 2D joints and contour information based on the current state. Calculate the loss function based on the predicted values ​​of the 2D joints and contour information and their corresponding true values ​​in the dataset. Calculate the partial derivatives based on the loss function values. Obtain the state parameter gradient update term based on the partial derivatives, the current state, and the initial 2D joints and contour information. Obtain the next state based on the state parameter gradient update term and the current state. Represent the next state as the current state and start iterating again.

[0036] Step 6: Obtain the current state after the iteration ends, and reconstruct the 3D human body based on the current state.

[0037] Based on the above scheme, a custom gradient descent algorithm is adopted, which avoids the time-consuming problem of traditional optimization-based model reconstruction. It does not rely on a 3D human body dataset, but only requires the 2D joint coordinates and silhouette information of the human body. Simple data augmentation techniques are used to overcome the lack of body shape diversity in existing human body datasets. It has better body shape prediction accuracy than other competing methods. Contour information is introduced into the original gradient update network, and an additional contour loss function is introduced into the original 2D joint loss function, which effectively improves the estimation accuracy and reconstruction accuracy of the SMPL model.

[0038] Specifically, this embodiment provides detailed information on the three-dimensional human body reconstruction method, including...

[0039] Step 1: Obtain a dataset containing human posture and body shape parameters. Then, augment the body shape parameters in the dataset using data augmentation techniques. This augmentation involves replacing β with a new random vector β′, where β is a body shape parameter, and β′ is generated by sampling each body shape parameter. Calculate the variance of the current dataset's type parameters and express it as the raw variance, where σ nIt is the size variance that is greater than the original variance.

[0040] Step 2: Randomly generate camera parameters. The randomly generated camera parameters, pose parameters, and body shape parameters randomly sampled from the dataset are used as the initial state.

[0041] Step 3: Obtain 3D joints based on the initial state and the SMPL parametric model. Project the 3D joints into initial 2D joints based on the initial state and the weak perspective camera model, and obtain initial contour information. Specifically, Step 3 includes constructing the SMPL parametric model, obtaining a triangular mesh based on the pose and body parameters in the initial state and the SMPL parametric model, and obtaining 3D joints based on a linear combination of a linear regressor and the triangular mesh.

[0042] Based on the initial camera parameters and the weak perspective camera model, the 3D joints are projected into initial 2D joints using formula (1). And obtain the initial contour information according to formula (2).

[0043]

[0044]

[0045] Where ∏ represents orthographic projection, s is the scale parameter in the camera parameters, t is the translation parameter in the camera parameters, R is the global rotation parameter in the camera parameters, S represents the neural mesh renderer, θ is the pose parameter, β is the body shape parameter, and X is the 3D joint.

[0046] Step 4: Construct a gradient update network, which is a multilayer perceptron. The loss function of the gradient update network consists of a 2D joint projection loss function and a 2D contour loss function. Specifically, the loss function of the gradient update network is expressed according to formula (3).

[0047]

[0048]

[0049]

[0050] in, and x represents the predicted value of 2D key points and contour information calculated by the gradient update network. gt-i and S gt-i The values ​​represent the true values ​​of the 2D joints and contours in the dataset, where m is the number of triangular meshes, n is the number of gradient update network iterations, and Θ... n ={θ n ,βn ,R n ,t n ,s n}, s n Let t be the scale parameter in the camera parameters obtained in the nth iteration. n R represents the translation parameter in the camera parameters obtained in the nth iteration. n β is the global rotation parameter in the camera parameters obtained in the nth iteration. n Let θ represent the body shape parameter obtained in the nth iteration. n These are the attitude parameters obtained in the nth iteration.

[0051] Initialize the camera parameters, pose parameters, and body size parameters to 0 and represent them as the current state.

[0052] Step 5: Set the number of iterations. For each iteration, calculate the predicted values ​​of 2D joints and contour information based on the current state. Calculate the loss function based on the predicted values ​​of the 2D joints and contour information and their corresponding true values ​​in the dataset. Calculate the partial derivatives based on the loss function values. Obtain the state parameter gradient update term based on the partial derivatives, the current state, and the initial 2D joints and contour information. Obtain the next state based on the state parameter gradient update term and the current state. Represent the next state as the current state and start iterating again.

[0053] Step 6: Obtain the current state after the iteration ends, and reconstruct the 3D human body based on the current state.

[0054] The above scheme uses an improved optimization-based method to achieve 3D reconstruction. Among the optimization-based methods, SMPLify is quite popular. This method takes 2D joint coordinates as input and then uses the Doggleg method to optimize and iterate to obtain the SMPL model parameters. However, this traditional optimization algorithm is prone to getting trapped in local minima even with good initial values, and the optimization iteration time is long.

[0055] To avoid these problems, this embodiment uses a custom gradient descent algorithm to fit the 3D human body model. This algorithm, proposed by Song et al., uses a neural network to predict parameter update rules to fit the SMPL human body model to the target object. However, since the input of this algorithm relies only on single 2D keypoint coordinate information, it lacks information and basis for estimating body shape parameters, leading to inaccurate body shape parameters in the final generated model. Therefore, this paper introduces contour information as input and incorporates a contour loss function into the original 2D keypoint reprojection loss function.

[0056] In addition, considering that body shape estimation is easily overlooked when reconstructing a 3D human body model, especially when the body shape of the target object deviates from the average body shape, this problem is mainly caused by the lack of body shape diversity in ordinary training datasets. When the distribution of test data is significantly different from the distribution of training data, most network-based training models are difficult to generalize to unseen datasets. Therefore, this embodiment dynamically generates synthetic input target pairs in the model prediction stage, samples the target SMPL body shape (shape) and pose parameters in the data, and uses data augmentation technology to control the generation of human body shape.

[0057] Specifically, the task of this embodiment is to reconstruct the corresponding three-dimensional human body model based on the 2D joint coordinates and 2D contours. The reconstruction process is as follows: Figure 2 As shown, the 3D human body model is obtained by SMPL parametric model encoding. This model is a differentiable function, and the input... These represent the pose and body shape parameters, respectively, and output a triangular mesh M(β,θ). Additionally, the model's 3D joint coordinates are also provided. This can be obtained through a linear combination of mesh vertices, X = WM, where W is a linear regressor. Based on the weak perspective camera model, 3D joints can be reprojected onto 2D coordinates. The weak perspective camera model is obtained through global rotation. Translation and scale Parameterization is performed. Therefore, a set of parameters for human reconstruction can be represented as a vector Θ = {θ, β, R, t, s}. This embodiment aims to calculate a set of parameters Θ = {θ, β, R, t, s} that match the observed 2D information (2D joints x and contours S).

[0058] To address this inverse problem, this embodiment uses the gradient descent algorithm, which calculates the gradient of the current human model relative to the input 2D detection information via a network. These partial derivatives, along with the current parameter set, are used as input to the gradient update network, generating corresponding parameter update rules for the human model. To improve the prediction accuracy of body shape parameters, contour information representing the human body shape is additionally introduced into the network input, and a contour loss function is added to the loss function.

[0059] During training, poses θ are randomly sampled from the dataset. gt and shape β gt Yes, to improve the generalization of body shape, data augmentation techniques are used to control the generation of diverse body shapes. Randomly generated camera parameters are reprojected to generate corresponding 2D joint pseudo-label data x. A Neural 3D Mesh Renderer is used to obtain the contour information S corresponding to the model vertex projections. ResNet18 is used to encode the contours, obtaining 512-dimensional feature information f. Then, the 512-dimensional feature information f, the 2D joint information x, and the current parameters Θ are combined... npartial derivatives of the parameters As input to the gradient update network. For each batch of training samples, Θ0 is initialized with 0, and after calculating equations (1) and (2), the error between the predicted value and the target 2D test value is calculated.

[0060] Then calculate the partial derivatives. This is used as the input to the gradient update network, and the other input is the current state Θ. n And the target 2D measurements x and S. Once the state parameter gradient update term ΔΘ is obtained. n Then you can use Θ n Updated to Θ n+1 Continue this process until convergence. The overall training strategy is as follows:

[0061] (1) During training, only a dataset containing human pose and shape parameters (e.g., the AMASS dataset) is needed. No additional processing of the dataset is required. The pose θ and body shape parameter β of the SMPL model are directly sampled from it. Data augmentation techniques are used to generate body shape parameter information with greater variance. That is, body shape augmentation is performed by replacing β with a new random vector β′, which is generated by sampling each body shape parameter. Where σ n It is a larger variance in body size than the current dataset.

[0062] (2) Input human posture and body shape parameters, reconstruct a 3D human body mesh model using the SMPL library, and obtain the 3D joint coordinates X of the human body based on the mesh vertex mapping.

[0063] (3) Reproject the 3D joints using randomly generated camera parameters to obtain 2D joint points x, and use Neural3D Mesh Renderer to obtain the contour information S corresponding to the model vertex projection.

[0064] (4) ResNet18 is used to encode the projected contour to obtain 512-dimensional feature information f. Then, the 2D joint coordinates and contour feature information are fed into the improved gradient update network. The original gradient update network used key point information as input and did not consider the shape information of the human body. In the improved gradient update network, the input of 2D measurement values ​​consists of 2D joint coordinates and contour feature information. The network outputs human pose, body shape parameters and camera parameters, and introduces 2D contour error into the original 2D joint projection error. That is, the total network loss function consists of 2D joint projection loss function and 2D contour loss function. A standard multilayer perceptron is used as the gradient update network. The input network includes 4 blocks. Each block consists of a fully connected layer, a ReLU layer and a dropout layer. Each fully connected layer has 1024 neurons and the dropout probability is set to 0.2.

[0065] The attitude parameter gradient update process: based on the detected 2D information and parameter Θ n and the partial derivatives of the parameters The input that makes up the network Initially, Θ0 is initialized to 0. After passing through a fully connected layer FC1, the output is transformed to 1024 dimensions, then through a ReLU layer and a dropout layer (dropout probability of 0.2). After passing through the four blocks of the input network, the output is 1024 dimensions, and finally through a fully connected layer FC2, outputting 24-dimensional features. After one iteration, the state parameter gradient update term ΔΘ0 is obtained. Θ0 is updated to Θ1, where Θ1 = Θ0 + ΔΘ0. The input is fed into a gradient update network, where it passes through a fully connected layer FC3 to transform the output to 1024 dimensions. It then passes through a ReLU layer and a dropout layer (with a dropout probability of 0.2). After passing through the four blocks of the input network, the output remains at 1024 dimensions. Finally, it passes through a fully connected layer FC4 to output 24×3 dimensional features. This process is repeated four times, n=4, to obtain the pose parameters θ.

[0066] Shape parameter update process: based on detected 2D information and parameter Θ n and the partial derivatives of the parameters The input that makes up the network Initially, Θ0 is initialized to 0. After passing through a fully connected layer FC1, the output is transformed to 1024 dimensions, then through a ReLU layer and a dropout layer (dropout probability of 0.2). After passing through the four blocks of the input network, the output is 1024 dimensions, and finally through a fully connected layer FC2, outputting 10-dimensional features. After one iteration, the state parameter gradient update term ΔΘ0 is obtained. Θ0 is updated to Θ1, where Θ1 = Θ0 + ΔΘ0. The input is fed into a gradient update network, where it passes through a fully connected layer FC3 to transform the output to 1024 dimensions. It then passes through a ReLU layer and a dropout layer (with a dropout probability of 0.2). After passing through the four blocks of the input network, the output remains at 1024 dimensions. Finally, it passes through a fully connected layer FC4 to output 10-dimensional features. This process is repeated four times (n=4) to obtain the body size parameter β.

[0067] Camera parameter update process: based on detected 2D information and parameter Θ n and the partial derivatives of the parameters The input that makes up the network Initially, Θ0 is initialized to 0. After passing through a fully connected layer FC1, the output is transformed to 1024 dimensions, then through a ReLU layer and a dropout layer (dropout probability of 0.2). After passing through the four blocks of the input network, the output is again 1024 dimensions, and finally through a fully connected layer FC2, outputting 3-dimensional features. After one iteration, the state parameter gradient update term ΔΘ0 is obtained. Θ0 is updated to Θ1, where Θ1 = Θ0 + ΔΘ0. The input is fed into a gradient update network, where it passes through a fully connected layer FC3 to transform the output to 1024 dimensions. It then passes through a ReLU layer and a dropout layer (with a dropout probability of 0.2). After passing through the four blocks of the input network, the output is again 1024 dimensions. Finally, it passes through a fully connected layer FC4 to output 3-dimensional features. This process is repeated four times, n=4, to finally obtain the camera parameters cam.

[0068] Overall beneficial effects:

[0069] This invention provides a method for reconstructing a 3D human body based on a custom gradient descent algorithm. This method avoids the time-consuming problem of traditional optimization-based model reconstruction and does not rely on a 3D human body dataset, requiring only the 2D joint coordinates and silhouette information of the human body. It uses simple data augmentation techniques to overcome the lack of body shape diversity in existing human body datasets, achieving better body shape prediction accuracy than other competing methods. Contour information is introduced into the original gradient update network, and an additional contour loss function is introduced into the original 2D joint loss function, effectively improving the estimation accuracy and reconstruction accuracy of the SMPL model.

[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions 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 method for reconstructing a 3D human body based on a custom gradient descent algorithm, characterized in that, include, Step 1: Obtain a dataset containing human posture and body shape parameters, and then use data augmentation techniques to enhance the body shape parameters in the dataset. Step 2: Randomly generate camera parameters. The randomly generated camera parameters, pose parameters, and body shape parameters randomly sampled from the dataset are used as the initial state. Step 3: Based on the initial state and the SMPL parametric model, obtain 3D joints. Based on the initial state and the weak perspective camera model, project the 3D joints into initial 2D joints and obtain initial contour information. Step 4: Construct a gradient update network. The loss function of the gradient update network consists of a 2D joint projection loss function and a 2D contour loss function. The camera parameters, pose parameters, and body shape parameters are initialized to 0 and represented as the current state. Step 5: Set the number of iterations. For each iteration, calculate the predicted values ​​of 2D joints and contour information based on the current state. Calculate the loss function based on the predicted values ​​of the 2D joints and contour information and their corresponding true values ​​in the dataset. Calculate the partial derivatives based on the loss function values. Obtain the state parameter gradient update term based on the partial derivatives, the current state, and the initial 2D joints and contour information. Obtain the next state based on the state parameter gradient update term and the current state. Represent the next state as the current state and start iterating again. Step 6: Obtain the current state after the iteration ends, and reconstruct the 3D human body based on the current state.

2. The method for reconstructing a 3D human body based on a custom gradient descent algorithm according to claim 1, characterized in that, Step three includes constructing an SMPL parametric model, obtaining a triangular mesh based on the pose and body parameters in the initial state and the SMPL parametric model, and obtaining 3D joints based on a linear combination of a linear regressor and the triangular mesh. Based on the initial camera parameters and the weak perspective camera model, the 3D joints are projected into the initial 2D joints using formula (1). And obtain the initial contour information according to formula (2). Where ∏ represents orthographic projection, s is the scale parameter in the camera parameters, t is the translation parameter in the camera parameters, R is the global rotation parameter in the camera parameters, S represents the neural mesh renderer, θ is the pose parameter, β is the body shape parameter, and X is the 3D joint.

3. The method for reconstructing a 3D human body based on a custom gradient descent algorithm according to claim 2, characterized in that, The loss function of the gradient update network is expressed according to formula (3). in, and x represents the predicted value of 2D key points and contour information calculated by the gradient update network. gt-i and S gt-i The values ​​represent the true values ​​of the 2D joints and contours in the dataset, where m is the number of triangular meshes, n is the number of gradient update network iterations, and Θ... n ={θ n ,β n ,R n ,t n ,s n }, s n Let t be the scale parameter in the camera parameters obtained in the nth iteration. n R represents the translation parameter in the camera parameters obtained in the nth iteration. n β is the global rotation parameter in the camera parameters obtained in the nth iteration. n Let θ represent the body shape parameter obtained in the nth iteration. n These are the attitude parameters obtained in the nth iteration.

4. The method for reconstructing a 3D human body based on a custom gradient descent algorithm according to claim 1, characterized in that, The gradient update network is a multilayer perceptron.

5. The method for reconstructing a 3D human body based on a custom gradient descent algorithm according to claim 1, characterized in that, The data augmentation technique for enhancing body shape parameters in the dataset includes replacing β with a new random vector β′ to enhance body shape, where β is a body shape parameter, and β′ is generated by sampling each body shape parameter. Calculate the variance of the current dataset's type parameters and express it as the raw variance, where σ n It is the size variance that is greater than the original variance.

Citation Information

Patent Citations

  • Shadow-based single-image three-dimensional human body reconstruction method and device

    CN115115776A

  • Image processing method and device

    WO2021190321A1