Improved SS-NeRF three-dimensional reconstruction method based on NeRF

By introducing IPE position coding, SPHEC spherical harmonic dual coding and S3IM Loss module into the NeRF model, the expression ability of illumination and reflection is improved, solving the boundary blur problem of the NeRF model in capturing materials and details, and achieving a more realistic 3D reconstruction effect.

CN118864718APending Publication Date: 2024-10-29CHONGQING UNIV OF TECH

Patent Information

Application Number
CN202410895225.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The NeRF model has problems with blurred boundaries and difficulty in accurately expressing the object material and expressing translucent and smooth objects as well as lighting and reflection details, resulting in the generated photo-realistic perspective being unrealistic.

Method used

Introducing the IPE position encoding module, SPHEC spherical harmonic dual encoding module and S3IM Loss module to improve the NeRF algorithm and enhance the model's ability to capture light sampling, viewing angle dependence and non-local information, simulate illumination and reflection effects through spherical harmonic function encoding, and optimize losses function to improve robustness.

Benefits of technology

The anti-aliasing and perspective detail expression capabilities of 3D reconstruction are significantly improved, making the generated scenes closer to reality and able to more accurately capture ambient light and reflection information. The generated new perspective photos are indistinguishable from real photos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004928739310000031
    Figure BDA0004928739310000031
  • Figure BDA0004928739310000033
    Figure BDA0004928739310000033
  • Figure BDA0004928739310000034
    Figure BDA0004928739310000034
Patent Text Reader

Abstract

The invention discloses an improved SS-NeRF three-dimensional reconstruction method based on NeRF, and belongs to the field of three-dimensional reconstruction, and the method comprises the steps: constructing a newly researched and developed SS-NeRF three-dimensional reconstruction method based on NeRF; the method comprises the following steps: carrying out model training by using an SS-NeRF three-dimensional reconstruction algorithm, storing model parameters obtained by training a reconstructed object, carrying out new view angle reconstruction on a scene by using a trained object reconstruction model, obtaining an evaluation index of a verification set after a model verification process, and finally carrying out result comparison and reconstruction effect display. According to the SS-NeRF provided by the invention, the NeRF is innovated and improved by using an IPE position coding module, an SPHEC spherical harmonic function dual coding module and an S3IM loss function module; the SS-NeRF performs 3D reconstruction on an object in a multi-angle photo by inputting the multi-angle photo, and captures ambient light and reflected light characteristics in a scene while restoring shape details of the object, so that the reconstructed object is closer to a real world condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional reconstruction, and in particular to a SS-NeRF three-dimensional reconstruction method based on NeRF improvement. Background Art

[0002] With the improvement of digital technology and computing power, 3D reconstruction technology has shown broad application prospects in the fields of virtual reality, medical image processing, cultural heritage protection and industrial manufacturing. The NeRF-based 3D reconstruction algorithm can generate new photo-level perspectives, making the generated scene closer to the actual situation of the object. It implicitly expresses the 3D scene through a continuous function. Unlike the traditional display expression method, the NeRF method can better optimize the scene due to its full-link differentiable characteristics, thereby using camera light in the scene to generate new photo-level perspectives. It uses a set of 3D points and 5D coordinates (3D position and 2D viewing direction) as input, and finally generates the final color value of the point through radiation field voxel rendering. NeRF can achieve realistic representation of complex scenes through simple input and output.

[0003] However, due to the changes in the shooting angle of the input data and the difficulty of capturing the material of the object, the photo-level perspective generated by the NeRF model often has blurred boundaries and difficulty in expressing translucent objects and smooth objects. In view of these problems of NeRF, we proposed a reconstruction algorithm SS-NeRF that is closer to the real scene. This algorithm is an innovative improvement on the NeRF algorithm. It uses the IPE position encoding module, adds the SPHEC spherical harmonic function dual encoding module, and adds the S3IM Loss module. In order to verify the effectiveness of the algorithm we proposed, we conducted experiments with different module settings on the Blender dataset to verify the improvement of our model compared with NeRF, and compared the reconstruction effects. The results show that the SS-NeRF 3D reconstruction method based on NeRF that we proposed can more accurately express the situation of the real scene, and the details of lighting and reflection can also be closer to the expression in the real world. Even if the real photos and the reconstructed perspective photos are put together, it is difficult for the human eye to tell the difference. Summary of the invention

[0004] In order to solve the problem of detail restoration in modeling of single objects in 3D reconstruction algorithms, for example, the expression of lighting and reflection is difficult to be close to the real scene expression, the present invention proposes a SS-NeRF 3D reconstruction method based on NeRF improvement, and the objects generated by its modeling can be closer to the real world.

[0005] Specifically, a NeRF-improved SS-NeRF 3D reconstruction method is proposed for this application, comprising the following steps:

[0006] S1. Build a newly developed SS-NeRF 3D reconstruction method based on NeRF improvement;

[0007] S2. Use the SS-NeRF 3D reconstruction algorithm to train the model and save the model parameters obtained after training. Use the trained object reconstruction model to reconstruct the scene from a new perspective. After the model verification process, the evaluation index of the verification set can be obtained. Finally, the results are compared and the reconstruction effect is displayed.

[0008] Furthermore, step S1 will specifically include the SS-NeRF structure design, namely the IPE position encoding module to enhance the model's anti-aliasing ability during light sampling, and the SPHEC spherical harmonic function dual encoding module to ensure that the model fully extracts and reshapes ambient light and reflected light during training and reconstruction; adding the S3IM loss function to constrain optimization of NeRF rendering, specifically:

[0009] S11. Improve the position coding in NeRF and use the IPE module to replace the position coding of NeRF. The IPE position coding module is a highly anti-aliasing coding module that can improve the problem that the light sampling frequency cannot keep up with the actual change frequency, and reduce or eliminate the jagged edges or discontinuities caused by image resolution limitations.

[0010] S12, SPHEC spherical harmonic function dual encoding module, in the NeRF reconstruction algorithm, there is no special encoding for direction, so that the model has no perspective dependence in the reconstruction process and ignores the "Fresnel effect" in real scenes. Our method not only increases this perspective dependence, but also uses a more stable spherical harmonic function dual encoding to encode the perspective and light probe, enhancing the model's learning and reconstruction expression of illumination and reflection information at different perspectives.

[0011] S13, S3IM Loss module. In the NeRF reconstruction algorithm, the loss function used is MSE loss, which aims to consider the local color difference of rays, but does not consider the difference of a group of pixels, that is, non-local pixels. This makes the model ignore the overall difference of light when a batch of batches of light is input. Therefore, we use S3IM Loss module to enhance the similarity of the model in capturing non-local information and enhance the robustness of the model.

[0012] Furthermore, in step S11, the IPE module acquires the sampling points by using a projection cone to build a frustum to sample the internal pixel points, and its internal position set x is shown in formula (1):

[0013]

[0014] where 1{·} is an indicator function: F(x,·) = 1 if and only if x lies within the range given by The interior of the defined frustum.

[0015] From formula (1), we can obtain the expected position encoding of the coordinates by integration as shown in formula (2):

[0016]

[0017] The sampling features obtained by the IPE position encoding module have anti-aliasing capabilities. When the sampling frequency period is small relative to the size of the integrated interval, the high-frequency dimension obtained by the IPE position encoding will tend to 0, thereby solving the aliasing problem caused by high-frequency information sampling.

[0018] Furthermore, in step S12, the SPHEC spherical harmonic function dual encoding module adds perspective dependence and learnable light probes to the NeRF 3D reconstruction algorithm, and both are encoded using spherical harmonics. The perspective spherical harmonic function encoding performs spherical encoding on different observation directions to ensure that the model can produce different observation changes when observed from different spherical perspectives; adding light probes uses the "probe technology" in modern game engines to simulate the lighting and reflection effects in the reconstructed scene, and using spherical harmonic function encoding for the light probes can more accurately describe the changes in light in different directions; both use spherical harmonic coding functions to enhance the model's connection between lighting and perspective during training, simulate the "Fresnel effect" in real scenes, make the reconstructed scene closer to the real lighting and reflection conditions, and generate a more realistic perspective.

[0019] Furthermore, in step S13, since the NeRF single-ray MSE loss cannot supervise the structural information of multiple pixels, the S3IM Loss module is added to comprehensively consider the loss of a group of rays. Its random structural similarity can obtain non-local structural similarity information from randomly sampled pixels, making the model more robust to difficult tasks such as sparse input and reconstruction of complex objects. The loss function after integrating S3IM Loss is shown in formula (3):

[0020]

[0021] Further, step S2 is specifically as follows:

[0022] Input multiple photos from multiple angles. Each photo should have its corresponding camera parameter matrix to ensure the mapping from the camera coordinate system to the world coordinate system. Then send the data to the neural network for training. After 30 epochs, the trained object parameter model can be obtained. The model is verified using the verification file to obtain the evaluation index. At the same time, the new perspective image generated after verification can also be obtained.

[0023] The beneficial effects of the present invention are:

[0024] 1. Using NeRF (neural radiant field) as a 3D reconstruction method, complex scenes can be expressed from simple inputs (x, y, z, θ, φ), which has a more realistic reconstruction effect than traditional 3D reconstruction algorithms.

[0025] 2. The SS-NeRF 3D reconstruction method improved based on NeRF, through the IPE position encoding module, SPHEC spherical harmonic function dual encoding module, and S3IM loss function, makes the model more anti-aliasing during the reconstruction process. At the same time, it introduces perspective dependence and the "probe" technology in the game engine, so that the model can more easily capture ambient light and reflected light information, making the modeling closer to the real scene expression, and even in the face of complex objects, it can complete the reconstruction of its various details.

[0026] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:

[0028] Figure 1 SS-NeRF network structure diagram;

[0029] Figure 2 IPE position encoding module diagram;

[0030] Figure 3 SPHEC spherical harmonics dual encoding module diagram;

[0031] Figure 4 Comparison chart of SS-NeRF modeling effects; DETAILED DESCRIPTION

[0032] The following is further explained in detail through specific implementation methods.

[0033] In order to solve the three problems of NeRF 3D reconstruction algorithm, namely, modeling fuzzy, difficulty in capturing illumination and reflection, and insufficient expression of details, which affect the modeling quality, the SS-NeRF algorithm is proposed to improve it, aiming to approximate the restoration and expression of the real scene; its network structure is shown in the figure Figure 1 As shown, the specific scheme of the present invention is as follows:

[0034] The SS-NeRF 3D reconstruction method based on NeRF includes the following steps:

[0035] S1. Construct a newly developed SS-NeRF 3D reconstruction method based on NeRF. The specific steps are:

[0036] S11. By improving the position coding part of NeRF, the IPE position coding is used to replace the NeRF position coding part, so as to reduce the sampling difference when the model encodes the same pixel at different angles and avoid the modeling distortion caused by sampling; the NeRF position coding (as shown in Formula 4) is compared with the IPE position coding (as shown in Formula 5);

[0037] γ(x)=[sin(x),cos(x),...,sin(2 L-1 x),cos(2 L-1 x)] T (4)

[0038]

[0039] It is not difficult to find that IPE position encoding not only takes into account the direction, but also the frustum range. This ensures that during the sampling process of our model, the entire position encoding effect will not be affected by slight differences in angles and surrounding points, greatly improving the anti-aliasing ability of the model during reconstruction. The module flow is shown in the attached figure of the manual. Figure 2 Displayed in.

[0040] In order to verify the improvement of the IPE module on the model effect, we used pictures of different resolutions (Full Res, 1 / 2Res, 1 / 4Res, 1 / 8Res represent full resolution, 1 / 2 resolution, 1 / 4 resolution, 1 / 8 resolution respectively) to perform 3D reconstruction experiments using NeRF and NeRF+IPE modules, as shown in Table 1:

[0041] Table 1 Comparison of reconstruction effects of adding IPE module at different resolutions of Blender dataset

[0042]

[0043] Among them, PSNR is Peak Signal-to-Noise Ratio, which is one of the commonly used indicators in 3D reconstruction. It evaluates the degree of image distortion by comparing the relative error between the original image and the reconstructed image. The larger the PSNR, the better the image modeling effect. SSIM (Structural Similarity Index) is an indicator used to evaluate image quality, which aims to measure the structural similarity between two images. Unlike PSNR (Peak Signal-to-Noise Ratio), SSIM not only considers the errors of image brightness and contrast, but also considers the perceptual loss of brightness, contrast and structure. It is considered to be more in line with the human eye's perception of image quality. The larger its value, the better the modeling effect. It is not difficult to find that after adding the IPE position encoding module, the model can maintain high quality modeling effect under low-resolution images; while the modeling effect of NeRF's original position encoding under low resolution is not satisfactory.

[0044] S12. Add the SPHEC spherical harmonics dual encoding module to improve NeRF, and use spherical harmonics to encode the direction and light probe at the same time, as shown in the figure in the manual Figure 3 As shown in ; where the spherical harmonic function encoding is shown in formula (6):

[0045]

[0046] are the coefficients of spherical harmonics;

[0047] θ is the top-down angle, that is, the angle of the object observed from the positive direction of the Z axis, ranging from (0-π);

[0048] is the yaw angle, that is, the angle around the Z axis observed from the positive direction of the Z axis, ranging from (0-2π);

[0049] j is the order of the spherical harmonic function, and m represents the degree of the function at the jth order;

[0050] in is a spherical harmonic function, which is defined as shown in formula (7):

[0051]

[0052] Among them, It is consistent with the definition of formula (6);

[0053] is the associated Legendre function of degree j and order m;

[0054]

[0055] is the normalization coefficient,

[0056] Where j is the order and m is the degree;

[0057] The view features and light probes obtained by using spherical harmonic function dual encoding can better obtain the information of ambient light and reflected light. In order to verify the effectiveness of our module, we conducted comparative experiments on the blender dataset and showed the experimental data of four different objects (Ship, Lego, Drums, Chair), as shown in Table 2:

[0058] Table 2 Comparison of reconstruction effects of adding IPE and SPHEC modules on the Blender dataset

[0059]

[0060] S13, add S3IM Loss module, NeRF calculates color loss through MSE, as shown in formula (8):

[0061]

[0062] This loss function considers the MSE between the rendered color and the true color of a ray to calculate the model loss. We add the S3IM Loss module to calculate the loss between the entire rays as the model loss, thereby improving the model's ability to focus on non-local losses. The improved loss function is shown in formula (9):

[0063]

[0064] S3IM Loss is shown in formula (10):

[0065]

[0066] Where P(c) is a rendering block randomly formed from a small batch of rays;

[0067] In order to verify the effectiveness of the S3IM Loss module, we added the IPE position encoding module, the SPHEC spherical harmonic function dual encoding module, and the S3IM Loss module to obtain the SS-NeRF 3D reconstruction algorithm based on NeRF. We also conducted a comparative experiment between the SS-NeRF algorithm and the NeRF algorithm on the blender dataset and obtained the experimental data, as shown in Table 3:

[0068] Table 3 Comparison of reconstruction effects between NeRF and SS-NeRF on Blender dataset

[0069]

[0070] S2. Use the SS-NeRF 3D reconstruction algorithm to train the model, and save the model parameters obtained from the training of each type of reconstructed object. Use the trained object reconstruction model to reconstruct the scene from a new perspective. After the model verification process, the evaluation index of the verification set can be obtained. Finally, the results are compared and the reconstruction effect is displayed, as shown in the figure in the specification. Figure 4 shown.

[0071] S21. Input multiple photos from multiple angles. Each photo should have its corresponding camera parameter matrix to ensure the mapping from the camera coordinate system to the world coordinate system. Then send the data into the neural network for training. After 30 epochs, the trained object parameter model can be obtained. The model is verified using the verification file to obtain the evaluation index. At the same time, the new perspective image generated after verification can also be obtained.

[0072] In summary, the present invention proposes an improved SS-NeRF 3D reconstruction method based on NeRF, which can not only express the surface details of the object in detail, but also capture the information between the surrounding ambient light and reflection, so that the modeling effect is closer to the expression of the real world; in addition, the dual encoding of the viewing angle and the light probe through the spherical harmonic function is also a feature of the present invention that is different from other reconstruction algorithms. It avoids the use of complex physical dependencies to increase the number of model parameters and reduce the reasoning speed of the model. At the same time, the combination of the viewing angle dependency and the light probe under the spherical harmonic function encoding can better capture the relationship between illumination and viewing angle, so that the model has the "Fresnel effect" in the real scene, making the generated photos more realistic, and it is not easy for the human eye to distinguish the difference between it and the real image.

Claims

1. SS-NeRF 3D reconstruction method based on NeRF improvement, the method include: S1. Build a newly developed SS-NeRF 3D reconstruction method based on NeRF improvement; S2. Use the SS-NeRF 3D reconstruction algorithm to train the model and save the model parameters obtained after training. Use the trained object reconstruction model to reconstruct the scene from a new perspective. After the model verification process, the evaluation index of the verification set can be obtained. Finally, the results are compared and the reconstruction effect is displayed.

2. The SS-NeRF three-dimensional reconstruction method based on NeRF improvement according to claim 1, Features: The method S1 mainly includes the SS-NeRF structure design, namely the IPE position encoding module, to enhance the anti-aliasing ability of the model during light sampling; the SPHEC spherical harmonic function dual encoding module, to ensure that the model fully extracts and reshapes the ambient light and reflected light during training and reconstruction; and the addition of the S3IM loss function to constrain the rendering of NeRF, specifically: S11. Improve the position coding in NeRF and use the IPE module to replace the position coding of NeRF. The IPE position coding module is a highly anti-aliasing coding module that can improve the problem that the light sampling frequency cannot keep up with the actual change frequency, and reduce or eliminate the jagged edges or discontinuities caused by image resolution limitations. The S12 and SPHEC spherical harmonic function dual encoding modules do not specifically encode the direction in the NeRF reconstruction algorithm, which makes the model have no view dependence in the reconstruction process and ignores the "Fresnel effect" in real scenes. Our method not only increases this view dependence, but also uses a more stable spherical harmonic function dual encoding to encode the view and light probe, enhancing the model's learning and reconstruction expression of illumination and reflection information at different viewpoints. S13, S3IM Loss module. In the NeRF reconstruction algorithm, the loss function used is MSE loss, which aims to consider the local color difference of rays, but does not consider the difference of a group of pixels, that is, non-local pixels. This makes the model ignore the overall difference of light when a batch of batches of light is input. Therefore, we use S3IM Loss module to enhance the similarity of the model in capturing non-local information and enhance the robustness of the model.

3. The SS-NeRF three-dimensional reconstruction method based on NeRF improvement according to claim 2, Features: In step S11, the IPE module acquires the sampling points by using a projection cone to build a frustum to sample the internal pixel points. Its internal position set x is shown in formula (1): where 1{·} is an indicator function: F(x,·) = 1 if and only if x lies within the range given by The interior of the defined frustum. From formula (1), we can obtain the expected position encoding of the coordinates by integration as shown in formula (2): The sampling features obtained by the IPE position encoding module have anti-aliasing capabilities. When the sampling frequency period is small relative to the size of the integrated interval, the high-frequency dimension obtained by the IPE position encoding will tend to 0, thereby solving the aliasing problem caused by high-frequency information sampling.

4. The SS-NeRF 3D reconstruction method based on NeRF improvement according to claim 2, Features: The SPHEC spherical harmonic function dual encoding module in step S12 adds perspective dependence and learnable light probes to the NeRF 3D reconstruction algorithm, and both are encoded using spherical harmonics. The perspective spherical harmonic function encoding performs spherical encoding on different observation directions to ensure that the model can produce different observation changes when observed from different spherical perspectives; adding light probes uses the "probe technology" in modern game engines to simulate the lighting and reflection effects in the reconstructed scene, and using spherical harmonic function encoding for the light probes can more accurately describe the changes in light in different directions; both use spherical harmonic encoding functions to enhance the model's connection between lighting and perspective during training, simulate the "Fresnel effect" in real scenes, make the reconstructed scene closer to the real lighting and reflection conditions, and generate a more realistic perspective.

5. The SS-NeRF 3D reconstruction method based on NeRF improvement according to claim 2, Features: In step S13, the S3IM Loss module is added to comprehensively consider the loss of a group of rays because the NeRF single-ray MSE loss cannot supervise the structural information of multiple pixels. Its random structural similarity can obtain non-local structural similarity information from randomly sampled pixels, making the model more robust to difficult tasks such as sparse input and reconstruction of objects with complex structures. The loss function after integrating S3IM Loss is shown in formula (3): Step S2 is specifically as follows: Input multiple photos from multiple angles. Each photo should have its corresponding camera parameter matrix to ensure the mapping from the camera coordinate system to the world coordinate system. Then send the data to the neural network for training. After 30 epochs, the trained object parameter model can be obtained. The model is verified using the verification file to obtain the evaluation index. At the same time, the new perspective image generated after verification can also be obtained.

Citation Information

Patent Citations

  • Indoor scene real-time rendering method and device, electronic equipment and storage medium

    CN114782615A

  • Explicit scene combination method based on neural radiation field

    CN116363299A

  • Three-dimensional reconstruction method and system based on deep learning

    CN116416375A

  • Mountain area three-dimensional reconstruction method based on Point-NeRF

    CN117635863A

  • Dynamic scene three-dimensional reconstruction method and system based on multi-scale space-time coding

    WO2024007181A1

Cited By

  • Improved AD-GS three-dimensional reconstruction method based on 2DGS

    CN120807798A

  • Improved Shiny-NeRF three-dimensional reconstruction method based on NeRF

    CN120807799A

  • Diffusion-guided object insertion and light source manipulation for autonomous driving

    WO2026102004A1