Dynamic scene reconstruction and tracking method based on time-varying neural radiation field

Through the method based on the time-varying neural radiation field, the problem of low reconstruction accuracy of dynamic objects in dynamic scenes of the SLAM system is solved, and more accurate dynamic scene reconstruction is achieved, which is suitable for multi-angle three-dimensional space observation and dynamic object change law fitting.

CN118570374APending Publication Date: 2024-08-30YUNNAN UNIV
View PDF 0 Cites 1 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing SLAM systems are difficult to accurately reconstruct dynamic objects in dynamic scenes and usually require pre-trained models, which limits their application in new environments.

Method used

Using a method based on time-varying neural radiation fields, by inputting continuous RGB-D frames, a tracking thread and a mapping thread are constructed, and a multi-layer neural network is used to convert from the deformation field to the standard field, and output offsets and feature encodings, combined with loss Functions are trained to realize the reconstruction and tracking of dynamic scenes.

Benefits of technology

It improves the accuracy of dynamic scene reconstruction, can effectively depict and reconstruct dynamic objects, solves the problems of low reconstruction accuracy and discontinuous results in dynamic SLAM systems, and fits the changing laws of dynamic objects through multi-angle three-dimensional space observation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570374A
    Figure CN118570374A
Patent Text Reader

Abstract

The invention relates to the technical field of dynamic scene reconstruction and tracking, and discloses a dynamic scene reconstruction and tracking method based on a time-varying neural radiation field, and the method comprises the steps: firstly inputting a series of continuous RGB-D frames, including a depth map, a color map and corresponding timestamps, and maintaining a tracking thread and a mapping thread, and the tasks of tracking the camera pose and reconstructing the scene surface are realized. The dynamic scene reconstruction and tracking method based on the time-varying neural radiation field can describe and reconstruct a dynamic object for downstream tasks by using a neural radiation field-based technology, solves the problems of low dynamic object reconstruction accuracy and discontinuous reconstruction results in a dynamic SLAM (Simultaneous Localization and Mapping) system at present, and improves the dynamic scene reconstruction and tracking efficiency. Through the NeRF method, the change rule of a dynamic object can be fitted through multi-angle three-dimensional space observation, so that the accuracy of dynamic scene reconstruction is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of dynamic scene reconstruction and tracking, and specifically to a dynamic scene reconstruction and tracking method based on time-varying neural radiation fields. Background Art

[0002] Reconstructing accurate dense maps is crucial for tasks such as autonomous car navigation and mixed reality. Existing simultaneous localization and mapping (SLAM) frameworks use neural networks to separate dynamic objects from static backgrounds, reconstructing dynamic objects and static backgrounds separately in different models. In addition, traditional SLAM systems usually require pre-trained models from specific datasets for inference, which limits their application in new environments.

[0003] In recent years, Neural Radiance Fields (NeRF) has attracted the interest of many researchers. It can obtain more accurate color and density information by using multilayer perceptrons (MLPs), thus achieving realistic rendering effects. Therefore, some researchers have tried to introduce NeRF into traditional SLAM systems to improve the performance of SLAM systems.

[0004] However, previous attempts to integrate NeRF into SLAM systems were either based on the assumption of static scenes or dynamic objects were considered as outliers and then removed. However, most scenes in the real world are dynamic, and it is difficult to find absolutely static application scenarios. Therefore, this limitation is a problem that needs to be solved urgently. Summary of the invention

[0005] 1. Technical issues to be solved

[0006] In view of the deficiencies in the prior art, the present invention provides a dynamic scene reconstruction and tracking method based on time-varying neural radiation fields, which has the advantages of increasing the accuracy of dynamic scene reconstruction and solves the above-mentioned technical problems.

[0007] (II) Technical solution

[0008] To achieve the above object, the present invention provides the following technical solution: a dynamic scene reconstruction and tracking method based on time-varying neural radiation field, comprising the following steps:

[0009] S1. Input continuous RGB-D frames, each RGB-D frame includes a depth map, a color map and a timestamp of the corresponding RGB-D frame;

[0010] S2. Process each RGB-D frame to obtain sampling points. The specific processing steps are as follows:

[0011] S2.1. Sample N pixels and project them into N rays indexed by j, where j∈{0,…,N-1};

[0012] S2.2. Sample M points for each ray in step S2.1, and record the sampled points as in, represents the i-th sampling point in the j-th ray, and (x, y, z) represents the coordinates of the sampling point;

[0013] S3: Build tracking thread and mapping thread to complete tracking camera pose and reconstruct scene surface, which specifically includes the following steps:

[0014] S3.1, construct an embedding set E, which contains all the sampling points;

[0015] S3.2, define the scene at time t = 0 as the gauge field, and the scenes at other times as the deformation field;

[0016] S3.3. Setting up a multi-layer neural network MLP d Convert the sampling point from the deformation field to the standard field and output the offset. If the sampling point is in the standard field, the output is 0. If the sampling point is in the deformation field, the output offset is

[0017] S3.4, the offset is and the characteristic coding combination of the sampling points t) Send it to another multi-layer neural network MLP s The output color and SDF value are and

[0018] S3.5, by outputting color and SDF value and Weighted calculation to get color and depth values;

[0019] S4. Set the loss function for the process of step S3. The specific expression is as follows:

[0020]

[0021] in, represents the comprehensive loss function of the b-th training batch, represents the color loss function of the b-th training batch, λ color represents the color loss weight, represents the depth loss function of the b-th training batch, λ depth represents the depth loss weight, represents the free space loss function of the b-th training batch, λspace represents the free space loss weight, represents the SDF loss function of the b-th training batch, λ SDF represents the SDF loss weight, represents the offset loss function of the b-th training batch, λ offset represents the offset loss weight, and B represents the total batch of training;

[0022] Color loss function for the bth training batch The expression is as follows:

[0023]

[0024] Where N represents the number of sampling points, C j (t) represents the color of the jth ray at time t, represents the true color value of the sampling point corresponding to the j-th ray, and ||*|| represents the distance norm;

[0025] The depth loss function of the b-th training batch The expression is as follows:

[0026]

[0027] Where N represents the number of sampling points, D j (t) represents the depth value of the jth ray at time t, represents the true depth value of the sampling point corresponding to the j-th ray, and ||*|| represents the distance norm.

[0028] Free space loss function for the bth training batch The expression is as follows:

[0029]

[0030]

[0031] Where s∈S space represents the free space sampling point, that is, the sampling point within the range from the camera origin to the cutoff distance, β space Represents the weight value of the free space sampling point, D s (t) represents the depth value of the point in free space, tr represents the predefined cutoff distance value, P space (t) represents the number of points sampled in free space, P tr (t) represents the number of points sampled from the surface of the object to the cutoff distance;

[0032] The expression of the SDF loss function for the bth training batch is as follows:

[0033]

[0034]

[0035] Among them, β SDF Represents the surface weight parameter of the object, s∈S tr Represents the depth value of a point in free space, D s (t) is within the cutoff range of the object surface, Represents the true depth value of a point in free space, P space (t) represents the number of points sampled in free space, P tr (t) represents the number of points sampled from the surface of the object to the cutoff distance;

[0036] The b-th training batch offset loss function The expression is as follows:

[0037]

[0038] Where s∈S bg represents the points sampled from the background, represents the offset between the deformation field and the gauge field, ||*|| 2 represents the square of the norm distance;

[0039] S5. Perform dynamic mapping, including the following steps:

[0040] S5.1, establish a key frame database, and insert new key frames into it at fixed time intervals;

[0041] S5.2. Calculate the overlap ratio between the current frame and each frame in the database to select the key frame. The specific calculation expression is as follows:

[0042] u(t-qτ)=K·T w2c (t-qτ)·T c2w (t)·K -1 u(t)

[0043] Where u(t) represents the pixel of the current frame, u(t-qτ) represents the pixel of the key frame at the t-qτth moment, q represents the number of time intervals τ, and T w2c and T c2w are the transformation matrices between the camera coordinate system and the world coordinate system, K represents the intrinsic parameter matrix of the camera, and K -1 represents the inverse matrix of the camera's intrinsic parameter matrix K, and t represents the current moment;

[0044] S5.3. After self-supervised training for each frame, the mapping process is completed.

[0045] As the preferred technical solution of the present invention, the step S3.3 multi-layer neural network MLP d The calculation expression in is as follows:

[0046]

[0047] Among them, θ d (*) indicates multi-layer neural network MLP d , Represents the i-th sampling point in the j-th ray at time t The feature encoding of represents the offset between the deformation field and the gauge field, Represents the i-th sampling point in the j-th ray at time t Feature encoding The result after concatenation with time t;

[0048] The i-th sampling point in the j-th ray at time t Feature encoding The calculation expression is as follows:

[0049]

[0050] Where TriLerp(*,*) represents the trilinear interpolation function, T(t-τ) represents the pose of the previous frame at time t-τ, represents the relative pose between the current frame and the previous frame, and u(t) represents the pixel of the current frame t.

[0051] As a preferred technical solution of the present invention, the expression of the output color and SDF value in step S3.4 is as follows:

[0052]

[0053] Among them, θ s (*) represents another multi-layer neural network MLP s , Represents a multi-layer neural network MLP d Output value, Represents the i-th sampling point in the j-th ray at time t The feature encoding of Represents the i-th sampling point in the j-th ray at time t Feature encoding The result after concatenation with time t, and Respectively represent the i-th sampling point in the j-th ray at time t The color value and SDF value.

[0054] As a preferred technical solution of the present invention, the calculation expression for weighted calculation of color and depth values ​​in step S3.5 is as follows:

[0055]

[0056]

[0057] Among them, C j (t) represents the color of the jth ray at time t, D j (t) represents the depth value of the jth ray at time t, represents the weight coefficient of the i-th sampling point in the j-th ray at time t, Indicates the sum of the internal M data. Represents the i-th sampling point in the j-th ray at time t The color value of Represents the i-th sampling point in the j-th ray at time t Depth value, and the weight coefficient of the i-th sampling point in the j-th ray at time t The expression is as follows:

[0058]

[0059] Among them, tr represents the cutoff distance, σ(*) represents the Sigmoid function, Represents the i-th sampling point in the j-th ray at time t The SDF value of .

[0060] Compared with the prior art, the present invention provides a dynamic scene reconstruction and tracking method based on time-varying neural radiation field, which has the following beneficial effects:

[0061] The present invention uses technology based on neural radiation fields to characterize and reconstruct dynamic objects for use in downstream tasks, solving the current problems of low accuracy in dynamic object reconstruction and discontinuous reconstruction results in dynamic SLAM systems. The NeRF method can be used to fit the change law of dynamic objects through multi-angle three-dimensional space observation, thereby increasing the accuracy of dynamic scene reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a schematic diagram of the Co-Fusion experimental results of the prior art;

[0063] Figure 2 It is a schematic diagram of the experimental results of the prior art MaskFusion;

[0064] Figure 3 It is a schematic diagram of the experimental results of the prior art NICE-SLAM;

[0065] Figure 4 It is a schematic diagram of the Vox-Fusion experimental results of the prior art;

[0066] Figure 5 It is a schematic diagram of RoDynRF experimental results in the prior art;

[0067] Figure 6 Schematic diagram of the experimental results of the ToyCar3 data set of the present invention;

[0068] Figure 7 Schematic diagram of experimental results of Room4-1 dataset of the present invention;

[0069] Figure 8 Schematic diagram of experimental results of Room4-2 dataset of the present invention;

[0070] Fig. 9 It is a schematic diagram of the experimental results of the Teddy data set of the present invention;

[0071] Fig.10 Schematic diagram for comparing experimental results of different key frame selection strategies of the present invention;

[0072] Fig.11 It is a schematic diagram of the structure of the present invention. DETAILED DESCRIPTION

[0073] 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.

[0074] See also Figure 1-11 , a dynamic scene reconstruction and tracking method based on time-varying neural radiation field, comprising the following steps:

[0075] S1. Input continuous RGB-D frames, each RGB-D frame includes a depth map, a color map and a timestamp of the corresponding RGB-D frame;

[0076] S2. Process each RGB-D frame to obtain sampling points. The specific processing steps are as follows:

[0077] S2.1. Sample N pixels and project them into N rays indexed by j, where j∈{0,…,N-1};

[0078] S2.2. Sample M points for each ray in step S2.1, and record the sampled points as in, represents the i-th sampling point in the j-th ray, and (x, y, z) represents the coordinates of the sampling point;

[0079] S3: Build tracking thread and mapping thread to complete tracking camera pose and reconstruct scene surface, which specifically includes the following steps:

[0080] S3.1, construct an embedding set E, which contains all the sampling points;

[0081] S3.2, define the scene at time t = 0 as the gauge field, and the scenes at other times as the deformation field;

[0082] S3.3. Setting up a multi-layer neural network MLP d Convert the sampling point from the deformation field to the standard field and output the offset. If the sampling point is in the standard field, the output is 0. If the sampling point is in the deformation field, the output offset is

[0083] Step S3.3 Multi-layer neural network MLP d The calculation expression in is as follows:

[0084]

[0085] Among them, θ d (*) indicates multi-layer neural network MLP d , Represents the i-th sampling point in the j-th ray at time t The feature encoding of represents the offset between the deformation field and the gauge field, Represents the i-th sampling point in the j-th ray at time t Feature encoding The result after concatenation with time t;

[0086] The i-th sampling point in the j-th ray at time t Feature encoding The calculation expression is as follows:

[0087]

[0088] Where TriLerp(*,*) represents the trilinear interpolation function, T(t-τ) represents the pose of the previous frame at time t-τ, represents the relative pose between the current frame and the previous frame, and u(t) represents the pixel of the current frame t;

[0089] S3.4, the offset is and the characteristic coding combination of the sampling points t) Send it to another multi-layer neural network MLP s The output color and SDF value are and

[0090] The expressions for the output color and SDF values ​​in step S3.4 are as follows:

[0091]

[0092] Among them, θ s (*) represents another multi-layer neural network MLP s , Represents a multi-layer neural network MLP d Output value, Represents the i-th sampling point in the j-th ray at time t The feature encoding of Represents the i-th sampling point in the j-th ray at time t Feature encoding The result after concatenation with time t is, and Respectively represent the i-th sampling point in the j-th ray at time t The color value and SDF value.

[0093] S3.5, by outputting color and SDF value and Weighted calculation to get color and depth values;

[0094] The calculation expression for weighted calculation of color and depth values ​​in step S3.5 is as follows:

[0095]

[0096]

[0097] Among them, C j (t) represents the color of the jth ray at time t, D j (t) represents the depth value of the jth ray at time t, represents the weight coefficient of the i-th sampling point in the j-th ray at time t, Indicates the sum of the internal M data. Represents the i-th sampling point in the j-th ray at time t The color value of Represents the i-th sampling point in the j-th ray at time t Depth value, and the weight coefficient of the i-th sampling point in the j-th ray at time t The expression is as follows:

[0098]

[0099] Among them, tr represents the cutoff distance, σ(*) represents the Sigmoid function, Represents the i-th sampling point in the j-th ray at time t The SDF value of .

[0100] S4. Set the loss function for the process of step S3. The specific expression is as follows:

[0101]

[0102] in, represents the comprehensive loss function of the b-th training batch, represents the color loss function of the b-th training batch, λ color represents the color loss weight, represents the depth loss function of the b-th training batch, λ depth represents the depth loss weight, represents the free space loss function of the b-th training batch, λ space represents the free space loss weight, represents the SDF loss function of the b-th training batch, λ SDF represents the SDF loss weight, represents the offset loss function of the b-th training batch, λ offset represents the offset loss weight, and B represents the total batch of training;

[0103] Color loss function for the bth training batch The expression is as follows:

[0104]

[0105] Where N represents the number of sampling points, C j (t) represents the color of the jth ray at time t, represents the true color value of the sampling point corresponding to the j-th ray, ||*|| represents the distance norm, and the depth loss function of the b-th training batch The expression is as follows:

[0106]

[0107] in, represents the free space sampling point, that is, the sampling point within the range from the camera origin to the cutoff distance, D j (t) represents the depth value of the jth ray at time t, Indicates the true depth value of the sampling point corresponding to the j-th ray;

[0108] The invention obtains the predicted value C of color and depth value through MLPs j (t) and D j (t), and the difference between the actual value. These two loss functions are used to measure the difference between the model’s prediction of the color and depth of the sampling point and the actual value.

[0109] Free space loss function for the bth training batch The expression is as follows:

[0110]

[0111]

[0112] Where s∈S space represents the free space sampling point, that is, the sampling point within the range from the camera origin to the cutoff distance, β space Indicates the range from the object surface to the cutoff distance, D s (t) represents the depth value of the point in free space, tr represents the cutoff value, P space (t) represents the number of points sampled in free space, P tr (t) represents the number of points sampled from the surface of the object to the cutoff distance;

[0113] The goal of this part is to constrain the depth value D of a point in free space s (t) learns towards the cutoff value (tr) far from the surface,

[0114] The expression of the SDF loss function for the bth training batch is as follows:

[0115]

[0116]

[0117] Among them, α SDF Represents the object surface weight parameter, s∈S tr Denotes the depth value D of a point in free space s (t) is within the cutoff range of the object surface, Represents the true depth value of a point in free space, P space (t) represents the number of points sampled in free space, P tr (t) represents the number of points sampled from the surface of the object to the cutoff distance;

[0118] Since the background position should remain static, Designed to minimize the background offset, the b-th training batch offset loss function The expression is as follows:

[0119]

[0120] Where s∈S bg represents the points sampled from the background, represents the offset between the deformation field and the gauge field, ||*|| 2 represents the square of the norm distance;

[0121] S5. Perform dynamic mapping, including the following steps:

[0122] S5.1, establish a key frame database, and insert new key frames into it at fixed time intervals;

[0123] S5.2. Calculate the overlap ratio between the current frame and each frame in the database to select the key frame. The specific calculation expression is as follows:

[0124] u(t-qτ)=K·T w2c (t-qτ)·T c2w (t)·K -1 u(t)

[0125] Among them, u(t) represents the pixel of the current frame, u(t-qτ) represents the pixel of the key frame at the time t-qτ), q represents the number of time intervals τ, T w2c and T c2w are the transformation matrices between the camera coordinate system and the world coordinate system, K represents the intrinsic parameter matrix of the camera, and K -1 represents the inverse matrix of the camera's intrinsic parameter matrix K, and t represents the current moment. Specifically, the pixel points u(t) sampled from the current frame t are reprojected back to the 3D space, and then projected onto the 2D plane of the target keyframe. The keyframes with a low overlap ratio are selected for map optimization so that the selected keyframes can cover as many new perspectives of the scene as possible;

[0126] S5.3. After self-supervised training for each frame, the mapping process is completed. Different from the tracking process, the mapping process involves the overall optimization of the embedding set E, the parameters of the two multi-layer neural networks (MLPd and MLPs), and the poses of the target keyframe and the current frame. After self-supervised training for each frame, we obtain an octree-based map. Then, the Marching Cubes algorithm can be used to generate a high-resolution grid map in real time for visualization.

[0127] The present invention verifies the experimental effect on multiple public synthetic data sets and real data sets through simulation experiments, proving the feasibility of the present invention.

[0128] exist Figure 6The experimental results on the ToyCar3 dataset are shown in FIG. 1 , in which a white car moves in the scene. It can be clearly seen from the experimental results that the present invention successfully and completely reconstructs the dynamic object of the white car.

[0129] exist Figure 7 Some results of the Room4 dataset are presented in Figure 2. This scene contains a flying ship. It is clear that this method successfully captures this dynamic object and accurately reconstructs the spaceship.

[0130] exist Figure 8 The rest of the Room4 dataset is shown in Figure 2. The scene contains a blue car and a yellow horse, both of which are dynamic objects. It is exciting that the present invention successfully reconstructs these two dynamic objects completely, which shows that the present invention can also achieve effective reconstruction of multiple dynamic targets in terms of the number of dynamic objects.

[0131] exist Fig. 9 The experimental results on the real Teddy dataset are shown in Figure 1, where the teddy bear moves through its two arms in the scene. It can be clearly seen from the experimental results that the present invention completely reconstructs the teddy bear and the human arm;

[0132] The present invention evaluates the accuracy of camera pose tracking by calculating the absolute trajectory error (ATE). However, since the Teddy dataset does not provide the real camera pose, only the ATE of other synthetic datasets is calculated. Secondly, RMSE represents the root mean square error, Mean represents the average value, and Std represents the variance value, and their units are all meters. As shown in Table 1, it can be clearly observed that compared with NICE-SLAM and Vox-Fusion, this method predicts the most accurate camera pose in dynamic scenes. This is because this method successfully reconstructs dynamic objects in the scene, which also helps to estimate a more accurate camera pose. RoDynRF can also complete the rendering work without the real pose and estimate the camera pose, but its accuracy is obviously not as accurate as the framework of the present invention.

[0133] Table 1 Performance of camera pose tracking

[0134]

[0135]

[0136] Table 2 Performance of surface reconstruction quality

[0137]

[0138]

[0139] The upward arrow indicates that the higher the numerical value, the better the performance; the downward arrow indicates that the lower the numerical value, the better the performance;

[0140] The experimental results of this method are quantitatively analyzed by calculating the mean square error (MSE), peak signal-to-noise ratio (PSNR), structural similarity index (SSIM) and perceptual loss (LPIPS). The calculation results are shown in Table 2. It should be pointed out in advance that the calculation indicators of Vox-Fusion on the Teddy dataset are not complete because the Vox-Fusion program will terminate when dynamic objects appear in the scene, resulting in incomplete scene reconstruction.

[0141] As can be seen from Table 2, on both synthetic datasets, our system achieves the best rendering results in comparison with the other three methods. On the Teddy dataset, our results are also very competitive. The reason why we cannot achieve the best results on the real dataset is that we only use two lightweight MLPs to train the entire scene. When the scene is relatively large or complex, the two small MLPs cannot fully regress the entire scene.

[0142] However, RoDynRF’s good rendering results require a lot of time-consuming self-supervised training, which prolongs the map construction time. We show the approximate time required to train RoDynRF and TivNe-SLAM on all three datasets in Table 3. Obviously, our method is much faster than RoDynRF in training on all datasets. Compared with RoDynRF, our system not only ensures the reconstruction ability of dynamic scenes, but also achieves real-time performance.

[0143] Table 3. Comparison of training time with dynamic NeRF

[0144]

[0145] Compared with other strategies of randomly selecting key frames, this method selects target key frames based on the overlap rate. In the experimental results, it can reconstruct a more complete dynamic object surface, such as Fig.10 As shown in the figure, the first column is the experimental result of randomly selecting key frames, and the second column is the experimental result of selecting target key frames based on the overlap rate in the present invention. It can be clearly seen that the method used in the present invention completely reconstructs the front of the blue car without any holes, and can also relatively completely reconstruct the surface of the object at the rear and side of the car (the side that does not appear in the observation angle).

[0146] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A dynamic scene reconstruction and tracking method based on time-varying neural radiation field, characterized by: The following steps are involved: S1. Input continuous RGB-D frames, each RGB-D frame includes a depth map, a color map and a timestamp of the corresponding RGB-D frame; S2. Process each RGB-D frame to obtain sampling points. The specific processing steps are as follows: S2.

1. Sample N pixels and project them into N rays indexed by j, where j∈{0,…,N-1}; S2.

2. Sample M points for each ray in step S2.1, and record the sampled points as in, represents the i-th sampling point in the j-th ray, and (x, y, z) represents the coordinates of the sampling point; S3: Build tracking thread and mapping thread to complete tracking camera pose and reconstruct scene surface, which specifically includes the following steps: S3.1, construct an embedding set E, which contains all the sampling points; S3.2, define the scene at time t = 0 as the gauge field, and the scenes at other times as the deformation field; S3.

3. Setting up a multi-layer neural network MLP d Convert the sampling point from the deformation field to the standard field and output the offset. If the sampling point is in the standard field, the output is 0. If the sampling point is in the deformation field, the output offset is S3.4, the offset is and the characteristic coding combination of the sampling points t) Send it to another multi-layer neural network MLP s The output color and SDF value are and S3.5, by outputting color and SDF value and Weighted calculation to get color and depth values; S4. Set the loss function for the process of step S3. The specific expression is as follows: in, represents the comprehensive loss function of the b-th training batch, represents the color loss function of the b-th training batch, λ color represents the color loss weight, represents the depth loss function of the b-th training batch, λ depth represents the depth loss weight, represents the free space loss function of the b-th training batch, λ space represents the free space loss weight, represents the SDF loss function of the b-th training batch, λ SDF represents the SDF loss weight, represents the offset loss function of the b-th training batch, λ offset represents the offset loss weight, and B represents the total batch of training; Color loss function for the bth training batch The expression is as follows: Where N represents the number of sampling points, C j (t) represents the color of the jth ray at time t, represents the true color value of the sampling point corresponding to the j-th ray, and ||*|| represents the distance norm; The depth loss function of the b-th training batch The expression is as follows: Where N represents the number of sampling points, D j (t) represents the depth value of the jth ray at time t, represents the true depth value of the sampling point corresponding to the j-th ray, and ||*|| represents the distance norm; Free space loss function for the bth training batch The expression is as follows: Where s∈S space represents the free space sampling point, that is, the sampling point within the range from the camera origin to the cutoff distance, β space Represents the weight value of the free space sampling point, D s (t) represents the depth value of the point in free space, tr represents the predefined cutoff distance value, P space (t) represents the number of points sampled in free space, P tr (t) represents the number of points sampled from the surface of the object to the cutoff distance; The expression of the SDF loss function for the bth training batch is as follows: Among them, β SDF Represents the surface weight parameter of the object, s∈S tr Represents the depth value of a point in free space, D s (t) is within the cutoff range of the object surface, Represents the true depth value of a point in free space, P space (t) represents the number of points sampled in free space, P tr (t) represents the number of points sampled from the surface of the object to the cutoff distance; The b-th training batch offset loss function The expression is as follows: Where s∈S bg represents the points sampled from the background, represents the offset between the deformation field and the gauge field, ||*|| 2 represents the square of the norm distance; S5. Perform dynamic mapping, including the following steps: S5.1, establish a key frame database, and insert new key frames into it at fixed time intervals; S5.

2. Calculate the overlap ratio between the current frame and each frame in the database to select the key frame. The specific calculation expression is as follows: u(t-qτ)=K·T w2c (t-qτ)·T c2w (t)·K -1 ·u(t) Where u(t) represents the pixel of the current frame, u(t-qτ) represents the pixel of the key frame at the t-qτth moment, q represents the number of time intervals τ, and T w2c and T c2w are the transformation matrices between the camera coordinate system and the world coordinate system, K represents the intrinsic parameter matrix of the camera, and K -1 represents the inverse matrix of the camera's intrinsic parameter matrix K, and t represents the current moment; S5.

3. After self-supervised training for each frame, the mapping process is completed.

2. According to claim 1, a dynamic scene reconstruction and tracking method based on time-varying neural radiation field is characterized in that: Step S3.3 Multilayer Neural Network MLP d The calculation expression in is as follows: Among them, θ d (*) indicates multi-layer neural network MLP d , Represents the i-th sampling point in the j-th ray at time t The feature encoding of represents the offset between the deformation field and the gauge field, Represents the i-th sampling point in the j-th ray at time t Feature encoding The result after concatenation with time t; The i-th sampling point in the j-th ray at time t Feature encoding The calculation expression is as follows: Where TriLerp(*,*) represents the trilinear interpolation function, T(t-τ) represents the pose of the previous frame at time t-τ, represents the relative pose between the current frame and the previous frame, and u(t) represents the pixel of the current frame t.

3. The method for dynamic scene reconstruction and tracking based on time-varying neural radiation field according to claim 2, characterized in that: The expressions of the output color and SDF value in step S3.4 are as follows: Among them, θ s (*) represents another multi-layer neural network MLP s , Represents a multi-layer neural network MLP d Output value, Represents the i-th sampling point in the j-th ray at time t The feature encoding of Represents the i-th sampling point in the j-th ray at time t Feature encoding The result after concatenation with time t, and Respectively represent the i-th sampling point in the j-th ray at time t The color value and SDF value.

4. The method for dynamic scene reconstruction and tracking based on time-varying neural radiation field according to claim 1, characterized in that: The calculation expression for weighted calculation of color and depth values ​​in step S3.5 is as follows: Among them, C j (t) represents the color of the jth ray at time t, D j (t) represents the depth value of the jth ray at time t, represents the weight coefficient of the i-th sampling point in the j-th ray at time t, Indicates the sum of the internal M data. Represents the i-th sampling point in the j-th ray at time t The color value of Represents the i-th sampling point in the j-th ray at time t Depth value, and the weight coefficient of the i-th sampling point in the j-th ray at time t The expression is as follows: Among them, tr represents the cutoff distance, σ(*) represents the Sigmoid function, Represents the i-th sampling point in the j-th ray at time t The SDF value of .

Citation Information

Cited By

  • 4D space-time field construction method and device based on neural field reconstruction

    CN121120981A