Virtual human arbitrary view angle rendering method and system based on three-dimensional Gaussian spattering

Through a virtual human arbitrary-view rendering method based on three-dimensional Gaussian splashing, SMPLify is used to fit the human body model and construct a learnable three-dimensional Gaussian set, which solves the problems of high equipment cost and poor model generalization ability in the existing technology, and achieves high efficiency. ,Accurate virtual human body image rendering.

CN118736092APending Publication Date: 2024-10-01SUN YAT SEN UNIV
View PDF 0 Cites 19 Cited by

Patent Information

Application Number
CN202410688139.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology has the problems of high equipment cost, long calculation time, poor model generalization ability, and insufficient robustness to clothing and posture in the rendering of virtual human bodies from any perspective, especially when professional equipment and complex point cloud estimation technology are not used. In this case, it is difficult to achieve high-quality 3D human body model rendering.

Method used

A virtual human arbitrary-view rendering method based on three-dimensional Gaussian splashing is adopted, and the human body model is fitted through SMPLify to construct a learnable three-dimensional Gaussian set. The number and distribution of Gaussians are dynamically adjusted through rasterization and adaptive density control to render the High quality virtual human body images.

Benefits of technology

It reduces the cost of obtaining point cloud data, improves the accuracy and efficiency of the model, avoids complex point cloud estimation technology, achieves high-quality image rendering under different viewing angles, and the constraints based on the SMPL model ensure that the distribution of Gaussians is close to human body surface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736092A_ABST
    Figure CN118736092A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional Gaussian spattering-based virtual human arbitrary visual angle rendering method and system. Fitting corresponding SMPL models for the human body pictures under the plurality of visual angles; sampling the SMPL model to obtain a virtual human point cloud; initializing a three-dimensional Gaussian for each point in the point cloud; projecting the three-dimensional Gaussian to a two-dimensional plane to form a two-dimensional Gaussian; rasterization is carried out on the two-dimensional gauss, and an image is rendered; constructing a loss function by using the similarity between the rendered image and the real human body picture, performing adaptive density control on the three-dimensional Gaussian, and finally forming the trained three-dimensional Gaussian; and inputting any specified new view angle by a user, and rendering an image under the new view angle by using the trained three-dimensional Gaussian. The human body three-dimensional point cloud is obtained through image fitting of the SMPL model and sampling, an SfM point cloud estimation technology is replaced, cost is low, and efficiency is high. Three-dimensional gauss are cloned and split based on the network topology of the SMPL model, and it is guaranteed that the number and distribution of the gauss fit the human body as much as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of computer vision and computer graphics, and in particular to a method and system for rendering a virtual human at any viewing angle based on three-dimensional Gaussian splashing. Background Art

[0002] In recent years, with the continuous development of computer technology, virtual digital humans have gradually come into the public eye and have been widely used in many fields. For example, in the film and game industries, creators create realistic virtual characters to provide more realistic visual effects and interactive experiences, while in education and training scenarios, virtual digital humans can be used to simulate actual scenarios to help students and professionals conduct practical operations and training.

[0003] Human image rendering technology is a process that uses computer graphics and computer vision technology to model, illuminate, and texture the human body to generate realistic human images. Arbitrary view image rendering is to render human images from any specified view based on existing video or image information. How to infer the information of the invisible part based on the existing information, so as to render high-quality images from a new view, is a major difficulty in this field.

[0004] In recent years, with the continuous development of deep learning, different 3D human representation methods and rendering models under new perspectives have emerged. However, these methods often have problems such as too high storage requirements or too long calculation time, and cannot be applied to actual mobile applications.

[0005] One of the current existing technologies is the new perspective rendering technology of clothing based on dense camera array 3D reconstruction proposed in the paper "The relightables: Volumetric performance capture of humans with realistic relighting". This technology uses a dense camera array to capture color images and depth maps of the target human body at several perspectives, and then uses existing mature technologies to extract sparse point clouds and semantic segmentation masks of the target human body. Finally, based on a predefined energy function, a dense point cloud of the human body surface is generated in the form of iterative optimization, and a traditional shielded Poisson algorithm is used to reconstruct the 3D mesh and set the texture image. When the human body scene needs to be rendered, a traditional rendering model such as BRDF is used to obtain the human body image at any viewpoint. The disadvantage of this technology is that it requires professional dense camera array equipment to capture high-resolution color images, and an IR camera with consistent camera parameters is required to extract sparse local point clouds of the dressed human body. The equipment scale, cost and professionalism are beyond the reach of the general public. In addition, the execution time of the entire optimization algorithm is lengthy, and extremely stringent iteration termination conditions and error rates are required to obtain a high-precision 3D human body model. On the other hand, this technology generates a 3D mesh rather than an end-to-end image of a clothed human body, which consumes additional storage space without considering physical interactions.

[0006] The second existing technology is the new human perspective synthesis technology based on neural radiation field proposed in the paper "Sherf: Generalizable human nerf from a single image". This technology represents the scene represented by the human body as an implicit neural radiation field, generates a corresponding two-dimensional feature map and a point cloud feature encoding based on a parameterized model for the input image, and constrains it in the standard posture space. The neural radiation field regresses the medium probability density of any sampling point, and the reflectivity calculation is performed in the standard posture space. Then, the radiation field information of the sampling point is converted to the observed posture space through the predefined skin weights and nearest neighbor interpolation strategy of the parameterized model, and finally performs image rendering of the human body at any perspective. The disadvantage of this technology is that it requires pre-trained image and point cloud encoders to obtain the input image and the roughly predicted parameterized model vertex features. This process requires additional annotated data sets, and the existing human data sets are incomplete in terms of clothing style and posture diversity. When applied to user-defined input scenes for reasoning, the model has poor robustness to clothing, lighting and posture. In addition, this technology uses a multi-layer perceptron as the storage medium for neural radiation fields, and its training time, parameter scale, and inference speed are relatively slow.

[0007] The third existing technology is a new perspective synthesis technology for the human body based on three-dimensional mixed Gaussian and splash rendering proposed in the paper "Gart: Gaussian articulated template models". This technology uses the SfM method to estimate the point cloud in the three-dimensional space where the human body is located, establishes a learnable three-dimensional Gaussian ellipsoid for each point cloud, stores the coordinate mean of the point, the covariance matrix describing the shape and direction of the Gaussian ellipsoid, the opacity coefficient and the spherical harmonic function coefficient, and learns additional hidden bones for the three-dimensional Gaussian to fit the deformation of loose clothing. The above calculations are all in the standard posture space, and then the three-dimensional Gaussian of the sampling points is converted to the observed posture space through the predefined skin weights of the human template and the skin weights trained for the hidden bones, and finally the image rendering of the human body at any perspective is performed. The disadvantage of this technology is that the use of the SfM method to estimate the point cloud requires the extraction of feature information from the two-dimensional image sequence and then the solution of the three-dimensional coordinates of the feature points in the three-dimensional scene, which has the problem of inaccurate estimation. In addition, this technology learns an additional limited number of hidden bones for the Gaussian and the skin weights cannot fully cover the various clothing of the human body, and the generalization ability of the model is poor. Summary of the invention

[0008] The purpose of the present invention is to overcome the shortcomings of the existing methods and propose a method and system for rendering virtual humans from any perspective based on three-dimensional Gaussian splashing. The main problems solved by the present invention are: first, how to introduce a parametric human body model to sample the three-dimensional points of the human body without using a professional dense camera array and without the need for SfM technology to estimate the point cloud, thereby reducing the cost of acquiring point cloud data; second, how to make the number and distribution of Gaussians fit the three-dimensional human body more correctly, thereby improving the accuracy of the model.

[0009] In order to solve the above problems, the present invention proposes a virtual human arbitrary viewing angle rendering method based on three-dimensional Gaussian splashing, the method comprising:

[0010] Input multi-view human body pictures, and use the SMPLify method to fit the corresponding SMPL model for the human body pictures at each view.

[0011] Sampling the SMPL model at each viewing angle to obtain virtual human point cloud data;

[0012] For each point in the virtual human point cloud data, construct and initialize a learnable three-dimensional Gaussian to form a three-dimensional Gaussian set;

[0013] Step A: projecting the three-dimensional Gaussian set onto a two-dimensional plane according to the position of the camera of the multi-view human body image to form a two-dimensional Gaussian set;

[0014] Step B: rasterizing the two-dimensional Gaussian set to render a virtual human image;

[0015] Step C, constructing a loss function using the similarity between the rendered virtual human image and the real human body image, performing adaptive density control on the three-dimensional Gaussian set, and dynamically adjusting the number and distribution of the three-dimensional Gaussian set;

[0016] Repeat the operations of step A, step B, and step C above to finally form a trained three-dimensional Gaussian set;

[0017] The user inputs any new viewing angle specified, and the trained three-dimensional Gaussian set is used to render a virtual human image under the new viewing angle.

[0018] Preferably, the SMPL model at each viewing angle is sampled to obtain virtual human point cloud data, specifically:

[0019] Add the values ​​corresponding to each vertex of the SMPL model at each viewpoint and then calculate the average to obtain an averaged SMPL human body model;

[0020] The averaged SMPL human body model is subjected to random sampling to obtain m sampling vertices as virtual human point cloud data.

[0021] Preferably, for each point in the virtual human point cloud data, a learnable three-dimensional Gaussian is constructed and initialized to form a three-dimensional Gaussian set, specifically:

[0022] The mathematical definition of a three-dimensional Gaussian is as follows:

[0023]

[0024] Among them, x is the coordinate of any point in three-dimensional space; μ is the mean of the three-dimensional Gaussian and the center of the three-dimensional Gaussian, which is represented by the three-dimensional coordinates of the corresponding point cloud point; Σ is the three-dimensional covariance matrix, which is used to control the size, shape and direction of the three-dimensional Gaussian. The covariance matrix Σ has physical meaning and needs to satisfy the semi-positive definite condition. At the same time, the three-dimensional Gaussian is an ellipsoid in shape. Therefore, the covariance matrix describes the change process from a standard sphere to an ellipsoid. The standard sphere is first scaled by the scaling vector S, and then rotated by the rotation matrix R, so the calculation formula of Σ is as follows:

[0025] Σ=RSS T R T

[0026] In addition to the mean and covariance matrix, each 3D Gaussian also stores the opacity parameter α and the spherical harmonic coefficients used to control the color;

[0027] After the three-dimensional Gaussian is constructed for each point in the virtual human point cloud data, a three-dimensional Gaussian set is formed.

[0028] Preferably, according to the position of the camera of the multi-view human body picture, the three-dimensional Gaussian set is projected onto a two-dimensional plane to form a two-dimensional Gaussian set, specifically:

[0029] A three-dimensional Gaussian projection onto a two-dimensional screen will result in an ellipse; for a given viewing angle, the covariance matrix Σ′ of the ellipse obtained after projection is calculated as follows:

[0030] Σ′=JWΣW T J T

[0031] Where W is the view transformation matrix of the camera from the world coordinate system to the camera coordinate system, and J is the Jacobian matrix of the perspective projection transformation;

[0032] After each three-dimensional Gaussian in the three-dimensional Gaussian set is projected onto a two-dimensional plane, a two-dimensional Gaussian set is formed.

[0033] Preferably, the two-dimensional Gaussian set is rasterized to render a virtual human image, specifically:

[0034] The image is divided into multiple blocks of 16 pixels * 16 pixels, and each block is processed by one thread; for the three-dimensional Gaussian set, only the three-dimensional Gaussian that intersects with the camera cone and has a confidence level greater than 99% is retained; for each pixel in the block, according to the major axis and minor axis of the two-dimensional Gaussian set projected onto the plane, find out which three-dimensional Gaussians intersect with the pixel, that is, which three-dimensional Gaussians will contribute to the RGB color value of the pixel; according to the opacity parameter α of the three-dimensional Gaussian and the distance between the pixel point coordinates and the center of the two-dimensional Gaussian, calculate the opacity f of the i-th three-dimensional Gaussian to the pixel i (p):

[0035]

[0036] Where i represents the i-th three-dimensional Gaussian; α i represents the opacity parameter of the i-th three-dimensional Gaussian; represents the two-dimensional center point coordinates obtained after projection of the i-th three-dimensional Gaussian, that is, the mean coordinates; Σ′ i is the ellipse covariance matrix obtained by projection of the i-th three-dimensional Gaussian; p is the coordinate of the pixel point; exp is the exponential function;

[0037] The final RGB color value of the pixel is obtained using the alpha blending method, and the calculation formula is as follows:

[0038]

[0039] c i = <γ(d),f>

[0040] Where N represents the number of three-dimensional Gaussians that contribute to the color value of the pixel; c i is the color of the i-th three-dimensional Gaussian, which is calculated by the spherical harmonic coefficients stored in the three-dimensional Gaussian and the viewing direction. <> represents dot product; γ represents the spherical harmonic basis function related to the viewing direction; d represents the viewing direction; f is the spherical harmonic coefficient stored in the three-dimensional Gaussian; the color value c of the three-dimensional Gaussian is obtained by multiplying the spherical harmonic coefficient by the spherical harmonic basis function. i ; Represents cumulative multiplication calculation, j ranges from 1 to i-1; the final result C(p) obtained after α blending is the RGB color value of pixel p.

[0041] Preferably, a loss function is constructed using the similarity between the rendered virtual human image and the real human body picture, and adaptive density control is performed on the three-dimensional Gaussian set to dynamically adjust the number and distribution of the three-dimensional Gaussian set, specifically:

[0042] In the optimization process of three-dimensional Gaussian, when the transparency of Gaussian is too low, it is considered that the Gaussian will not contribute much to the color value of the pixel; set a threshold ∈ α , every 100 iterations, remove the opacity parameter α less than the threshold ∈ α 3D Gaussian; when the gradient in the optimization process exceeds the threshold of 0.0002, it is considered that the gradient is abnormal and the reconstruction is insufficient, and the 3D Gaussian needs to be cloned or split; for 3D Gaussians with abnormal gradients and small variance, copy the 3D Gaussian of the same size and place the new 3D Gaussian in the direction of the position gradient; for 3D Gaussians with abnormal gradients and too large variance, split them into two 3D Gaussians and sample them at the corresponding vertices of the SMPL model grid, that is, replace the original point with the midpoint of the two adjacent edges, and construct two new 3D Gaussians with these two points as the center;

[0043] The loss function of the training process is as follows:

[0044]

[0045] in, It is the mean error between each pixel of the rendered image and the corresponding pixel of the real image; It is the structural similarity loss between the rendered image and the real image, which measures the similarity between the two images; is the distance from the three-dimensional Gaussian mean to the surface of the SMPL model, where μ i is the coordinate of the center point of the i-th three-dimensional Gaussian; x SMPLare the vertex coordinates on the SMPL model; S is the vertex set of SMPL, is the distance between the i-th Gaussian and the vertex closest to SMPL, which is used to characterize the distance between the three-dimensional Gaussian and the SMPL model; n is the number of three-dimensional Gaussians; because the final 3D Gaussian should not deviate too far from the estimated SMPL surface, the final regularization term is added to constrain this.

[0046] Preferably, the user inputs any new perspective, and uses the trained three-dimensional Gaussian set to render a virtual human image under the new perspective, specifically:

[0047] According to the camera position of any new perspective specified by the user input, the trained three-dimensional Gaussian set is projected onto a two-dimensional plane to form a new perspective two-dimensional Gaussian set; the new perspective two-dimensional Gaussian set is rasterized to render a virtual human image under the new perspective.

[0048] Accordingly, the present invention also proposes a virtual human arbitrary viewing angle rendering system based on three-dimensional Gaussian splashing, comprising:

[0049] The point cloud data extraction unit is used to input a multi-view human body picture, and use the SMPLify method to fit the corresponding SMPL model to the human body picture at each view; the SMPL model at each view is sampled to obtain virtual human point cloud data;

[0050] A three-dimensional Gaussian creation unit, used to construct and initialize a learnable three-dimensional Gaussian for each point in the virtual human point cloud data to form a three-dimensional Gaussian set;

[0051] The three-dimensional Gaussian training unit is used for the following steps: step A, according to the position of the camera of the multi-view human body picture, projecting the three-dimensional Gaussian set onto a two-dimensional plane to form a two-dimensional Gaussian set; step B, rasterizing the two-dimensional Gaussian set to render a virtual human image; step C, constructing a loss function using the similarity between the rendered virtual human image and the real human body picture, performing adaptive density control on the three-dimensional Gaussian set, and dynamically adjusting the number and distribution of the three-dimensional Gaussian set; repeating the operations of the above steps A, B, and C to finally form a trained three-dimensional Gaussian set;

[0052] The application unit is used for inputting any new perspective specified by the user, and rendering a virtual human image under the new perspective using the trained three-dimensional Gaussian set.

[0053] The implementation of the present invention has the following beneficial effects:

[0054] The present invention does not use more complex point cloud estimation technologies such as SfM, but fits the SMPL model to each human body image and samples to obtain a three-dimensional point cloud of the human body, which is low-cost and high-efficiency. In the invention, the three-dimensional Gaussian is cloned and split based on the network topology of the SMPL model to ensure that the number and distribution of Gaussians fit the human body as much as possible, and a new perspective image that is closer to the training target is obtained in the projection and rendering stages. The method based on the SMPL model can constrain the split Gaussian to be close to the estimated human body surface. In the invention, the surface distance from the Gaussian mean point to the SMPL model is used as a regular term in the optimization process to ensure that the Gaussian finally learned does not deviate too far from the estimated SMPL model surface. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a general flow chart of a method for rendering a virtual human at any viewing angle based on three-dimensional Gaussian splashing according to an embodiment of the present invention;

[0056] Figure 2 It is a structural diagram of a virtual human arbitrary perspective rendering system based on three-dimensional Gaussian splashing according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.

[0058] Figure 1 is a general flow chart of a method for rendering a virtual human at any viewing angle based on three-dimensional Gaussian splashing according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0059] S1, input multi-view human body pictures, and use the SMPLify method to fit the corresponding SMPL model for the human body pictures under each view;

[0060] S2, samples the SMPL model at each perspective of S1 to obtain the virtual human point cloud data;

[0061] S3, for each point in the virtual human point cloud data of S2, construct and initialize a learnable three-dimensional Gaussian to form a three-dimensional Gaussian set;

[0062] S4, according to the position of the camera of the multi-view human body picture of S1, projects the three-dimensional Gaussian set of S3 onto the two-dimensional plane to form a two-dimensional Gaussian set;

[0063] S5, rasterizing the two-dimensional Gaussian set of S4 to render a virtual human image;

[0064] S6, constructing a loss function using the similarity between the virtual human image rendered by S5 and the real human image, performing adaptive density control on the three-dimensional Gaussian set, and dynamically adjusting the number and distribution of the three-dimensional Gaussian set;

[0065] S7, repeat the operations of S4, S5, and S6 above, and finally form a trained three-dimensional Gaussian set;

[0066] S8, the user inputs any new perspective specified, and uses the three-dimensional Gaussian set trained in S7 to render the virtual human image under the new perspective.

[0067] Step S1 is as follows:

[0068] The SMPL model, whose full name is Skinned Multi-Person Linear (SMPL) Model, is a parametric human body model that describes the shape and posture of the human body through two different sets of parameters, shape parameters β and posture parameters θ. Among them, β is a shape vector composed of 10 scalars, each scalar value can be interpreted as the expansion and contraction of the human body object in a certain direction, and θ is a 24*3 posture vector used to maintain the relative rotation of the joint relative to its parameters. SMPLify is used to fit the SMPL model from a two-dimensional image. The SMPLify method first uses a CNN-based method to predict the joint position of the 2D body, and then fits the 3D human SMPL model to the 2D joints, that is, minimizes the distance between the 2D joint points projected by the SMPL model and the 2D joint points predicted by the network. It is a method for automatically estimating the 3D posture and shape of the human body from a single unconstrained image.

[0069] Step S2 is as follows:

[0070] S2-1, the vertex coordinate values ​​of the SMPL model at each viewing angle are different. The values ​​corresponding to each vertex of the SMPL model at each viewing angle are added together and then averaged to obtain an averaged SMPL human body model;

[0071] S2-2, for the averaged SMPL human body model, use random sampling to obtain m sampling vertices as virtual human point cloud data.

[0072] Step S3 is as follows:

[0073] The mathematical definition of a three-dimensional Gaussian is as follows:

[0074]

[0075] Among them, x is the coordinate of any point in three-dimensional space; μ is the mean of the three-dimensional Gaussian and the center of the three-dimensional Gaussian, which is represented by the three-dimensional coordinates of the corresponding point cloud point; Σ is the three-dimensional covariance matrix, which is used to control the size, shape and direction of the three-dimensional Gaussian. The covariance matrix Σ has physical meaning and needs to satisfy the semi-positive definite condition. At the same time, the three-dimensional Gaussian is an ellipsoid in shape. Therefore, the covariance matrix describes the change process from a standard sphere to an ellipsoid. The standard sphere is first scaled by the scaling vector S, and then rotated by the rotation matrix R, so the calculation formula of Σ is as follows:

[0076] Σ=RSS T R T

[0077] In addition to the mean and covariance matrix, each 3D Gaussian also stores the opacity parameter α and the spherical harmonic coefficients used to control the color;

[0078] After the three-dimensional Gaussian is constructed for each point in the virtual human point cloud data, a three-dimensional Gaussian set is formed.

[0079] Step S4 is as follows:

[0080] A three-dimensional Gaussian projection onto a two-dimensional screen will result in an ellipse; for a given viewing angle, the covariance matrix Σ′ of the ellipse obtained after projection is calculated as follows:

[0081] Σ′=JW∑W T J T

[0082] Where W is the view transformation matrix of the camera from the world coordinate system to the camera coordinate system, and J is the Jacobian matrix of the perspective projection transformation;

[0083] After each three-dimensional Gaussian in the three-dimensional Gaussian set is projected onto the two-dimensional plane, a two-dimensional Gaussian set is formed.

[0084] Step S5 is as follows:

[0085] Rasterization is the process of converting geometric primitives into a two-dimensional image. The process consists of two parts: the first part is to determine which integer grid areas in window coordinates are occupied by the primitives, and the second part is to assign a color value to each area.

[0086] The image is divided into multiple blocks of 16 pixels * 16 pixels, and each block is processed by one thread; for the three-dimensional Gaussian set of S3, only the three-dimensional Gaussian that intersects with the camera's view cone and has a confidence level greater than 99% is retained; for each pixel in the block, according to the major and minor axes of the two-dimensional Gaussian set of S4 projected onto the plane, find out which three-dimensional Gaussians intersect with the pixel, that is, which three-dimensional Gaussians will contribute to the RGB color value of the pixel; according to the opacity parameter α of the three-dimensional Gaussian and the distance between the pixel coordinates and the center of the two-dimensional Gaussian, calculate the opacity f of the i-th three-dimensional Gaussian to the pixel i (p):

[0087]

[0088] Where i represents the i-th three-dimensional Gaussian; α i represents the opacity parameter of the i-th three-dimensional Gaussian; represents the two-dimensional center point coordinates obtained after projection of the i-th three-dimensional Gaussian, that is, the mean coordinates; Σ′ i is the ellipse covariance matrix obtained by projection of the i-th three-dimensional Gaussian; p is the coordinate of the pixel point; exp is the exponential function;

[0089] The final RGB color value of the pixel is obtained using the alpha blending method, and the calculation formula is as follows:

[0090]

[0091] c i = <γ(d),f>

[0092] Where N represents the number of three-dimensional Gaussians that contribute to the color value of the pixel; c i is the color of the i-th three-dimensional Gaussian, which is calculated by the spherical harmonic coefficients stored in the three-dimensional Gaussian and the viewing direction. <> represents dot product; γ represents the spherical harmonic basis function related to the viewing direction; d represents the viewing direction; f is the spherical harmonic coefficient stored in the three-dimensional Gaussian; the color value c of the three-dimensional Gaussian can be obtained by multiplying the spherical harmonic coefficient by the spherical harmonic basis function. i ; Represents cumulative multiplication calculation, j ranges from 1 to i-1; the final result C(p) obtained after α blending is the RGB color value of pixel p.

[0093] Step S6 is as follows:

[0094] S6-1, in the optimization process of three-dimensional Gaussian, when the transparency of Gaussian is too low, it is considered that the Gaussian will not contribute much to the color value of the pixel; set a threshold ∈ α , every 100 iterations, remove the opacity parameter α less than the threshold ∈ α3D Gaussian; when the gradient in the optimization process exceeds the threshold of 0.0002, it is considered that the gradient is abnormal and the reconstruction is insufficient, and the 3D Gaussian needs to be cloned or split; for 3D Gaussians with abnormal gradients and small variance, copy the 3D Gaussian of the same size and place the new 3D Gaussian in the direction of the position gradient; for 3D Gaussians with abnormal gradients and too large variance, split them into two 3D Gaussians and sample them at the corresponding vertices of the SMPL model grid, that is, replace the original point with the midpoint of the two adjacent edges, and construct two new 3D Gaussians with these two points as the center;

[0095] S6-2, the loss function of the training process is as follows:

[0096]

[0097] in, It is the mean error between each pixel of the rendered image and the corresponding pixel of the real image; It is the structural similarity loss between the rendered image and the real image, which measures the similarity between the two images; is the distance from the three-dimensional Gaussian mean to the surface of the SMPL model, where μ i is the coordinate of the center point of the i-th three-dimensional Gaussian; x SMPL are the vertex coordinates on the SMPL model; S is the vertex set of SMPL, is the distance between the i-th Gaussian and the vertex closest to SMPL, which is used to characterize the distance between the three-dimensional Gaussian and the SMPL model; n is the number of three-dimensional Gaussians; because the final 3D Gaussian should not deviate too far from the estimated SMPL surface, the final regularization term is added to constrain this.

[0098] Step S8 is as follows:

[0099] According to the camera position of any new perspective specified by the user input, the three-dimensional Gaussian set trained by S7 is projected onto a two-dimensional plane to form a two-dimensional Gaussian set of a new perspective; the two-dimensional Gaussian set of the new perspective is rasterized to render a virtual human image under the new perspective.

[0100] Accordingly, the present invention also provides a virtual human arbitrary viewing angle rendering system based on three-dimensional Gaussian splashing, such as Figure 2 As shown, including:

[0101] The point cloud data extraction unit 1 is used to input a multi-view human body picture, and use the SMPLify method to fit the corresponding SMPL model to the human body picture at each view; the SMPL model at each view is sampled to obtain virtual human point cloud data;

[0102] A three-dimensional Gaussian creation unit 2 is used to construct and initialize a learnable three-dimensional Gaussian for each point in the virtual human point cloud data to form a three-dimensional Gaussian set;

[0103] The three-dimensional Gaussian training unit 3 is used for the following steps: step A, according to the position of the camera of the multi-view human body picture, projecting the three-dimensional Gaussian set onto a two-dimensional plane to form a two-dimensional Gaussian set; step B, rasterizing the two-dimensional Gaussian set to render a virtual human image; step C, constructing a loss function using the similarity between the rendered virtual human image and the real human body picture, performing adaptive density control on the three-dimensional Gaussian set, and dynamically adjusting the number and distribution of the three-dimensional Gaussian set; repeating the operations of the above steps A, B, and C to finally form a trained three-dimensional Gaussian set;

[0104] The application unit 4 is used for inputting any new perspective specified by the user, and rendering a virtual human image under the new perspective using the trained three-dimensional Gaussian set.

[0105] Therefore, the present invention does not use more complex point cloud estimation technologies such as SfM, but fits the SMPL model to each human body image and samples to obtain a three-dimensional point cloud of the human body, which is low-cost and high-efficiency. In the invention, the three-dimensional Gaussian is cloned and split based on the network topology of the SMPL model to ensure that the number and distribution of Gaussians fit the human body as much as possible, and a new perspective image that is closer to the training target is obtained in the projection and rendering stages. The method based on the SMPL model can constrain the split Gaussian to be close to the estimated human body surface. In the invention, the surface distance from the Gaussian mean point to the SMPL model is used as a regular term in the optimization process to ensure that the Gaussian finally learned does not deviate too far from the estimated SMPL model surface.

[0106] The above is a detailed introduction to a method and system for rendering a virtual human from any perspective based on three-dimensional Gaussian splashing provided by an embodiment of the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A virtual human arbitrary viewing angle rendering method based on three-dimensional Gaussian splashing, characterized in that: The method comprises: Input multi-view human body pictures, and use the SMPLify method to fit the corresponding SMPL model for the human body pictures at each view. Sampling the SMPL model at each viewing angle to obtain virtual human point cloud data; For each point in the virtual human point cloud data, construct and initialize a learnable three-dimensional Gaussian to form a three-dimensional Gaussian set; Step A: projecting the three-dimensional Gaussian set onto a two-dimensional plane according to the position of the camera of the multi-view human body image to form a two-dimensional Gaussian set; Step B: rasterizing the two-dimensional Gaussian set to render a virtual human image; Step C, constructing a loss function using the similarity between the rendered virtual human image and the real human body image, performing adaptive density control on the three-dimensional Gaussian set, and dynamically adjusting the number and distribution of the three-dimensional Gaussian set; Repeat the operations of step A, step B, and step C above to finally form a trained three-dimensional Gaussian set; The user inputs any new viewing angle specified, and the trained three-dimensional Gaussian set is used to render a virtual human image under the new viewing angle.

2. The method for rendering a virtual human at any viewing angle based on three-dimensional Gaussian splashing as claimed in claim 1, characterized in that: The SMPL model at each viewing angle is sampled to obtain virtual human point cloud data, specifically: Add the values ​​corresponding to each vertex of the SMPL model at each viewpoint and then calculate the average to obtain an averaged SMPL human body model; The averaged SMPL human body model is subjected to random sampling to obtain m sampling vertices as virtual human point cloud data.

3. The method for rendering a virtual human at any viewing angle based on three-dimensional Gaussian splashing as claimed in claim 1, characterized in that: For each point in the virtual human point cloud data, a learnable three-dimensional Gaussian is constructed and initialized to form a three-dimensional Gaussian set, specifically: The mathematical definition of a three-dimensional Gaussian is as follows: Among them, x is the coordinate of any point in three-dimensional space; μ is the mean of the three-dimensional Gaussian and the center of the three-dimensional Gaussian, which is represented by the three-dimensional coordinates of the corresponding point cloud point; Σ is the three-dimensional covariance matrix, which is used to control the size, shape and direction of the three-dimensional Gaussian. The covariance matrix Σ has physical meaning and needs to satisfy the semi-positive definite condition. At the same time, the three-dimensional Gaussian is an ellipsoid in shape. Therefore, the covariance matrix describes the change process from a standard sphere to an ellipsoid. The standard sphere is first scaled by the scaling vector S, and then rotated by the rotation matrix R, so the calculation formula of Σ is as follows: S = RSS T R T In addition to the mean and covariance matrix, each 3D Gaussian also stores the opacity parameter α and the spherical harmonic coefficients used to control the color; After the three-dimensional Gaussian is constructed for each point in the virtual human point cloud data, a three-dimensional Gaussian set is formed.

4. The method for rendering a virtual human at any viewing angle based on three-dimensional Gaussian splashing as claimed in claim 3, characterized in that: According to the position of the camera of the multi-view human body picture, the three-dimensional Gaussian set is projected onto a two-dimensional plane to form a two-dimensional Gaussian set, specifically: A three-dimensional Gaussian projection onto a two-dimensional screen will result in an ellipse; for a given viewing angle, the covariance matrix Σ′ of the ellipse obtained after projection is calculated as follows: Σ′=JWΣW T J T Where W is the view transformation matrix of the camera from the world coordinate system to the camera coordinate system, and J is the Jacobian matrix of the perspective projection transformation; After each three-dimensional Gaussian in the three-dimensional Gaussian set is projected onto a two-dimensional plane, a two-dimensional Gaussian set is formed.

5. The method for rendering a virtual human at any viewing angle based on three-dimensional Gaussian splashing as claimed in claim 4, characterized in that: The two-dimensional Gaussian set is rasterized to render a virtual human image, specifically: The image is divided into multiple blocks of 16 pixels * 16 pixels; for the three-dimensional Gaussian set, only the three-dimensional Gaussian that intersects with the camera's visual cone and has a confidence level greater than 99% is retained; for each pixel in the block, according to the major axis and minor axis of the two-dimensional Gaussian set projected onto the plane, find out which three-dimensional Gaussians intersect with the pixel, that is, which three-dimensional Gaussians will contribute to the RGB color value of the pixel; according to the opacity parameter α of the three-dimensional Gaussian and the distance between the pixel point coordinates and the center of the two-dimensional Gaussian, calculate the opacity f of the i-th three-dimensional Gaussian to the pixel i (p): Where i represents the i-th three-dimensional Gaussian; α i represents the opacity parameter of the i-th three-dimensional Gaussian; represents the two-dimensional center point coordinates obtained after projection of the i-th three-dimensional Gaussian, that is, the mean coordinates; Σ′ i is the ellipse covariance matrix obtained by projection of the i-th three-dimensional Gaussian; p is the coordinate of the pixel point; exp is the exponential function; The final RGB color value of the pixel is obtained using the alpha blending method, and the calculation formula is as follows: c i =<γ(d),f> Where N represents the number of three-dimensional Gaussians that contribute to the color value of the pixel; c i is the color of the i-th three-dimensional Gaussian, which is calculated by the spherical harmonic coefficients stored in the three-dimensional Gaussian and the viewing direction. <> represents dot product; γ represents the spherical harmonic basis function related to the viewing direction; d represents the viewing direction; f is the spherical harmonic coefficient stored in the three-dimensional Gaussian; the color value c of the three-dimensional Gaussian is obtained by multiplying the spherical harmonic coefficient by the spherical harmonic basis function. i ; Represents cumulative multiplication calculation, j ranges from 1 to i-1; the final result C(p) obtained after α blending is the RGB color value of pixel p.

6. The method for rendering a virtual human at any viewing angle based on three-dimensional Gaussian splashing as claimed in claim 5, characterized in that: The loss function is constructed by using the similarity between the rendered virtual human image and the real human body image, and the three-dimensional Gaussian set is adaptively controlled in density to dynamically adjust the number and distribution of the three-dimensional Gaussian set, specifically: Set a threshold ∈ α , every 100 iterations, remove the opacity parameter α less than the threshold ∈ α 3D Gaussian; When the gradient in the optimization process exceeds the threshold of 0.0002, it is considered that the gradient is abnormal and the reconstruction is insufficient, and the three-dimensional Gaussian needs to be cloned or split; for the three-dimensional Gaussian with abnormal gradient and small variance, copy the three-dimensional Gaussian of the same size and place the new three-dimensional Gaussian in the direction of the position gradient; for the three-dimensional Gaussian with abnormal gradient and too large variance, split it into two three-dimensional Gaussians and sample the corresponding vertices of the SMPL model grid, that is, replace the original point with the midpoint of the two adjacent edges, and construct two new three-dimensional Gaussians with these two points as the center; The loss function of the training process is as follows: in, It is the mean error between each pixel of the rendered image and the corresponding pixel of the real image; It is the structural similarity loss between the rendered image and the real image, which measures the similarity between the two images; is the distance from the three-dimensional Gaussian mean to the surface of the SMPL model, where μ i is the coordinate of the center point of the i-th three-dimensional Gaussian; x SMPL are the vertex coordinates on the SMPL model; S is the vertex set of SMPL, is the distance between the i-th Gaussian and the vertex closest to SMPL, which is used to characterize the distance between the three-dimensional Gaussian and the SMPL model; n is the number of three-dimensional Gaussians.

7. The method for rendering a virtual human at any viewing angle based on three-dimensional Gaussian splashing according to claim 1, characterized in that: The user inputs any new perspective and uses the trained three-dimensional Gaussian set to render a virtual human image under the new perspective, specifically: According to the camera position of any new perspective specified by the user input, the trained three-dimensional Gaussian set is projected onto a two-dimensional plane to form a new perspective two-dimensional Gaussian set; the new perspective two-dimensional Gaussian set is rasterized to render a virtual human image under the new perspective.

8. A virtual human arbitrary viewing angle rendering system based on three-dimensional Gaussian splashing, characterized in that: The system comprises: The point cloud data extraction unit is used to input a multi-view human body picture, and use the SMPLify method to fit the corresponding SMPL model to the human body picture at each view; the SMPL model at each view is sampled to obtain virtual human point cloud data; A three-dimensional Gaussian creation unit, used to construct and initialize a learnable three-dimensional Gaussian for each point in the virtual human point cloud data to form a three-dimensional Gaussian set; The three-dimensional Gaussian training unit is used for the following steps: step A, according to the position of the camera of the multi-view human body picture, projecting the three-dimensional Gaussian set onto a two-dimensional plane to form a two-dimensional Gaussian set; step B, rasterizing the two-dimensional Gaussian set to render a virtual human image; step C, constructing a loss function using the similarity between the rendered virtual human image and the real human body picture, performing adaptive density control on the three-dimensional Gaussian set, and dynamically adjusting the number and distribution of the three-dimensional Gaussian set; repeating the operations of the above steps A, B, and C to finally form a trained three-dimensional Gaussian set; The application unit is used for inputting any new perspective specified by the user, and rendering a virtual human image under the new perspective using the trained three-dimensional Gaussian set.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Interactive surgical case guidance method and system based on manual annotation guidance

    CN119090928A

  • Close-shot three-dimensional reconstruction method, device and equipment based on 3DGS

    CN119445003A

  • Dynamic water body generation method and system based on 3D Gaussian splash

    CN119478255A

  • Method and device for enhancing oblique photography scene rendering based on three-dimensional Gaussian sputtering

    CN119762646A

  • Gaussian image rendering method and device

    CN119850805A