A dynamic scene reconstruction method based on explicit and implicit hybrid coding
Through the explicit and implicit hybrid coding method, combined with the deformation network, the canonical network and the volume rendering field, the problem of high computing cost and storage cost in dynamic scene reconstruction is solved, and efficient and low-cost dynamic scene reconstruction and rendering effects are achieved.
Patent Information
- Application Number
- CN202311289459.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-10-08
AI Technical Summary
It is difficult for existing technologies to efficiently reconstruct dynamic scenes, especially in complex motion scenes. Existing methods have problems such as high computing costs, high storage costs, and low rendering results.
A dynamic scene reconstruction method based on explicit and implicit hybrid coding is adopted. By constructing a deformation network, a canonical network and a volume rendering field, explicit voxel grids are used to store 3D dynamic features, combined with lightweight MLP decoding displacement estimation, and Temporal information encoding is incorporated into the estimation of density and color, using multi-scale interpolation to improve motion capture capabilities.
It significantly reduces the reconstruction burden of MLP, accelerates the training process, reduces storage costs, improves the perception of different degrees of motion, and achieves high-quality dynamic scene reconstruction.
Smart Images

Figure CN117252987B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dynamic scene reconstruction, and more particularly to a dynamic scene reconstruction method based on explicit and implicit hybrid coding. Background Art
[0002] The problem of reconstructing and rendering 3D scenes using a set of 2D images has always been a challenge in the field of computer vision and graphics. This task is of great significance in various applications such as virtual reality, interactive games, and filmmaking. Recently, Neural Radiance Fields (NeRF) has made significant progress in the performance of static scene reconstruction tasks by using differentiable volume rendering techniques. NeRF only needs 3D positions (X, Y, Z) and 2D viewing directions (θ, φ) as inputs, and uses a single multi-layer perceptron (MLP) to fit the static scene to obtain the color and density of 3D points, enabling it to accurately reconstruct 3D structures from multiple 2D images and generate realistic images from previously unseen viewpoints. However, since the real world is dynamic and often involves motion in complex scenes, it is an urgent problem to extend the ability of NeRF to reconstruct static scenes to dynamic scenes. However, since NeRF relies entirely on the implicit representation of MLP, in order to obtain the color and density of the sampled points, the sampled points have to be queried millions of times in each iteration, making the reconstruction method of dynamic scenes more complicated. For example, D-NeRF uses deformable networks and canonical networks to model and fit dynamic scenes, but it should be noted that this process takes more than 20 hours to converge. The high computational cost associated with temporal processing poses a challenge to the widespread application of these techniques in real-life scenarios.
[0003] Several recent static scene reconstruction methods have demonstrated faster speeds than purely implicit MLP scene representations such as NeRF by using a hybrid representation of explicit and implicit representations, requiring only a dozen minutes for the model to converge. This speed increase is achieved by using trilinear interpolation of the voxel grid to fill the 3D space within the voxel. However, most of these methods are designed for static scene reconstruction, and existing methods cannot be directly applied to dynamic scene reconstruction. The main reason is that directly extending the 3D space (x, y, z) representation of static scenes to a 4D space (x, y, z, t) with a time dimension will incur a huge storage cost, which increases linearly with the number of time frames, resulting in a single scene training parameter requiring tens of GB to store, which is impractical. To improve this problem, some dynamic NeRF methods use deformation networks to learn the mapping relationship of points and input the deformed sampled points into the canonical space. The deformation network maps 3D points from the observation space (t≠0) to the canonical space (t=0), effectively transforming the dynamic scene reconstruction problem into a familiar static scene. This method saves a lot of storage space, but these methods are overly dependent on accurate displacement estimation modules, and the cumulative error estimation of displacement will have a negative impact on the learning of the canonical network. On the other hand, existing voxel expressions usually use a single-resolution voxel grid to reconstruct the scene. However, high-resolution voxel grids are not enough to simulate large-scale motion, while low-resolution voxel grids cannot capture details in small-scale motion. Ultimately, it is impossible to take into account different degrees of motion, resulting in low rendering results. Summary of the invention
[0004] In view of this, the present invention provides a dynamic scene reconstruction method based on explicit and implicit hybrid coding to solve the problems in the background technology.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] A dynamic scene reconstruction method based on explicit and implicit hybrid coding, the specific steps include the following:
[0007] A dynamic scene reconstruction model is constructed, including a deformable network, a canonical network and a volume rendering field connected in sequence; the deformable network uses an explicit voxel grid to store 3D dynamic features, and uses a lightweight MLP to decode the 3D dynamic features and output displacement estimates; the canonical network corrects the error of the displacement estimate in the deformable network and incorporates the temporal information encoding into the density and color estimates; the volume rendering field uses the color and density predicted by the canonical network to calculate the color value of the pixel;
[0008] Construct batch data and send the batch data to the constructed dynamic scene reconstruction model for training. Perform loss on the pixel values of the rendered image and the real image, and use the loss function value to optimize the network parameters until convergence to obtain the optimal dynamic scene reconstruction model.
[0009] The data to be tested is input into the optimal dynamic scene reconstruction model to obtain a rendered image.
[0010] Preferably, in the above-mentioned dynamic scene reconstruction method based on explicit and implicit hybrid coding, the deformable network includes sequentially setting a deformable voxel grid and a deformable multilayer perceptron; given a voxel grid resolution The length of the feature vector stored at each voxel vertex is N d , Deformable Multilayer Perceptron F d It includes an input layer, a hidden layer and an output layer, and is used to output the estimated displacement.
[0011] Preferably, in the above-mentioned method for dynamic scene reconstruction based on explicit and implicit hybrid coding, the canonical network includes a density module and a color module;
[0012] In the density module, the density voxel grid G is set in sequence σ , density multilayer perceptron F σ , given a voxel grid resolution The length of the feature vector stored at each voxel vertex is N σ , density multilayer perceptron F σ It includes input layer, hidden layer and output layer to output the estimated density σ;
[0013] In the color module, the color voxel grid G is sequentially set c , color multilayer perceptron F c , given a voxel grid resolution The length of the feature vector stored at each voxel vertex is N c , color multilayer perceptron F c It includes input layer, hidden layer and output layer to output the estimated color RGB.
[0014] Preferably, in the above-mentioned dynamic scene reconstruction method based on explicit and implicit hybrid coding, the volume rendering field calculates the color of each light ray, assuming that p(h)=o+hd is a point on the camera ray emitted from the center o of the camera optical center to the projection pixel, where the ray direction d is the unit vector from the projection pixel point to the optical center, and after passing through the density module and the color module, the density σ and color c of n sampling points on a ray are obtained, then the estimated color of the ray is Among them, h n and h frepresents the boundary of the scene volume, p′(h,t) is the sampling point transformed from the observation space to the standard space through the deformation network, Yes n The cumulative transmittance to the current sampling point h.
[0015] Preferably, in the above-mentioned dynamic scene reconstruction method based on explicit and implicit hybrid coding, the specific steps for constructing batch data are as follows: N_rays pixels are randomly selected from the training set image in each round, and a ray is emitted along the projection pixel direction d with the camera optical center as the origin o to obtain N_rays rays used for batch processing, and the time N_rays_t of the photo to which each ray belongs is recorded at the same time. With the near end near and the far end far of the ray as the interval, N_sample sampling points p (x, y, z) are sampled on the ray, so that the batch data obtained are (N_rays, N_sample, p) and (N_rays, N_sample, N_rays_t).
[0016] Preferably, in the above-mentioned dynamic scene reconstruction method based on explicit and implicit hybrid coding, the specific steps of sending the batch data into the constructed dynamic scene reconstruction model for training are as follows:
[0017] Query the position of the sampling point p in the deformed voxel grid, perform trilinear interpolation based on the vertices of the voxel, and obtain the N value of point p. d The deformation feature vector f d ; Use the encoding formula to encode the feature vector f d , the sampling point position p and the corresponding time N_rays_t are encoded to obtain the sampling point position p′=p+Δp of the sampling point p at time t in the standard space at time t=0;
[0018] The query sampling point p' is located in the color voxel grid. The deformation network learns the displacement at time t through an iterative process and gradually converges to the correct result. The time information encoding γ(N_ray_t) is added to the density and color estimation network of the normative network to obtain the color c of the sampling point.
[0019] Query the position of the sampling point p' in the density voxel grid and use multi-scale trilinear interpolation to obtain the density feature vector f σ , combine γ(p′), γ(N_ray_t) and f σ Splice together and feed into the density multilayer perceptron F σ In the equation, we obtain the density σ of the sampling points;
[0020] Get the color c of N_sample sampling points on a ray i and density σ i, there are N_rays, where 0≤i≤N_sample; in the volume rendering field, the volume rendering formula is used to obtain the color of the pixel corresponding to the light Will And the true value C to make the loss Used to optimize the network model.
[0021] Preferably, in the above-mentioned method for dynamic scene reconstruction based on explicit and implicit hybrid coding, it also includes: a segmented training method; filtering out sampling points that do not contribute to the target pixel color calculation, and the specific steps are as follows: coarse stage training and fine stage training;
[0022] The coarse stage training uses the first network parameters and directly interpolates from the voxel grid when estimating color and density, quickly recovering the rough geometry of the scene;
[0023] After the coarse stage, by querying the density information of all current mesh vertices, during mask inference, the light weight U(h,t)σ(p′(h,t)) is less than α c =10 -3 The light rays are masked as empty spaces, and the minimum bounding box containing the target object is found in the non-empty points; the coarse stage grid is used for initialization in the fine stage training, and the second network parameters are used. Before predicting the color, additional filtering values are applied to remove the sampling points with cumulative transmittance U(h,t) less than the threshold α f =10 -4 point.
[0024] Preferably, in the above-mentioned dynamic scene reconstruction method based on explicit and implicit hybrid coding, a testing step is also included:
[0025] Given a test image sequence The camera pose is Time series of frames The test set consists of an image resolution of H×W, where N is a positive integer representing the number of RGB images contained in a scene in the test set;
[0026] The test set image sequence, camera pose and time series are sent to the trained model, and the light emitted from each pixel of each camera pose is sampled in turn. The sampling points obtain the corresponding color and density in turn, and finally the volume rendering module is used to obtain the rendered image. The image sequence is used as the true value to evaluate the test results.
[0027] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a dynamic scene reconstruction method based on explicit and implicit hybrid coding, and reconstructs dynamic scenes with high quality through multi-scale interpolation and time perception. The dynamic scene reconstruction model is composed of three modules, namely, a deformable network, a canonical network, and a volume rendering field, which are used to avoid learning the complex relationship of high-dimensional mapping and reduce storage costs. In the deformable network, an optimizable explicit voxel grid is used to store 3D dynamic features, and a lightweight MLP is used to decode these deformable features. This setting greatly reduces the global reconstruction burden of MLP, and the reconstruction task is assigned to each small voxel, thereby significantly accelerating the training process and convergence speed. In the canonical network, in order to correct the error of displacement estimation in the deformable network, the temporal information encoding is integrated into the estimation of density and color, and the robustness and perception of motion of the canonical network are enhanced. In addition, in the density field, simple trilinear interpolation is abandoned, and multi-scale interpolation is designed to obtain feature information from voxels of various distances. This method can capture large-scale motion while taking into account the complex details in small-scale motion. The volume rendering field uses the color and density predicted by the normative network to calculate the color value of the pixel, which is used to optimize the network by making a loss with the true value. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0029] Figure 1 It is a framework diagram of the present invention.
[0030] Figure 2 is a schematic diagram of multi-scale interpolation of the present invention;
[0031] Figure 3 The test results of the present invention in different scenarios;
[0032] Figure 4 It is a schematic diagram of the effect of the present invention in detail;
[0033] Figure 5 This is the result of the present invention on the HyperNeRF real scene dataset. DETAILED DESCRIPTION
[0034] 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.
[0035] The present invention proposes a dynamic scene reconstruction method based on explicit and implicit hybrid coding, and its overall implementation block diagram is as follows: Figure 1 As shown, it includes two processes: training phase and testing phase;
[0036] The specific steps of the training phase process are:
[0037] Step 1_1: Data loading, given an image sequence of a dynamic scene captured by a monocular camera The camera pose is Time series of images The training set consists of an image resolution of H*W, where N is a positive integer representing the number of RGB images contained in a scene in the training set, which is determined by the specific scene. H represents Height, W represents The width of the Lego toys in the synthetic dataset is H=800, W=800, and N=50.
[0038] Step 1_2: Build a dynamic scene reconstruction model, which includes deformation network, specification network, and volume rendering field.
[0039] For the deformation network, set the deformation pixel grid G in turn d and deformation multilayer perceptron F d . Given a voxel grid resolution The length of the feature vector stored at each voxel vertex is N d , Deformable Multilayer Perceptron F d It includes input layer, hidden layer and output layer. The width of the input layer is 88, there are 4 hidden layers, each with a width of 64, and the width of the output layer is 3 to output the estimated displacement (Δx, Δy, Δz).
[0040] For the standard network, it contains a density module and a color module. In the density module, the density voxel grid G is set in turn σ , density multilayer perceptron F σ , given a voxel grid resolution The length of the feature vector stored at each voxel vertex is N σ , density multilayer perceptron F σIt includes input layer, hidden layer and output layer. The width of the input layer is 45, there are 3 hidden layers, the width of each layer is 128, and the width of the output layer is 1 to output the estimated density σ.
[0041] Set the color voxel grid G in the color module in turn c , color multilayer perceptron F c , given a voxel grid resolution The length of the feature vector stored at each voxel vertex is N c , color multilayer perceptron F c It includes input layer, hidden layer and output layer. The width of the input layer is 81, there are 3 hidden layers, the width of each layer is 128, and the width of the output layer is 3 to output the estimated color RGB.
[0042] For the volume rendering field, it is responsible for calculating the color of each ray. Let p(h) = o + hd be a point on the camera ray emitted from the center o of the camera optical center to the projection pixel, where the ray direction d is the unit vector from the projection pixel to the optical center. After passing through the density module and the color module, we can get the density σ and color c of n sampling points on a ray. Then the estimated color of the ray is Among them, h n and h f represents the boundary of the scene volume, p′(h,t) is the sampling point transformed from the observation space to the standard space through the deformation network, Yes n The cumulative transmittance to the current sampling point h.
[0043] Step 1_3: Construct batch data. In each round, we randomly select N_rays pixels from the training set image, take the camera optical center as the origin o, send out a ray along the projection pixel direction d, and obtain N_rays rays used for batch processing. At the same time, record the time N_rays_t of the photo to which each ray belongs. With the near end near and the far end far of the ray as the interval, sample N_sample sampling points p(x, y, z) on the ray. So far, we have obtained the batch data (N_rays, N_sample, p) and (N_rays, N_sample, N_rays_t).
[0044] Step 1_4: Send the batch data to the constructed dynamic scene reconstruction model for training. In order to alleviate the problem of large memory consumption of explicit reconstruction of dynamic scenes, first set the time t = 0 as the standard space, then the time t≠0 as the observation space, and use the deformation network to query the distance Δp (Δx, Δy, Δz) required for the point p at time t≠0 to move to the position p' corresponding to the point at time t = 0.
[0045] Specifically, query the position of the sampling point p in the deformed voxel grid, perform trilinear interpolation based on the 8 vertices of the voxel, and obtain the N d The deformation feature vector f d In order to learn the high-frequency details, the encoding formula γ(p′)=(sin(2 0 p′),cos(2 0 p′),…sin(2 L-1 p′),sin(2 L-1 p′)) for the eigenvector f d , the sampling point position p and the corresponding time N_rays_t are encoded, and the encoded γ(f d )=44, γ(p)=33 and γ(N_ray_t)=11 are concatenated together and sent to the multilayer perceptron F d The input layer estimates the displacement Δp after passing through the hidden layer, and thus the sampling point position p′=p+Δp of the sampling point p at time t in the standard space at time t=0 is obtained.
[0046] Regarding the color and density of point p', they are reconstructed separately to obtain better rendering results. For color c, first query the position of the sampling point p' in the color voxel grid, find the 8 vertices of the voxel, and perform trilinear interpolation to obtain the N value of point p'. c The color feature vector f c . However, in dynamic scene reconstruction, accurately estimating the position of points remains a prominent challenge, and this limitation often leads to low quality rendering results. The deformation network learns the displacement of the point at time t through an iterative process and gradually converges to the correct result. However, this estimation inevitably has deviations. In addition, since the scene is represented by a neural voxel grid, the modeling of each point depends on the 8 adjacent voxel vertices. If a point cannot be moved to the correct voxel, these inaccuracies will be amplified, which will have an inhibitory effect on the learning process of the network. In order to reduce the impact of errors in displacement estimation and improve the robustness of the canonical network. Temporal information encoding γ(N_ray_t) is added to the density and color estimation networks of the canonical network. Specifically, γ(p′), γ(d), γ(N_ray_t) and f are concatenated together and fed into the color multilayer perceptron F d , obtain the color c of the sampling point.
[0047] For the density σ, we first query the location of the sample point p' in the density voxel grid. However, we do not use simple trilinear interpolation as before to obtain the density feature vector f σ , because points in dynamic scenes experience significant motion, which makes it difficult to capture this motion based on only a single voxel. Figure 2An example in a dynamic scene is shown, where points in adjacent frames may show large motion trajectories, and the same point may belong to different voxel locations at different times (t, t+1). In view of the limitations of voxel grids in geometric reconstruction of dynamic scenes, a multi-scale interpolation method is proposed. In this multi-scale interpolation method, slight motion is represented by voxels at close range, and significant motion is represented by voxels at a farther distance. By expanding the range of voxels considered, different degrees of motion can be reconstructed simultaneously. In addition, when the estimated displacement deviates and fails to reach the correct voxel position but falls into adjacent voxels, because a wider range of voxels is considered, the adverse effects caused by inaccurate displacement estimation are also reduced, which in turn helps the point p' learn towards the correct position. Therefore, multi-scale trilinear interpolation is used to obtain the density feature vector f σ Specifically, γ(p′), γ(N_ray_t) and f σ Splice together and feed into the density multilayer perceptron F σ In the above equation, we obtain the density σ of the sampling points.
[0048] So far, the color c of N_sample sampling points on a ray is obtained i and density σ i , we have N_rays of such rays, where 0≤i≤N_sample. In the volume rendering field, we use the volume rendering formula to obtain the color of the pixel corresponding to the ray. Will And the true value C to make the loss Used to optimize the network model.
[0049] Step 1_5: Repeat steps 1_3 and 1_4 for a total of 20k times to obtain the trained dynamic scene reconstruction model. In order to speed up the training process, a segmented training method is used to filter out the sampling points that do not contribute to the target pixel color calculation, and avoid building areas that do not explicitly consider the target object. These areas do not contribute to the learning process and can be safely excluded. Therefore, a two-stage training method is used to solve this problem: coarse training and fine training. First, the coarse stage training is performed. We use a lower grid resolution for 5k iterations and the deformable grid G d The number of voxels in is 1664k, and the density grid G σ and color grid G c The number of voxels in is 1024k, and when estimating color and density, it does not need to be predicted by MLP, but is directly interpolated from the voxel grid, because the purpose of this stage is to quickly restore the rough geometry of the scene. After the coarse stage, by querying the density information of all current mesh vertices, when inferring the mask, the light weight U(h,t)σ(p′(h,t)) is less than α c =10-3 The rays are masked as empty spaces, and the minimum bounding box containing the target object is found among the non-empty points. The coarse-stage grid is used for initialization in the fine stage. In order to take into account both low-frequency and high-frequency information, the resolution increase strategy is adopted to iterate 15k times. The deformed grid G d The number of voxels in is 80 3 , density grid G σ and color grid G c The number of voxels in is 95 3 , when the iteration rounds are (1000, 2000, 3000), the number of voxels will double, and the final resolution is the deformed mesh G d The number of voxels in is 160 3 , density grid G σ and color grid G c The number of voxels in is 190 3 Before predicting the color, we apply an additional filter to remove the sample points whose cumulative transmittance U(h,t) is less than the threshold α f =10 -4 Points, this is to filter out points that do not contribute to the final color prediction, or points that are occluded. This method greatly reduces the training time of the network while maintaining minimal impact on the presented results.
[0050] In addition to the reconstruction loss, we also obtain the total error regularization L tv To make the adjacent voxels transition smoothly, in order to optimize during the training process, the Adam optimizer is used, and the β value is set to (0.9, 0.99). For the voxel features, the learning rate is set to 1×10 -1 , for the MLP parameters, the learning rate is set to 1×10 -3 .
[0051] The specific steps of the testing phase process are:
[0052] Step 2_1: Given a test image sequence The camera pose is Time series of frames The test set is composed of images that have never appeared in the training set, but are used to evaluate the model. The image resolution is H×W, where N is a positive integer, indicating the number of RGB images contained in a scene in the test set. Experiments usually select 20 test images.
[0053] Step 2_2: The test set image sequence, camera pose and time series are fed into the trained model, and the light emitted from each camera pose is sampled pixel by pixel. The sampling points are sequentially passed through step 1_4 to obtain the corresponding color and density. Finally, the volume rendering module is used to obtain the rendered image, and the image sequence is used as the true value to evaluate the test results.
[0054] In order to further verify the feasibility and effectiveness of the method of the present invention, experiments were conducted.
[0055] A dynamic scene reconstruction model is built using a deep learning library based on pytorch. The blender type dataset of NeRF is used, and the test set is used to analyze the quality of the new perspective images synthesized by the method of the present invention. Here, three commonly used objective parameters for evaluating image quality are used as evaluation indicators, namely Peak Signal to Noise Ratio (PSNR), structural similarity index (SSIM), and learned perceptual image patch similarity (LPIPS) to evaluate the quality of the generated new perspective images.
[0056] The test set images in the NeRF dataset are synthesized using the method of the present invention, and the evaluation results of each generated image and the real image are obtained. The peak signal-to-noise ratio PSNR, structural similarity index SSIM, and learning perceptual image block similarity LPIPS reflecting the generation quality of the method of the present invention are listed in Table 1. From the data listed in Table 1, it can be seen that the new perspective image result obtained by the method of the present invention is better, and the time consumption is short and the speed is fast. It shows that it is feasible and effective to reconstruct the three-dimensional scene using the method of the present invention to synthesize the new perspective image.
[0057] Table 1 Evaluation results of the method of the present invention on the test set
[0058]
[0059] like Figure 4As shown, (a) and (b) are the true values, (f) is a schematic diagram of the results of the present invention, and the rest are the results of other advanced methods; (c) D-NeRF: Neural Radiance Fields for Dynamic Scenes; (d) NDVG NeuralDeformable Voxel Grid for Fast Optimization of Dynamic View Synthesis (e) Hexplane HexPlane: A Fast Representation for Dynamic Scenes.
[0060] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0061] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A dynamic scene reconstruction method based on explicit and implicit hybrid coding, characterized in that: The specific steps include the following: A dynamic scene reconstruction model is constructed, including a deformable network, a canonical network and a volume rendering field connected in sequence; the deformable network uses an explicit voxel grid to store 3D dynamic features, and uses a lightweight MLP to decode the 3D dynamic features and output displacement estimates; the canonical network corrects the error of the displacement estimate in the deformable network and incorporates the temporal information encoding into the density and color estimates; the volume rendering field uses the color and density predicted by the canonical network to calculate the color value of the pixel; Construct batch data and send the batch data to the constructed dynamic scene reconstruction model for training. Perform loss on the pixel values of the rendered image and the real image, and use the loss function value to optimize the network parameters until convergence to obtain the optimal dynamic scene reconstruction model. The data to be tested is input into the optimal dynamic scene reconstruction model to obtain a rendered image.
2. The method for dynamic scene reconstruction based on explicit and implicit hybrid coding according to claim 1, characterized in that: The deformation network includes sequentially setting a deformation voxel grid and a deformation multilayer perceptron; given a voxel grid resolution G d ∈R Nx×Ny×Nz , the length of the feature vector stored at each voxel vertex is N d , Deformable Multilayer Perceptron F d It includes an input layer, a hidden layer and an output layer, and is used to output the estimated displacement.
3. The method for dynamic scene reconstruction based on explicit and implicit hybrid coding according to claim 1, characterized in that: The canonical network includes a density module and a color module; In the density module, the density voxel grid G is set in sequence σ , density multilayer perceptron F σ , given a voxel grid resolution G σ ∈R Nx×Ny×Nz , the length of the feature vector stored at each voxel vertex is N σ , density multilayer perceptron F σ It includes input layer, hidden layer and output layer to output the estimated density σ; In the color module, the color voxel grid G is sequentially set c , color multilayer perceptron F c , given a voxel grid resolution The length of the feature vector stored at each voxel vertex is N c , color multilayer perceptron F c It includes input layer, hidden layer and output layer to output the estimated color RGB.
4. The method for dynamic scene reconstruction based on explicit and implicit hybrid coding according to claim 3, characterized in that: The volume rendering field calculates the color of each ray. Let p(h)=o+hd be a point on the camera ray emitted from the center o of the camera optical center to the projection pixel, where the ray direction d is the unit vector from the projection pixel point to the optical center. After passing through the density module and the color module, the density σ and color c of n sampling points on a ray are obtained. Then the estimated color of the ray is Among them, h n and h f represents the boundary of the scene volume, p′(h,t) is the sampling point transformed from the observation space to the standard space through the deformation network, Yes n The cumulative transmittance to the current sampling point h.
5. The method for dynamic scene reconstruction based on explicit and implicit hybrid coding according to claim 1, characterized in that: The specific steps to construct batch data are as follows: In each round, N_rays pixels are randomly selected from the training set image, and a ray is emitted along the projection pixel direction d with the camera optical center as the origin o to obtain N_rays rays used for batch processing. At the same time, the time N_rays_t of the photo to which each ray belongs is recorded. With the near end near and the far end far of the ray as the interval, N_sample sampling points p(x, y, z) are sampled on the ray. So far, the batch data obtained are (N_rays, N_sample, p) and (N_rays, N_sample, N_rays_t).
6. The method for dynamic scene reconstruction based on explicit and implicit hybrid coding according to claim 1, characterized in that: The specific steps of sending batch data into the constructed dynamic scene reconstruction model for training are as follows: Query the position of the sampling point p in the deformed voxel grid, perform trilinear interpolation based on the vertices of the voxel, and obtain the N value of point p. d The deformation feature vector f d ; Use the encoding formula to encode the feature vector f d , the sampling point position p and the corresponding time N_rays_t are encoded to obtain the sampling point position p′=p+Δp of the sampling point p at time t in the standard space at time t=0; the deformation network is used to query the distance Δp required for the point p at time t≠0 to move to the position p' corresponding to the point at time t=0; The query sampling point p' is located in the color voxel grid. The deformation network learns the displacement at time t through an iterative process and gradually converges to the correct result. The time information encoding γ(N_ray_t) is added to the density and color estimation network of the normative network to obtain the color c of the sampling point. Query the position of the sampling point p' in the density voxel grid and use multi-scale trilinear interpolation to obtain the density feature vector f σ , combine γ(p′), γ(N_ray_t) and f σ Splice together and feed into the density multilayer perceptron F σ In the equation, we obtain the density σ of the sampling points; Get the color c of N_sample sampling points on a ray i and density σ i , there are N_rays, where 0≤i≤N_sample; in the volume rendering field, the volume rendering formula is used to obtain the color of the pixel corresponding to the light Will And the true value C to make the loss Used to optimize the network model.
7. The method for dynamic scene reconstruction based on explicit and implicit hybrid coding according to claim 6, characterized in that: Also includes: Segmented training method; Filter out the sampling points that do not contribute to the target pixel color calculation. The specific steps are as follows: coarse stage training and fine stage training; The coarse stage training uses the first network parameters and directly interpolates from the voxel grid when estimating color and density, quickly recovering the rough geometry of the scene; After the coarse stage, by querying the density information of all current mesh vertices, during mask inference, the light weight U(h,t)σ(p′(h,t)) is less than α c =10 -3 The light rays are masked as empty spaces, and the minimum bounding box containing the target object is found in the non-empty points; the coarse stage grid is used for initialization in the fine stage training, and the second network parameters are used. Before predicting the color, additional filtering values are applied to remove the sampling points with cumulative transmittance U(h,t) less than the threshold α f =10 -4 point.
8. According to claim 1, the method for dynamic scene reconstruction based on explicit and implicit hybrid coding is characterized in that: Also includes the test steps: Given a test image sequence The camera pose is Time series of frames The test set consists of an image resolution of H×W, where N is a positive integer representing the number of RGB images contained in a scene in the test set; The test set image sequence, camera pose and time series are sent to the trained model, and the light emitted from each pixel of each camera pose is sampled in turn. The sampling points obtain the corresponding color and density in turn, and finally the volume rendering module is used to obtain the rendered image. The image sequence is used as the true value to evaluate the test results.
