A new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions
By introducing lightweight multi-layer perceptron and progressive model training into the new perspective synthesis method, combined with basis function baking and pruning technology, the problem of poor performance of the Gaussian splatter method in complex scenes is solved and rendering efficiency is improved. and image quality, achieving high frame rate real-time rendering.
Patent Information
- Application Number
- CN202410961505.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-18
AI Technical Summary
Existing new perspective synthesis methods based on Gaussian splashing perform poorly when processing complex information such as specular highlights and light refraction in complex scenes, and due to the sharp increase in the number of three-dimensional Gaussian kernels, storage requirements increase significantly, seriously affecting rendering efficiency.
Introducing a lightweight multi-layer perceptron to expand the spherical harmonics, using progressive model training methods and basis function baking and model pruning technology to re-model color information, optimize the Gaussian splatter model, reduce redundant Gaussian kernels, and improve rendering efficiency .
It significantly improves rendering quality and frame rate, reduces storage requirements, can better fit complex lighting effects, avoid over-fitting problems, and achieve high frame rate real-time rendering.
Smart Images

Figure CN118505541B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer graphics, and in particular to a new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions. Background Art
[0002] With the rapid development of applications such as virtual reality, augmented reality, and film and television production, people's demand for high-quality, real-time scene rendering is growing. New perspective synthesis technology uses existing photo or video information to generate pictures of scenes from different perspectives, allowing users to experience the virtual environment immersively. Therefore, a technology that can efficiently and high-quality complete new perspective synthesis is urgently needed in the industry.
[0003] In recent years, neural rendering has attracted much attention because of its ability to achieve extremely realistic new perspective image synthesis. Neural radiance fields achieved the most ideal results at the time by combining volume rendering with neural networks and using multi-layer perceptrons to learn and store scene information. A lot of subsequent work was done on this basis. However, the ray tracing method used by neural radiance fields requires neural network calculations at each sampling point, and the amount of calculations required to render a scene is very large. In response to this problem, many works have emerged to improve the efficiency of neural radiance fields.
[0004] Although the above methods achieve higher rendering quality and faster rendering speed, they do not fundamentally change the rendering process of the neural radiation field. Sample point queries are still required during ray tracing, which has unavoidable defects in terms of training time, memory usage, and computational complexity. Another point cloud rendering method in the field of new perspective synthesis technology can well represent discontinuous geometry in the scene and achieve high-speed rendering through rasterization. Although a series of works based on Gaussian splashing have achieved state-of-the-art results in both rendering results and rendering rates in ordinary scenes, there is still much room for improvement in special scenes with high-frequency color changes, and the expression of perspective-related information such as specular highlights is unsatisfactory. In addition, most of the methods based on Gaussian splashing adopt a segmentation strategy of three-dimensional Gaussian kernels. In order to adapt to the fine geometry and texture content of the scene, the number of Gaussian kernels increases rapidly. A large number of redundant Gaussian kernels leads to a significant increase in storage, which also seriously hinders rendering efficiency.
[0005] In summary, the existing Gaussian splattering-based methods cannot effectively process complex information such as specular highlights and light refraction, resulting in poor performance in complex scenes with these elements. At the same time, the existing Gaussian splattering-based methods adopt a periodic segmentation strategy, which greatly increases the disk space required for model storage and seriously affects rendering efficiency. Summary of the invention
[0006] One purpose of the present invention is to propose a new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions. The present invention remodels color information, introduces a lightweight multi-layer perceptron to expand spherical harmonics and proposes a progressive model training method to more accurately simulate complex visual effects. At the same time, basis function baking and model pruning technology are introduced to ensure rendering quality while significantly reducing storage requirements and improving rendering frame rate.
[0007] A new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions according to an embodiment of the present invention includes the following steps:
[0008] S1. Build a scene data set and obtain scene point cloud data;
[0009] S2. Using the scene point cloud data as the input of the improved Gaussian splash model, training the improved Gaussian splash model using a progressive model training method, and completing the optimization of the parameters of the improved Gaussian splash model;
[0010] S3, pruning the improved Gaussian splash model according to the Gaussian kernel importance evaluation index, obtaining a more compact improved Gaussian splash model through re-optimization and saving it;
[0011] S4, baking the trained improved Gaussian splash model to obtain a learnable basis function information graph;
[0012] S5. Based on the optimized improved Gaussian splash model and the baked learnable basis function information graph, the new perspective synthesis is completed and real-time rendering with high frame rate can be achieved.
[0013] Optionally, the S1 specifically includes:
[0014] S11. Take images at different angles of the scene with uniform lighting. If the material being taken is a video, convert it into an image first and then process it;
[0015] S12, use COLMAP to perform camera calibration on the collected images, obtain the camera intrinsic parameters and extrinsic parameters of each image, and determine the camera position and posture;
[0016] S13, finding the correspondence between adjacent images through a feature matching algorithm, and reconstructing the sparse point cloud and camera trajectory of the scene using a structure-from-motion algorithm, and the structure-from-motion algorithm will generate a sparse three-dimensional point cloud based on the feature matching results;
[0017] S14. Dense reconstruction is performed on the basis of the sparse three-dimensional point cloud to generate a high-density point cloud. The high-density point cloud and the image after camera calibration and feature matching are used as input of the improved Gaussian splash model.
[0018] Optionally, the improved Gaussian splash model remodels the color based on the original Gaussian splash model, converting the total color Divided into low-frequency colors learned by low-order spherical harmonics High-frequency colors learned with learnable basis functions :
[0019] ;
[0020] In low frequency colors For each Gaussian kernel, the color corresponds only to the direction vector For each channel, the low frequency color are modeled as a function:
[0021] ;
[0022] in, represents the difference between the center position of the 3D Gaussian kernel and the camera position, Representation function The input space, that is, the direction vector The domain of Representation function The input space of , that is, the set of real numbers where the function values lie;
[0023] Gaussian kernel corresponding to color:
[0024] ;
[0025] in, represents the basis functions of low-order spherical harmonics, are the coefficients corresponding to the basis functions;
[0026] In high frequency color part, using a multi-layer perceptron Define M learnable basis functions As an extension of low-frequency color information:
[0027] ;
[0028] Multilayer Perceptron The difference between the center position of the three-dimensional Gaussian kernel and the camera position is used as the input vector , considered as a two-dimensional vector , use the following formula to transform the input vector Perform position encoding:
[0029] ;
[0030] in, Represents the vector after position encoding, k represents an index, from 0 to , represents the number of levels or frequencies of the code, and Represents the input vector Perform sine and cosine transforms with a frequency of ;
[0031] Multilayer Perceptron Output an M-dimensional vector as M basis functions and introduce a set of coefficients , the high-frequency color information of each Gaussian kernel is calculated as follows:
[0032] ;
[0033] in, Represents high-frequency color information;
[0034] The number of coefficients of each Gaussian learnable basis function is 3M, corresponding to the three channels of red, green and blue;
[0035] A coefficient sharing strategy is adopted for low-order spherical harmonic basis functions and learnable basis functions:
[0036] ;
[0037] in, Represents the total color information, Represents low-order spherical harmonics and learnable basis functions The corresponding coefficients;
[0038] The shape definition and rasterization expression of the Gaussian kernel are:
[0039] ;
[0040] ;
[0041] where x is the location of the Gaussian kernel, It is the covariance matrix that controls the deformation of the Gaussian kernel, is the pixel color, is the color of the i-th Gaussian kernel, is the opacity of the ith Gaussian kernel, The index collection.
[0042] Optionally, the progressive model training method includes a perturbation strategy, an initialization strategy, and a resolution strategy;
[0043] The perturbation strategy uses a learnable basis function To enhance the expressive power of each Gaussian kernel, a perturbation strategy that decays during training is introduced, which adds random noise to the direction vector:
[0044] ;
[0045] ;
[0046] in, represents the number of times added to the input vector in the i-th training iteration The linear decay noise in represents Gaussian distribution, with 0 as the mean. is the covariance matrix, is an empirically determined scaling factor that adjusts the noise amplitude, Indicates the total number of training iterations to which the strategy is applied;
[0047] The initialization strategy includes setting the initial threshold With soft threshold , the learnable basis functions When the number of iterations is greater than the initial threshold After that, the weight is in the soft threshold. Previously, it grew linearly:
[0048] ;
[0049] in, is the current iteration number.
[0050] The resolution strategy is to use low-resolution images obtained by downsampling at the beginning of training and gradually increase the resolution:
[0051] ;
[0052] in, Represents the resolution at the i-th iteration, and the resolution increases gradually in each iteration until the final resolution is reached , and Represent the initial resolution and final resolution respectively. is the current iteration number, It is controlled from arrive The threshold for the transition speed.
[0053] Optionally, a new loss function is set in S2, and the concept of blocks is introduced on the original Gaussian splash loss function. The training view image is divided into multiple blocks, and the rendered blocks are compared with the corresponding positions of the real image to obtain the block loss. The block loss is combined with the global loss as the final loss:
[0054] ;
[0055] in, represents the total loss function, which is used to measure the difference between the predicted image and the real image. and represents the weight coefficient of the loss function, represents the number of image blocks, that is, the total number of blocks into which the training image is divided. is a block loss, is the global loss, and the loss is calculated as:
[0056] ;
[0057] in, It represents the unified calculation formula of global loss and local block loss, which is used to measure the loss of two different scales of image prediction quality. Represents the absolute error between the predicted image and the true image, Represents the structural similarity index, which is used to measure the visual similarity between two images. Represents the weight coefficient.
[0058] Optionally, the importance evaluation index evaluates the contribution of each Gaussian kernel to each pixel in the training image and summarizes it, cuts the Gaussian kernel according to the total score, and determines the importance of each ray in T training images. Whether the three-dimensional Gaussian :
[0059] ;
[0060] Among them, H and W represent the height and width of the image respectively. If you use , considering the current Gaussian The weight in the final color, Express All Gaussian points with occlusion effects, the weights are expressed as Opacity Use The product of the calculated transmittance.
[0061] Optionally, the learnable basis function Calculated by a multi-layer perceptron, the basis functions are baked into a learnable basis function information graph, and the input three-dimensional direction vector Convert to Zenith Angle With azimuth The representation form is, , , determine the resolution of the learnable basis function information graph, and adjust the zenith angle according to the resolution With azimuth Uniform sampling, pre-calculating the trained multi-layer perceptron, storing the results in M single-channel images, the value of each pixel in the m-th baked image for:
[0062] ;
[0063] in, is the m-th dimension of the learnable basis function of the multilayer perceptron output, and the baked image size is ;
[0064] After baking is completed, real-time rendering is performed, the baked data is loaded into memory, and passed to the GPU for real-time rendering. A learnable basis function supersampling strategy is adopted, and each pixel approximation:
[0065] ;
[0066] ;
[0067] ;
[0068] in, Represents the supersampling factor, which indicates the number of sampling points performed in the unit pixel area. and Indicates the location of the supersampling point.
[0069] The beneficial effects of the present invention are:
[0070] Compared with other works, the learnable basis function part of the present invention can better fit the complex lighting in the scene. The progressive model training method can ensure the stability of the model in the early stage of training and effectively avoid the overfitting problem caused by the excessive performance of the learnable basis function. The basis function baking technology and pruning technology can significantly reduce the storage requirements and increase the frame rate of real-time rendering while ensuring the rendering quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0072] Figure 1 This is a general framework flow chart of a new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions proposed by the present invention;
[0073] Figure 2A schematic diagram of learnable basis function calculation for a new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions proposed by the present invention;
[0074] Figure 3 A schematic diagram of learnable basis function supersampling of a new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions proposed by the present invention;
[0075] Figure 4 This is a Gaussian kernel importance evaluation index graph of a new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions proposed by the present invention. DETAILED DESCRIPTION
[0076] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.
[0077] refer to Figure 1 , a new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions, including the following steps:
[0078] S1. Build a scene data set and obtain scene point cloud data;
[0079] S2. Using the scene point cloud data as the input of the improved Gaussian splash model, training the improved Gaussian splash model using a progressive model training method, and completing the optimization of the parameters of the improved Gaussian splash model;
[0080] The progressive model training method is as follows:
[0081] S21, setting the initial threshold and soft threshold, disturbance threshold, and pixel threshold.
[0082] S22. When the number of iterations is less than the initial threshold, only low-order spherical harmonics are involved in color calculation to construct the low-frequency information of the model.
[0083] S23. When the number of iterations is greater than or equal to the initial threshold and less than the soft threshold, the learnable basis function is added to the calculation, and the proportion is gradually increased from zero to gradually build high-frequency information.
[0084] S24. When the number of iterations is greater than or equal to the soft threshold, the proportion of the learnable basis function is the same as the proportion of the low-order spherical harmonic function, and the low-frequency and high-frequency information is continuously improved.
[0085] S25. When the number of iterations is greater than or equal to the initial threshold and less than the disturbance threshold, a disturbance factor is added to the direction vector of the multilayer perceptron in the input model, and the disturbance factor gradually decreases to zero.
[0086] S26: When the number of iterations is less than the pixel threshold, use the downsampled low-resolution image, and gradually increase the resolution as the number of iterations increases, reaching the original image resolution at the pixel threshold.
[0087] S3, pruning the improved Gaussian splash model according to the Gaussian kernel importance evaluation index, obtaining a more compact improved Gaussian splash model through re-optimization and saving it;
[0088] S31. According to the Gaussian kernel importance evaluation index proposed in the present invention, the contribution value of each Gaussian kernel to each pixel in the training image is evaluated, and then the cumulative contribution of each Gaussian kernel to the entire data set is determined.
[0089] S32. Keep the Gaussian kernels with larger cumulative contributions, and remove the Gaussian kernels with smaller cumulative contributions.
[0090] S33, re-optimizing Gaussian parameters and multilayer perceptron to restore lost information, the optimization process is similar to that in step S24 when the number of iterations is greater than the soft threshold.
[0091] S4, baking the trained improved Gaussian splash model to obtain a learnable basis function information graph;
[0092] S41, setting the image resolution and supersampling ratio for baking the improved Gaussian splash model;
[0093] S42, reading the trained improved Gaussian splash model, and calculating the basis function output value at each super-resolution pixel according to the set resolution and super-sampling ratio, where each pixel corresponds to the learnable basis function output value in a certain direction;
[0094] S43, downsampling the obtained super-resolution baked image to obtain a learnable basis function information graph at a target resolution;
[0095] S5. Based on the optimized improved Gaussian splash model and the baked learnable basis function information graph, the new perspective synthesis is completed and real-time rendering with high frame rate can be achieved.
[0096] S51, read the Gaussian model parameters and the learnable basis function information graph.
[0097] S52. Obtain a learnable basis function value of the target Gaussian kernel.
[0098] S53. The coefficients of each Gaussian kernel are used for calculating the spherical harmonic function and the learnable basis function at the same time to obtain the final color of the Gaussian kernel.
[0099] S54, real-time rendering is done using the same rasterization method as the original Gaussian splatter.
[0100] In this implementation, S1 specifically includes:
[0101] S11. To achieve the new perspective synthesis task of the target scene, you first need to shoot a series of high-quality images at different angles of the scene to ensure that all details and perspectives of the scene are covered, the light is as uniform as possible during shooting, and the dynamic blur in the image is minimized. If the material shot is a video, it needs to be converted into a photo before processing;
[0102] S12, use COLMAP to perform camera calibration on the collected images, obtain the camera intrinsic parameters and extrinsic parameters of each image, and determine the camera position and posture;
[0103] S13, finding the correspondence between adjacent images through a feature matching algorithm, and reconstructing the sparse point cloud and camera trajectory of the scene using a structure-from-motion algorithm, and the structure-from-motion algorithm will generate a sparse three-dimensional point cloud based on the feature matching results;
[0104] S14. Dense reconstruction is performed on the basis of the sparse three-dimensional point cloud to generate a high-density point cloud. The high-density point cloud and the image after camera calibration and feature matching are used as input of the improved Gaussian splash model.
[0105] In this embodiment, the improved Gaussian splash model remodels the color based on the original Gaussian splash model, and the total color Divided into low-frequency colors learned by low-order spherical harmonics High-frequency colors learned with learnable basis functions :
[0106] ;
[0107] In low frequency colors For each Gaussian kernel, the color corresponds only to the direction vector For each channel, the low frequency color are modeled as a function:
[0108] ;
[0109] in, represents the difference between the center position of the 3D Gaussian kernel and the camera position, Representation function The input space, that is, the direction vector The domain of Representation function The input space of , that is, the set of real numbers where the function values lie;
[0110] Gaussian kernel corresponding to color:
[0111] ;
[0112] in, represents the basis functions of low-order spherical harmonics, are the coefficients corresponding to the basis functions;
[0113] In high frequency color part, using a multi-layer perceptron Define M learnable basis functions As an extension of low-frequency color information:
[0114] ;
[0115] Multilayer Perceptron The difference between the center position of the three-dimensional Gaussian kernel and the camera position is used as the input vector , considered as a two-dimensional vector , use the following formula to transform the input vector Perform position encoding:
[0116] ;
[0117] in, Represents the vector after position encoding, k represents an index, from 0 to , represents the number of levels or frequencies of the code, and Represents the input vector Perform sine and cosine transforms with a frequency of ;
[0118] Multilayer Perceptron Output an M-dimensional vector as M basis functions and introduce a set of coefficients , the high-frequency color information of each Gaussian kernel is calculated as follows:
[0119] ;
[0120] in, Represents high-frequency color information;
[0121] The number of coefficients of each Gaussian learnable basis function is 3M, corresponding to the three channels of red, green and blue;
[0122] A coefficient sharing strategy is adopted for low-order spherical harmonic basis functions and learnable basis functions:
[0123] ;
[0124] in, Represents the total color information, Represents low-order spherical harmonics and learnable basis functions The corresponding coefficients;
[0125] The shape definition and rasterization expression of the Gaussian kernel are:
[0126] ;
[0127] ;
[0128] where x is the location of the Gaussian kernel, It is the covariance matrix that controls the deformation of the Gaussian kernel, is the pixel color, is the color of the i-th Gaussian kernel, is the opacity of the ith Gaussian kernel, is the index collection, It is the cumulative opacity factor, which represents the cumulative product of transparency from the 1st to the i-1th Gaussian kernels, and is used to adjust the contribution of each Gaussian kernel to the final pixel color.
[0129] In this implementation, the progressive model training method includes a perturbation strategy, an initialization strategy, and a resolution strategy;
[0130] This paper uses a learnable basis function to enhance the expressive power of each Gaussian kernel. For simple scenes, there is an overfitting phenomenon, which will lead to abnormal ribbon effects. Therefore, a perturbation strategy that decays during training is introduced. This strategy adds random noise to the direction vector to enhance the robustness of the network and ensure that the output at different viewing angles is more reasonable and continuous:
[0131] ;
[0132] ;
[0133] in, represents the number of times added to the input vector in the i-th training iteration The linear decay noise in represents Gaussian distribution, with 0 as the mean. is the covariance matrix, is an empirically determined scaling factor that adjusts the noise amplitude, Indicates the total number of training iterations to which the strategy is applied;
[0134] The perturbation strategy converts the input in a specific direction into a blurred range, allowing the model to maintain smooth color transitions at different viewing angles, thereby reducing sudden changes and unnatural color jumps in the rendering results, and also helps reduce overfitting.
[0135] In order to avoid the instability of the initial training caused by the random initialization of the multilayer perceptron with learnable basis functions, the present invention has formulated an initialization strategy. With soft threshold , the learnable basis function can be used when the number of iterations is greater than the initial threshold After that, it participates in rendering, and its weight is in the soft threshold Previously, it grew linearly:
[0136] ;
[0137] in, is the current iteration number.
[0138] In order to make the low-frequency color part responsible for the spherical harmonic function pay more attention to the low-frequency color information in the early stage of training, the present invention uses the low-resolution image obtained by downsampling in the early stage of training and gradually improves the resolution:
[0139] ;
[0140] in, Represents the resolution at the i-th iteration, and the resolution increases gradually in each iteration until the final resolution is reached , and Represent the initial resolution and final resolution respectively. is the current iteration number, It is controlled from arrive The threshold for the transition speed.
[0141] This strategy enables the model to quickly learn low-frequency information, leaving sufficient time for learning high-frequency information. Due to the low resolution in the early stage, the model training speed is greatly accelerated.
[0142] In this implementation, the present invention designs a new loss function based on the model characteristics, introduces the concept of blocks on the original Gaussian splash loss function, and divides the training view image into multiple blocks. The present invention compares these rendered blocks with the corresponding positions of the real image to obtain the block loss. The block loss is then combined with the global loss as the final loss:
[0143] ;
[0144] in, represents the total loss function, which is used to measure the difference between the predicted image and the real image. and represents the weight coefficient of the loss function, represents the number of image blocks, that is, the total number of blocks into which the training image is divided. is a block loss, is the global loss, and the loss is calculated as:
[0145] ;
[0146] in, It represents the unified calculation formula of global loss and local block loss, which is used to measure the loss of two different scales of image prediction quality. Represents the absolute error between the predicted image and the true image, Represents the structural similarity index, which is used to measure the visual similarity between two images. Represents the weight coefficient.
[0147] In this embodiment, in order to solve the problem of a large number of redundant Gaussian kernels caused by the periodic segmentation strategy adopted by the original Gaussian splashing to fit complex scenes, the present invention proposes a Gaussian kernel importance evaluation index, such as Figure 4 This metric evaluates the contribution of each Gaussian kernel to each pixel in the training image and summarizes it, cuts the Gaussian kernel according to the total score, and determines the contribution of each ray in T training images. Whether the three-dimensional Gaussian :
[0148] ;
[0149] Among them, H and W represent the height and width of the image respectively. If you use , considering the current Gaussian The weight in the final color, Express All Gaussian points with occlusion effects, the weights are expressed as Opacity Use The product of the calculated transmittance.
[0150] After pruning redundant Gaussian kernels according to the above importance evaluation indicators, the model needs to be re-optimized to restore the lost information. This process is similar to the previous training method. Through this method, users can also control the number of Gaussian kernels according to their needs to achieve a balance between memory consumption and model performance.
[0151] In this embodiment, the basis function can be learned Calculated by a multi-layer perceptron, in order to avoid the real-time calculation of the multi-layer perceptron affecting the rendering rate, the basis function is baked into a learnable basis function information graph, the input three-dimensional direction vector Convert to Zenith Angle With azimuth The representation form is, , , determine the resolution of the learnable basis function information graph, and adjust the zenith angle according to the resolution With azimuth Uniform sampling, pre-calculating the trained multi-layer perceptron, storing the results in M single-channel images, the value of each pixel in the m-th baked image for:
[0152] ;
[0153] in, is the m-th dimension of the learnable basis function of the multilayer perceptron output, and the baked image size is ;
[0154] After baking is completed, real-time rendering is performed. The present invention loads the baking data into the memory and passes it to the GPU for real-time rendering. In order to minimize the loss of quality, the present invention adopts a learnable basis function supersampling strategy, such as Figure 3 Each pixel approximation:
[0155] ;
[0156] ;
[0157] ;
[0158] in, Represents the supersampling factor, which indicates the number of sampling points performed in the unit pixel area. and Indicates the location of the supersampling point.
[0159] Through this baking strategy, the present invention can achieve high-speed real-time rendering, while the impact on rendering quality is almost negligible.
[0160] Embodiment 1:
[0161] Taking CD in Shiny dataset as an example, the present invention performs a new perspective synthesis task on it.
[0162] Read photos from the CD dataset, use COLMAP to calibrate the camera, find the correspondence between adjacent images through the feature matching algorithm, use the SfM algorithm to reconstruct the sparse point cloud and camera trajectory of the scene, and perform dense reconstruction on the sparse point cloud to obtain a high-density point cloud.
[0163] The high-density point cloud and data set photos are input into the model, and the model initializes the position of the Gaussian kernel according to the point cloud position.
[0164] The model is trained using the progressive model training method proposed in the present invention to optimize the parameters. Set to 3000, soft threshold Set to 8000, the perturbation strategy threshold Set to 20000, the resolution policy threshold Set to 20000.
[0165] The model controls the shape and position of the Gaussian kernel through coordinates and covariance:
[0166] ;
[0167] The difference between the camera position and the Gaussian kernel position is encoded as a direction vector and then input into the multilayer perceptron to obtain the learnable basis function:
[0168] ;
[0169] in, The value of is set to 16. Multiply the Gaussian kernel coefficient with the spherical harmonic function to obtain the low-frequency color, multiply the Gaussian kernel coefficient with the learnable basis function to obtain the high-frequency color, and superimpose the two as the final color:
[0170] ;
[0171] in, The value of is set to 4.
[0172] The Gaussian splash method is used to rasterize and render the rendered image. Image pixel color calculation method:
[0173] ;
[0174] Calculate the block loss and global loss of the rendered image and the real image, and add them up as the final loss:
[0175] ;
[0176] in, The value of is set to 0.2.
[0177] The loss is back-propagated to adjust the network loss. The total number of network training times is set to 30,000, and the learning rate of the multilayer perceptron with learnable basis functions is 0.001.
[0178] Prune the trained model.
[0179] Calculate the Gaussian kernel importance evaluation index for each Gaussian kernel:
[0180] ;
[0181] The importance evaluation indicators are sorted in ascending order, and 60% of the non-important Gaussian kernels are eliminated.
[0182] Retrain the model for 10,000 epochs. No progressive model training is required.
[0183] Save the model.
[0184] Bake the re-optimized model and output it as 16 images Resolution image.
[0185] Call the renderer to read the model file and the baked learnable basis function information graph for real-time rendering to complete the new perspective synthesis task.
[0186] Read information such as Gaussian kernel position, covariance, coefficients, and learnable basis function information graph.
[0187] Calculate the difference between the camera position and the position of each Gaussian kernel, and convert from a three-dimensional direction vector to a two-dimensional zenith angle With azimuth The method of representation.
[0188] Supersampling obtains the learnable basis function value:
[0189] ;
[0190] The Gaussian kernel coefficient is multiplied by the learnable basis function to obtain the high-frequency color, and the two are superimposed as the final color.
[0191] ;
[0192] The Gaussian splash method is used for rasterization and rendering, and real-time rendering is performed. Image pixel color calculation method:
[0193] ;
[0194] The final results are compared with the results of advanced methods as shown in Table 1:
[0195] Table 1 Comparison data between the final results and the results of advanced methods
[0196]
[0197] As can be seen from Table 1 above, the peak signal-to-noise ratio of the method of the present invention is 35.28, which is better than 3DGS (30.93) and Scaffold-GS (34.21), indicating that the method of the present invention has the best performance in image quality. The memory usage of the method of the present invention is 77MB, which is significantly lower than 3DGS (159MB) and Scaffold-GS (120MB), indicating that the method of the present invention is more memory-efficient. The number of frames per second of the method of the present invention is 402, which is much higher than 3DGS (97) and Scaffold-GS (239), showing the great advantage of the method of the present invention in processing speed. In summary, the method of the present invention is superior to the 3DGS and Scaffold-GS methods in image quality, memory usage and processing speed.
[0198] Embodiment 2:
[0199] This method has been comprehensively experimented on different types of datasets, such as the Shiny dataset, the Mip-Nerf360 dataset, and the Tanks&Temple dataset, and has achieved satisfactory results. The higher the peak signal-to-noise ratio (PSNR), the better the effect, the higher the structural similarity index (SSIM), the better the effect, and the lower the learning-perceptual image block similarity (LPIPS), the better the effect. The data are shown in Table 2-4 below:
[0200] Table 2 Comparison results of this method and advanced methods on Shiny dataset
[0201]
[0202] Table 3 Comparison results of this method and advanced methods on Mip-Nerf360 dataset
[0203]
[0204] Table 4 Comparison results of this method with advanced methods on the Tanks&Temples dataset
[0205]
[0206] As can be seen from Tables 2-4 above, in terms of PSNR (peak signal-to-noise ratio): the higher the PSNR value, the better the image quality. The method of the present invention shows a high PSNR value on all data sets. In terms of SSIM (structural similarity index): the higher the SSIM value, the better the image structure similarity. The method of the present invention performs well on the Shiny and Mip-Nerf360 data sets. In terms of LPIPS (learning perceptual image block similarity): the lower the LPIPS value, the better the image quality. The method of the present invention has a lower LPIPS value on all data sets. FPS (frames per second): the higher the FPS value, the faster the processing speed. The FPS of the method of the present invention on the Shiny data set is as high as 357. In terms of MEM (memory usage): the lower the MEM value, the less memory is used. The memory usage of the method of the present invention on the Shiny data set is only 119MB.
[0207] In summary, the method of the present invention shows good image quality, high processing speed and low memory usage on multiple data sets.
[0208] The present invention proposes a new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions. The learnable basis function part of the method can better fit the complex lighting in the scene compared with other works; the progressive model training method proposed in the present invention can ensure the stability of the model in the early stage of training and effectively avoid the overfitting problem caused by the excessive performance of the learnable basis function; the basis function baking technology and pruning technology proposed in the present invention can significantly reduce the storage requirements of the model and increase the frame rate of real-time rendering while ensuring the rendering quality.
[0209] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions, characterized in that: The steps include: S1. Build a scene data set and obtain scene point cloud data; S2. Using the scene point cloud data as the input of the improved Gaussian splash model, training the improved Gaussian splash model using a progressive model training method, and completing the optimization of the parameters of the improved Gaussian splash model; S3, pruning the improved Gaussian splash model according to the Gaussian kernel importance evaluation index, obtaining a more compact improved Gaussian splash model through re-optimization and saving it; S4, baking the trained improved Gaussian splash model to obtain a learnable basis function information graph; S5. Based on the optimized improved Gaussian splash model and the baked learnable basis function information graph, the new perspective synthesis is completed and real-time rendering with high frame rate can be achieved; The improved Gaussian splash model remodels the color based on the original Gaussian splash model, dividing the total color C into low-frequency colors learned by low-order spherical harmonics High-frequency colors learned with learnable basis functions : ; In low frequency colors For each Gaussian kernel, the corresponding color is only related to the direction vector v, and the low-frequency color of each channel are modeled as a function: ; Among them, v represents the difference between the center position of the three-dimensional Gaussian kernel and the camera position, Representation function The input space of , that is, the domain of the direction vector v, Representation function The output space of , that is, the set of real numbers where the function value lies; Gaussian kernel corresponding to color: ; in, represents the basis functions of low-order spherical harmonics, are the coefficients corresponding to the basis functions; In high frequency color part, using a multi-layer perceptron Define M learnable basis functions As an extension of low-frequency color information: ; Multilayer Perceptron The difference between the center position of the three-dimensional Gaussian kernel and the camera position is taken as the input vector v, which is regarded as a two-dimensional vector , the input vector v is positionally encoded using the following formula: ; in, Represents the vector after position encoding, k represents an index, from 0 to , L represents the number of levels or frequencies of coding, and Represents the sine and cosine transform of the input vector v, with a frequency of ; Multilayer Perceptron Output an M-dimensional vector as M basis functions and introduce a set of coefficients , the high-frequency color information of each Gaussian kernel is calculated as follows: ; in, Represents high-frequency color information; The number of coefficients of each Gaussian learnable basis function is 3M, corresponding to the three channels of red, green and blue; A coefficient sharing strategy is adopted for low-order spherical harmonic basis functions and learnable basis functions: ; in, Represents the total color information, Represents low-order spherical harmonics and learnable basis functions The corresponding coefficients; The shape definition and rasterization expression of the Gaussian kernel are: ; ; where x is the location of the Gaussian kernel, is the covariance matrix that controls the deformation of the Gaussian kernel, C is the pixel color, is the color of the i-th Gaussian kernel, is the opacity of the i-th Gaussian kernel, N is the index set, is the cumulative transparency factor, which represents the cumulative product of transparency from the 1st to the i-1th Gaussian kernels, and is used to adjust the contribution of each Gaussian kernel to the final pixel color; The progressive model training method includes a perturbation strategy, an initialization strategy, and a resolution strategy; The perturbation strategy uses a learnable basis function To enhance the expressive power of each Gaussian kernel, a perturbation strategy that decays during training is introduced, which adds random noise to the direction vector: ; ; in, represents the linearly decaying noise added to the input vector v at the i-th training iteration, represents Gaussian distribution, 0 is the mean, I is the covariance matrix, is an empirically determined scaling factor that adjusts the noise amplitude, Indicates the total number of training iterations to which the strategy is applied; The initialization strategy includes setting the initial threshold With soft threshold , the learnable basis functions When the number of iterations is greater than the initial threshold After that, the weight is in the soft threshold. Previously, it grew linearly: ; Where i is the current iteration number; The resolution strategy is to use low-resolution images obtained by downsampling at the beginning of training and gradually increase the resolution: ; in, Represents the resolution at the i-th iteration, and the resolution increases gradually in each iteration until the final resolution is reached , and Represent the initial resolution and final resolution respectively, i is the current iteration number, It is controlled from arrive Threshold value for transition speed; In S2, a new loss function is set, and the concept of block is introduced on the original Gaussian splash loss function. The training view image is divided into multiple blocks, and the rendered blocks are compared with the corresponding positions of the real image to obtain the block loss. The block loss is combined with the global loss as the final loss: ; Among them, L represents the total loss function, which is used to measure the difference between the predicted image and the real image. and represents the weight coefficient of the loss function, represents the number of image blocks, that is, the total number of blocks into which the training image is divided. is a block loss, is the global loss, and the loss is calculated as: ; in, It represents the unified calculation formula of global loss and local block loss, which is used to measure the loss of two different scales of image prediction quality. Represents the absolute error between the predicted image and the true image, Represents the structural similarity index, which is used to measure the visual similarity between two images. represents the weight coefficient; The importance evaluation index will evaluate the contribution of each Gaussian kernel to each pixel in the training image and summarize it, cut the Gaussian kernel according to the total score, and determine the importance of each ray in T training images. Whether the three-dimensional Gaussian : ; Among them, H and W represent the height and width of the image respectively. If you use , considering the current Gaussian The weight in the final color, Express All Gaussian points with occlusion effects, the weights are expressed as Opacity Use The product of the calculated transmittances; The learnable basis functions Calculated by a multi-layer perceptron, the basis function is baked into a learnable basis function information graph, and the input three-dimensional direction vector v is converted into the zenith angle With azimuth The representation form is, , , determine the resolution of the learnable basis function information graph, and adjust the zenith angle according to the resolution With azimuth Uniform sampling, pre-calculating the trained multi-layer perceptron, storing the results in M single-channel images, the value of each pixel in the m-th baked image for: ; in, is the m-th dimension of the learnable basis function of the multilayer perceptron output, and the baked image size is ; After baking is completed, real-time rendering is performed, the baked data is loaded into memory, and passed to the GPU for real-time rendering. A learnable basis function supersampling strategy is adopted, and each pixel approximation: ; ; ; Among them, S represents the supersampling factor, which represents the number of sampling points performed in the unit pixel area. and Indicates the location of the supersampling point.
2. According to claim 1, a new perspective synthesis method based on Gaussian splashing and fusion of learnable basis functions is characterized in that: The S1 specifically includes: S11. Take images at different angles of the scene with uniform lighting. If the material being taken is a video, convert it into an image first and then process it; S12, use COLMAP to perform camera calibration on the collected images, obtain the camera intrinsic parameters and extrinsic parameters of each image, and determine the camera position and posture; S13, finding the correspondence between adjacent images through a feature matching algorithm, and reconstructing the sparse point cloud and camera trajectory of the scene using a structure-from-motion algorithm, and the structure-from-motion algorithm will generate a sparse three-dimensional point cloud based on the feature matching results; S14. Dense reconstruction is performed on the basis of the sparse three-dimensional point cloud to generate a high-density point cloud. The high-density point cloud and the image after camera calibration and feature matching are used as input of the improved Gaussian splash model.
