Three-dimensional scene representation method and device, storage medium and program product
By generating 3D standard point clouds and using the reconstruction network to optimize Gaussian point clouds, the problem of too large a number of Gaussian point clouds in 3D scene representation is solved, achieving more efficient storage and rendering effects.
Patent Information
- Application Number
- CN202410786045.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-18
AI Technical Summary
In existing three-dimensional scene representation methods, the large number of Gaussian point clouds leads to excessive storage space requirements, which brings great challenges to storage and transmission.
By generating a three-dimensional standard point cloud, initializing the three-dimensional Gaussian point cloud, and projecting it onto a two-dimensional plane with different camera poses for rasterization, the reconstruction network is used to optimize parameters and point clouds, reducing the number of Gaussian point clouds and reducing storage space requirements. .
On the premise of ensuring accuracy, the number of Gaussian point clouds is significantly reduced, the storage space requirements for three-dimensional scene representation are reduced, and the rendering quality is improved.
Smart Images

Figure CN118799524A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of machine vision technology, and more specifically, relates to a three-dimensional scene representation method, device, storage medium and program product. Background Art
[0002] The 3D scene representation method can obtain the effective information of the entire 3D scene, store the 3D spatial information in a compact data format, and facilitate the transmission and presentation of the entire 3D scene. It has a wide range of applications in virtual reality (VR), augmented reality (AR), autonomous driving, etc. Therefore, it is of great significance to study a 3D scene representation method.
[0003] Three-dimensional scenes can be represented in many forms, such as point clouds, meshes, multi-views, neural radiation fields, etc. Three-dimensional Gaussian point clouds are a new way to represent three-dimensional scenes. They are composed of a large number of basic Gaussian point clouds. Each Gaussian point cloud contains attributes such as position coordinates, opacity, size, rotation, and color. They can effectively express three-dimensional scenes and achieve high-quality real-time rendering. However, the number of Gaussian point clouds is huge. Usually, hundreds of thousands or even millions of Gaussian point clouds are needed to express three-dimensional scenes. The storage space required is large, which brings great challenges to storage and transmission. Summary of the invention
[0004] In response to the above defects or improvement needs of the prior art, the present invention provides a three-dimensional scene representation method, device, storage medium and program product, the purpose of which is to provide a more efficient three-dimensional scene expression to reduce the number of Gaussian point clouds, and further reduce the storage space required for three-dimensional scene representation while ensuring accuracy.
[0005] In order to achieve the above object, in a first aspect, the present invention provides a three-dimensional scene representation method, comprising:
[0006] Based on the two-dimensional images of the three-dimensional scene at different camera positions, a three-dimensional standard point cloud of the three-dimensional scene is generated; wherein the size of the two-dimensional image is W×H; W and H are both positive integers;
[0007] Initialize the 3D Gaussian point cloud of the 3D scene according to the 3D standard point cloud;
[0008] The three-dimensional Gaussian point cloud is projected onto the two-dimensional plane corresponding to each camera pose to obtain the two-dimensional Gaussian point cloud corresponding to different camera poses; the two-dimensional Gaussian point cloud corresponding to each camera pose is rasterized to obtain the corresponding feature map of size αW×βH, which is then input into the reconstruction network for reconstruction to obtain a reconstructed image of size W×H; the parameters of the reconstruction network and the three-dimensional Gaussian point cloud are optimized by minimizing the difference loss between the reconstructed image and the two-dimensional image under each camera pose; 0<α<1, 0<β<1;
[0009] The optimized three-dimensional Gaussian point cloud is used as the representation of the three-dimensional scene.
[0010] Further preferably, the above three-dimensional scene representation method further includes:
[0011] Get a set of camera poses specified by the user, project the optimized three-dimensional Gaussian point clouds onto the two-dimensional planes corresponding to different camera poses in the set of camera poses, and obtain the two-dimensional Gaussian point clouds corresponding to different camera poses; rasterize the two-dimensional Gaussian point clouds corresponding to each camera pose, obtain the corresponding feature map of size αW×βH, and input it into the optimized reconstruction network for reconstruction to obtain the corresponding reconstructed image;
[0012] The reconstructed image group corresponding to the group of camera poses is used as a visual representation of the three-dimensional scene.
[0013] Further preferably, the reconstruction network comprises: a cascaded first convolutional layer, a first activation layer, a GS-NeRV module, a second convolutional layer, and a second activation layer;
[0014] Among them, the GS-NeRV module includes a GS-NeRV block, or multiple cascaded GS-NeRV blocks; the GS-NeRV block includes: a cascaded group convolution layer, an attention mechanism module, an upsampling layer and a normal convolution layer.
[0015] Further preferably, the attention mechanism module is a convolutional block attention mechanism module; and the upsampling layer is a PixelShuffle model.
[0016] Further preferably, the above reconstruction network also includes: a regularization layer located between the first convolutional layer and the first activation layer.
[0017] Further preferably, the parameters of the reconstruction network and the three-dimensional Gaussian point cloud are optimized, including:
[0018] The difference loss is back-propagated to the reconstruction network to optimize the parameters of the reconstruction network, and then back-propagated to the 3D Gaussian point cloud through the rasterization and projection process to optimize the properties and distribution of the 3D Gaussian point cloud;
[0019] Through the optimization of preset rounds, the difference loss is minimized.
[0020] Further preferably, based on the two-dimensional images of the three-dimensional scene at different camera positions, the SFM algorithm is used to generate a three-dimensional standard point cloud of the three-dimensional scene.
[0021] In a second aspect, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the three-dimensional scene representation method provided in the first aspect of the present invention is executed.
[0022] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the three-dimensional scene representation method provided in the first aspect of the present invention is executed.
[0023] In a fourth aspect, the present invention further provides a computer program product, comprising a computer program or instructions, wherein when the computer program or instructions are executed by a processor, the steps of the three-dimensional scene representation method provided in the first aspect are implemented.
[0024] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
[0025] 1. The present invention provides a three-dimensional scene representation method. Considering that there is a lot of redundancy in the distribution of Gaussian point clouds in the existing methods of representing three-dimensional scenes based on Gaussian point clouds generated by 3D Gaussian sputtering, a reconstruction network is used to restore photo-level image rendering, so that the rasterization process only needs to output feature maps with a smaller resolution, thereby limiting the densification process of Gaussian point clouds during model optimization, greatly reducing the number of Gaussian point clouds, and further reducing the storage space required for three-dimensional scene representation while ensuring accuracy.
[0026] 2. Furthermore, the three-dimensional scene representation method provided by the present invention can also project the optimized three-dimensional Gaussian point cloud onto two-dimensional planes corresponding to different camera poses in a set of camera poses specified by the user after the optimization of the three-dimensional Gaussian point cloud and the reconstruction network is completed. After rasterization, the obtained feature map is input into the optimized reconstruction network for reconstruction to obtain the corresponding reconstructed image, and then the visualization representation of the three-dimensional scene under the camera pose specified by the user is obtained, thereby achieving a more intuitive and effective three-dimensional scene representation.
[0027] 3. Furthermore, in the three-dimensional scene representation method provided by the present invention, the reconstruction network is constructed based on the GS-NeRV block, wherein the GS-NeRV block includes: a cascaded grouped convolution layer, an attention mechanism module, an upsampling layer and an ordinary convolution layer; wherein the grouped convolution layer, the attention mechanism module and the ordinary convolution layer can well restore the image color information from the image features, and the upsampling layer can restore the low-resolution image to a high-resolution image; based on this, the reconstruction network can restore the image features to the image color information while improving the image resolution, thereby being able to well restore the texture information in the three-dimensional scene and having a higher rendering quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A flow chart of a three-dimensional scene representation method provided by the present invention;
[0029] Figure 2 A schematic diagram of the structure of a reconstruction network provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0031] In order to achieve the above object, in a first aspect, the present invention provides a three-dimensional scene representation method, such as Figure 1 As shown, including:
[0032] S1. Generate a 3D standard point cloud of the 3D scene based on the 2D images of the 3D scene at different camera positions; wherein the size of the 2D image is W×H; W and H are both positive integers, and in an optional implementation, W is 1920 and H is 1080. Specifically, the attributes of the 3D standard point cloud mainly include: position coordinates and color.
[0033] It should be noted that the 3D standard point cloud of the 3D scene may be generated by using the SFM algorithm, Colmap algorithm, HSfM algorithm, PSfM algorithm, etc. Preferably, in an optional implementation, the 3D standard point cloud of the 3D scene is generated by using the SFM algorithm.
[0034] S2, initializing the 3D Gaussian point cloud of the 3D scene according to the 3D standard point cloud;
[0035] The three-dimensional Gaussian point cloud is composed of a large number of basic Gaussian point clouds, each of which contains attributes such as position coordinates M, opacity A, size S, rotation R, color F, etc. The Gaussian point cloud is represented in three-dimensional space by the three-dimensional covariance matrix ∑ and the center point μ:
[0036]
[0037] Among them, x is the coordinate of the point in three-dimensional space.
[0038] S3. Project the three-dimensional Gaussian point cloud onto the two-dimensional plane corresponding to each camera pose to obtain the two-dimensional Gaussian point cloud corresponding to different camera poses; rasterize the two-dimensional Gaussian point cloud corresponding to each camera pose to obtain the corresponding feature map of size αW×βH, and input it into the reconstruction network for reconstruction to obtain a reconstructed image of size W×H; optimize the parameters of the reconstruction network and the three-dimensional Gaussian point cloud by minimizing the difference loss between the reconstructed image and the two-dimensional image at each camera pose; 0<α<1, 0<β<1; in an optional implementation, α is taken as 0.5 and β is taken as 0.5.
[0039] Specifically, for a camera pose V, the transformation matrix from world coordinates to camera coordinates is W. The three-dimensional Gaussian point cloud is projected onto the two-dimensional plane corresponding to the camera pose V, and the coordinates of the projected camera coordinates are calculated. And the covariance matrix for:
[0040]
[0041] Among them, J is the Jacobian matrix of the projective transformation affine approximation, which is used to convert a three-dimensional vector into a two-dimensional vector. In order to keep the covariance matrix semi-positive definite during the optimization process, the covariance matrix ∑ is decomposed into a scaling matrix S (i.e., the size information of the Gaussian point cloud) and a rotation matrix R (i.e., the rotation information of the Gaussian point cloud), specifically: ∑ = RSS T R T .
[0042] Rasterize the two-dimensional Gaussian point cloud to obtain a feature map of size αW×βH
[0043] Different pixels will be divided during the rasterization process. Each pixel will correspond to a two-dimensional Gaussian point cloud subset in the pixel area. The two-dimensional Gaussian point cloud subsets corresponding to different pixels may have intersections. The feature value f of a single pixel in the feature map w,h , (1≤w≤αW,1≤h≤βH) can be calculated by the AlphaBlending algorithm, specifically:
[0044]
[0045] Among them, α i =A i G(x);
[0046] N w,h is the 2D Gaussian point cloud subset corresponding to the pixel;; F i N w,h The eigenvalue of the i-th two-dimensional Gaussian point cloud in; αi N w,h The opacity of the i-th two-dimensional Gaussian point cloud in; x is the coordinate of the three-dimensional space point; M i N w,h The coordinates of the center point of the i-th two-dimensional Gaussian point cloud in .
[0047] It should be noted that the reconstruction network may be a cascaded network structure including upsampling layers (such as interpolation, deconvolution, sub-pixel convolution, up-pooling, etc.). Preferably, in an optional implementation, the reconstruction network includes: a cascaded first convolutional layer, a first activation layer, a GS-NeRV module, a second convolutional layer, and a second activation layer;
[0048] Among them, the GS-NeRV module includes a GS-NeRV block, or multiple cascaded GS-NeRV blocks; the GS-NeRV block includes: a cascaded group convolution layer, an attention mechanism module, an upsampling layer and a normal convolution layer.
[0049] Preferably, in an optional implementation, the attention mechanism module is a convolutional block attention mechanism module CBAM; and the upsampling layer is a Pixel Shuffle model.
[0050] In an optional implementation, the first convolution layer is a convolution layer with a convolution kernel size of 1×1 as that of the second convolution layer; the first activation layer is a Gelu activation layer; and the second convolution layer is a Sigmoid activation layer.
[0051] Preferably, the reconstruction network further includes: a regularization layer located between the first convolutional layer and the first activation layer. The regularization layer can standardize the input data so that the reconstruction network can be trained faster and more efficiently.
[0052] Figure 2 A schematic diagram of the structure of a reconstruction network under an optional implementation mode.
[0053] In an optional implementation, the parameters of the reconstruction network and the three-dimensional Gaussian point cloud are optimized, including:
[0054] The difference loss is back-propagated to the reconstruction network to optimize the parameters of the reconstruction network, and then back-propagated to the 3D Gaussian point cloud through the rasterization and projection process to optimize the properties and distribution of the 3D Gaussian point cloud;
[0055] Through the optimization of preset rounds, the difference loss is minimized.
[0056] Specifically, the difference loss between the reconstructed image and the two-dimensional image is calculated, and the gradient is back-propagated to update the gradient. The parameters of the reconstruction network and the properties of the three-dimensional Gaussian point cloud are optimized using the gradient descent method, and the distribution of the three-dimensional Gaussian point cloud is adaptively controlled in the optimization process. Through the preset rounds of optimization, the three-dimensional Gaussian point cloud is adaptively controlled in density, making the distribution of the Gaussian point cloud more consistent with the three-dimensional scene structure.
[0057] It should be noted that the difference loss between the reconstructed image and the two-dimensional image can be calculated using an L1 loss function, an L2 loss function, an SSIM loss function, a perceptual loss function, or the like.
[0058] S3. Use the optimized three-dimensional Gaussian point cloud as a representation of the three-dimensional scene.
[0059] In summary, the present invention takes into account the large amount of redundancy in the distribution of Gaussian point clouds in 3D Gaussian sputtering, and uses a reconstruction network to restore photo-level image rendering, so that the rasterization process of 3D Gaussian sputtering only needs to output a feature map with a smaller resolution, thereby limiting the densification process of the Gaussian point cloud during the model optimization process, greatly reducing the number of Gaussian point clouds, and being able to further reduce the storage space required for three-dimensional scene representation while ensuring accuracy.
[0060] In an optional implementation manner, the above three-dimensional scene representation method further includes:
[0061] Get a set of camera poses specified by the user, project the optimized three-dimensional Gaussian point clouds onto the two-dimensional planes corresponding to different camera poses in the set of camera poses, and obtain the two-dimensional Gaussian point clouds corresponding to different camera poses; rasterize the two-dimensional Gaussian point clouds corresponding to each camera pose, obtain the corresponding feature map of size αW×βH, and input it into the optimized reconstruction network for reconstruction to obtain the corresponding reconstructed image;
[0062] The reconstructed image group corresponding to the group of camera poses is used as a visual representation of the three-dimensional scene.
[0063] Through the above process, a more intuitive and effective three-dimensional scene representation can be obtained under different camera poses.
[0064] In a second aspect, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the three-dimensional scene representation method provided in the first aspect of the present invention is executed.
[0065] The related technical solution is the same as the three-dimensional scene representation method provided in the first aspect of the present invention, and will not be described in detail here.
[0066] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the three-dimensional scene representation method provided in the first aspect of the present invention is executed.
[0067] The related technical solution is the same as the three-dimensional scene representation method provided in the first aspect of the present invention, and will not be described in detail here.
[0068] In a fourth aspect, the present invention further provides a computer program product, comprising a computer program or instructions, wherein when the computer program or instructions are executed by a processor, the steps of the three-dimensional scene representation method provided in the first aspect are implemented.
[0069] The related technical solution is the same as the three-dimensional scene representation method provided in the first aspect of the present invention, and will not be described in detail here.
[0070] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A three-dimensional scene representation method, characterized in that: include: Based on the two-dimensional images of the three-dimensional scene at different camera positions, a three-dimensional standard point cloud of the three-dimensional scene is generated; the size of the two-dimensional image is W×H; W and H are both positive integers; Initialize a three-dimensional Gaussian point cloud of a three-dimensional scene according to the three-dimensional standard point cloud; The three-dimensional Gaussian point cloud is projected onto the two-dimensional plane corresponding to each camera pose to obtain the two-dimensional Gaussian point cloud corresponding to different camera poses; the two-dimensional Gaussian point cloud corresponding to each camera pose is rasterized to obtain the corresponding feature map of size αW×βH, which is then input into the reconstruction network for reconstruction to obtain a reconstructed image of size W×H; the parameters of the reconstruction network and the three-dimensional Gaussian point cloud are optimized by minimizing the difference loss between the reconstructed image and the two-dimensional image under each camera pose; 0<α<1, 0<β<1; The optimized three-dimensional Gaussian point cloud is used as the representation of the three-dimensional scene.
2. The three-dimensional scene representation method according to claim 1, characterized in that: Also includes: Get a set of camera poses specified by the user, project the optimized three-dimensional Gaussian point clouds onto the two-dimensional planes corresponding to different camera poses in the set of camera poses, and obtain the two-dimensional Gaussian point clouds corresponding to different camera poses; rasterize the two-dimensional Gaussian point clouds corresponding to each camera pose, obtain the corresponding feature map of size αW×βH, and input it into the optimized reconstruction network for reconstruction to obtain the corresponding reconstructed image; The reconstructed image group corresponding to the group of camera poses is used as a visual representation of the three-dimensional scene.
3. The three-dimensional scene representation method according to claim 1 or 2, characterized in that: The reconstruction network comprises: a cascaded first convolutional layer, a first activation layer, a GS-NeRV module, a second convolutional layer and a second activation layer; The GS-NeRV module includes a GS-NeRV block or multiple cascaded GS-NeRV blocks; the GS-NeRV block includes: a cascaded group convolution layer, an attention mechanism module, an upsampling layer and a normal convolution layer.
4. The three-dimensional scene representation method according to claim 3, characterized in that: The attention mechanism module is a convolutional block attention mechanism module; the upsampling layer is a Pixel Shuffle model.
5. The three-dimensional scene representation method according to claim 3, characterized in that: The reconstruction network also includes: a regularization layer located between the first convolution layer and the first activation layer.
6. The three-dimensional scene representation method according to claim 1 or 2, characterized in that: The optimization of the parameters of the reconstruction network and the three-dimensional Gaussian point cloud includes: Back-propagating the difference loss to a reconstruction network to optimize the parameters of the reconstruction network, and then back-propagating to a three-dimensional Gaussian point cloud through a rasterization and projection process to optimize the properties and distribution of the three-dimensional Gaussian point cloud; The difference loss is minimized by optimizing the preset rounds.
7. The three-dimensional scene representation method according to claim 1 or 2, characterized in that: Based on the two-dimensional images of the three-dimensional scene under different camera poses, the SFM algorithm is used to generate the three-dimensional standard point cloud of the three-dimensional scene.
8. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and the processor executes the three-dimensional scene representation method according to any one of claims 1 to 7 when executing the computer program.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the three-dimensional scene representation method described in any one of claims 1-7 is executed.
10. A computer program product, characterized in that The method comprises a computer program or an instruction, wherein when the computer program or the instruction is executed by a processor, the steps of the three-dimensional scene representation method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Gaussian scattering radiation field modeling method of dynamic threshold
CN117649479A
Neural representation modeling method based on Gaussian splash sample
CN117934688A
Three-dimensional face generating and driving method based on Gaussian splashing method
CN118071898A
Indoor complex scene high-fidelity real-time rendering method based on three-dimensional Gaussian representation
CN118096988A
3D modeling reconstruction system, method and device based on point cloud information and Gaussian cloud cluster
CN118196306A
Cited By
Generalized efficient Gaussian representation learning method and device, equipment and storage medium
CN119741423A
Space target point cloud three-dimensional reconstruction and rendering method
CN119919587A
High-quality large-scale scene reconstruction method based on 3D Gaussian sputtering
CN119942014A
Three-dimensional reconstruction method and device, electronic equipment, storage medium and program product
CN121259192A
