A point cloud rendering enhancement method based on knowledge distillation
By using knowledge distillation technology to train a point cloud renderer with the rendering results of neural radiation fields as supervised information, the problem of poor point cloud rendering effect is solved, and high-quality point cloud rendering effect and improved computational efficiency are achieved, meeting the rendering needs of virtual reality and augmented reality.
Patent Information
- Application Number
- CN202310858434.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-13
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-07-13
AI Technical Summary
Existing neural radiation field technology cannot be directly used for point cloud rendering, resulting in poor point cloud rendering effects that are difficult to meet the high-quality rendering requirements of fields such as computer graphics, virtual reality, and augmented reality.
By employing knowledge distillation technology, neural radiation fields are used as teacher models, and their rendering results are used as supervisory information. Differentiable point cloud renderers are trained through knowledge distillation, thereby improving the quality and efficiency of point cloud rendering.
By employing knowledge distillation, the image quality of point cloud rendering is improved, noise and distortion are reduced, meeting the high-quality rendering requirements of virtual reality and augmented reality systems, while also increasing computational efficiency.
Smart Images

Figure CN116863053B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of point cloud rendering, specifically relating to a point cloud rendering enhancement method based on knowledge distillation. Background Technology
[0002] Point cloud rendering enhancement refers to using a series of techniques to make point cloud data appear more realistic and vivid in three-dimensional space. Point clouds are three-dimensional geometric data composed of a large number of point coordinates, often used to describe the shape, surface, and texture of objects, and are widely used in computer graphics, robot vision, map modeling, and other fields.
[0003] Neural Radiance Field (NeRF) is an emerging technique for generating realistic 3D images. It generates high-quality images by training a deep neural network to predict the radiation intensity and color at any point in space. Compared to traditional rendering techniques, NeRF offers greater flexibility and realism. Due to its ability to generate realistic lighting effects and details, it is widely used in fields such as computer graphics, virtual reality, and augmented reality.
[0004] However, neural radiation fields cannot be directly input into point clouds for rendering. To leverage the advantages of neural radiation fields for point cloud rendering enhancement tasks, we introduce a novel knowledge distillation method. Knowledge distillation is a model compression technique in machine learning that transfers knowledge from a complex model (teacher model) to a simpler model (student model) to achieve model compression and acceleration. The basic idea of knowledge distillation is to learn a relatively simple model with fewer parameters, but this model can approximate the prediction results of the original complex model. Knowledge distillation typically includes the following steps: Training the teacher model: Using a large-scale dataset and computational resources, a high-performance complex model is trained as the teacher model. Defining the loss function: A loss function is defined using the prediction results of the teacher model and the student model. For example, common loss functions such as mean squared error or cross-entropy can be used. Training the student model: The student model is trained using a large-scale dataset and the defined loss function, so that the prediction results of the student model are as close as possible to the prediction results of the teacher model. Summary of the Invention
[0005] The purpose of this invention is to address the shortcomings of existing technologies by providing a point cloud rendering enhancement method based on knowledge distillation.
[0006] The technical solution adopted by this invention to solve its technical problem includes the following steps:
[0007] Step 1: Construct and train the neural radiation field; input the image sequence, reconstruct it using the trained neural radiation field, and obtain the implicit representation of the scene;
[0008] Step 2: Train a differentiable point cloud renderer. During the training process, the obtained implicit representation of the scene is used as prior knowledge. Knowledge distillation is used to correct the Z-buffer, thereby obtaining better rendering results.
[0009] Furthermore, step 1 is implemented as follows:
[0010] 1-1. The neural network f(.) in the neural radiation field consists of 13 layers of sensory mechanisms, and the input image sequence is... Where θ, This refers to the direction of light projection, (x, y, z) is the three-dimensional position of the sampling point; the neural network f(.) is used to predict (c, σ), where c is a three-dimensional vector representing the RGB color value, and σ is the volume density;
[0011]
[0012] For each input image, several rays are projected, and several sampling points are sampled on each ray. For each sampling point, the color and density are predicted using formula (1).
[0013] 1-2. Based on the color and volume density of each sampling point, the image rendered by the neural network is obtained using the volume rendering formula;
[0014]
[0015] in, This is the image obtained after volume rendering, where N is the number of sampling points; δ i It is the distance from the i-th sampling point to the (i+1)-th sampling point, σ i T represents the volume density estimated by the neural network f(.) in step 1-1 for the i-th sampling point; i c represents an intermediate variable, and its object representation is transmittance. i This represents the color obtained by the i-th sampling point through the neural network f(.) in step 1-1;
[0016] get Then, the loss function LOSS is constructed using the truth value C(r):
[0017]
[0018] 1-3 Before starting training, set (x, y, z) and The following positional encoding is then input into the neural network f(.) for training;
[0019] γ(p)=(sin(2 0πp), cos(2 0 πp), ..., sin(2 M-1 πp), cos(2 M-1 πp)) (4)
[0020] Where p represents the position of the input (x, y, z), and M represents the degree of position encoding, which is a hyperparameter. In practice, M = 10.
[0021] 1-4. Train the neural network f(.) using a public dataset to obtain the implicit representation of the scene in f(.);
[0022] After training 1-5 is completed, the location of the point with the highest volume density is selected through the neural radiation field, and this location is used as the depth for subsequent knowledge distillation.
[0023] Furthermore, step 2 is implemented as follows:
[0024] 2-1. Obtain a rasterized color image and Z-buffer from the point cloud, and use a 5-layer perceptron to predict a high-dimensional vector related to color by passing the light direction and Z-buffer together.
[0025]
[0026] Where g(.) represents a 5-layer perceptron, L is a color-encoded feature vector, and the dimension of L is C; for an input H×W Z-buffer, its H×W×C color embedding representation can be obtained.
[0027] 2-2. After obtaining the color embedding representation, a U-Net network is used to predict the H×W×3 image result y, and the result is compared with the ground truth using the loss function L. style ;
[0028] L style =λ c L content +λ f L feat +λ TV L TV (6)
[0029]
[0030]
[0031]
[0032] Where, λ c , λ f , λ TV There are three hyperparameters, namely 1, 0.02, and 10. -6In formulas (7) and (8), K j H j W j These represent the number of channels, height, and width of the image, respectively; in formula (9), x i,j This represents the pixel value in row i and column j of the image; L TV The regularization term ensures a smooth network output space; Gram(.) represents the encoding of the Gram matrix. This represents the output of U-Net;
[0033] 2-3. After the neural radiation field is trained and the differentiable point cloud renderer is built, the high-quality Z-Buffer obtained from the neural radiation field is used as supervision by knowledge distillation technology. It is then subjected to L2 loss with the Z-Buffer obtained by rasterization of the differentiable point cloud renderer and added to the final loss function L.
[0034] L = L styl e+ λ d L d (10)
[0035]
[0036] The hyperparameters are chosen as follows: λ c =1,λ style =0.01, λ TV =10 -6 , λ d =1; After training using knowledge distillation, the point cloud renderer can be used directly for rendering without the need for neural radiation fields.
[0037] Features and beneficial effects of the present invention:
[0038] This invention implements a point cloud rendering enhancement method based on knowledge distillation, which is of great significance in enhancing the image quality of point cloud rendering. In the implementation of this invention, it is necessary to acquire a color image aligned with the point cloud. After obtaining the aligned image, this invention further utilizes knowledge distillation to optimize the point cloud data, thereby improving rendering effects and quality. Specifically, this invention uses a high-quality Z-Buffer generated from previously learned neural radiation fields as a high-quality prior to correct the weights of the differentiable point cloud renderer, reducing noise and other distortion effects in the rendering, thus generating a more accurate and detailed rendered image. Through these improvements, this invention can improve rendering effects and quality while preserving the original information of the point cloud, thereby better meeting the needs of downstream tasks such as VR / AR systems. Attached Figure Description
[0039] Figure 1The neural radiation field technology used in this invention;
[0040] Figure 2 This is the differentiable point cloud renderer used in this invention;
[0041] Figure 3 This is a schematic diagram of the overall process of the invention;
[0042] Figure 4 This is a schematic diagram of an embodiment of the present invention. Detailed Implementation
[0043] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0044] This invention aims to provide a useful solution. To this end, the objective of this invention is to enhance the quality of point cloud rendering through knowledge distillation. To achieve this objective, firstly, multi-view images aligned with the point cloud are input, and an implicit representation of the scene is obtained using neural radiation field technology. Then, an artificial neural network for rendering the point cloud is constructed. Finally, using knowledge distillation, the high-quality rasterized image rendered by neural radiation field technology is used as supervised knowledge to train the artificial neural network for rendering the point cloud.
[0045] This invention uses NeRF as the teacher model and a differentiable point cloud renderer as the student model. The representation of the neural radiation field is used as prior knowledge and fused into the point cloud rendering process through knowledge distillation. This approach significantly improves the image quality of the rendered point cloud while also enhancing computational efficiency. This method combines the advantages of neural radiation fields and point cloud rendering, helping to better meet the needs of downstream tasks.
[0046] This invention discloses a point cloud rendering enhancement method based on knowledge distillation, comprising the following steps:
[0047] Step 1: Construct and train the neural radiation field, such as Figure 1 As shown;
[0048] 1-1、 Figure 1 Here, f(.) represents a neural network, specifically composed of 13 layers of perceptrons. The input is... Where θ, This refers to the direction of light projection, and (x, y, z) is the three-dimensional position of the sampling point. A neural network f(.) is used to predict (c, σ), where c is a three-dimensional vector representing the RGB color value, and σ is the volume density.
[0049]
[0050] For each input image, several rays are projected, and several points are sampled on each ray. For each point, the color and density are predicted using formula (1).
[0051] 1-2. Based on the color and volume density of each sampling point, the image rendered by the neural network is obtained using the volume rendering formula.
[0052]
[0053] in, This is the image obtained after volume rendering, where N is the number of sampling points. δ i It is the distance from the i-th sampling point to the (i+1)-th sampling point, σ i This represents the volume density estimated by the neural network f(.) in step 1-1 for the i-th sampling point.
[0054] T i The intermediate variable, c, represents the transmittance of the object. i This represents the color obtained by the neural network f(.) in step 1-1 for the i-th sampling point.
[0055] get Then, the loss function LOSS is constructed using the truth value C(r):
[0056]
[0057] 1-3. Before starting training, set (x, y, z) and The positional encoding is then input into the neural network f(.) for training.
[0058] γ(p)=(sin(2 0 πp), cos(2 0 πp), ..., sin(2 M-1 πp), cos(2 M-1 πp)) (4)
[0059] Where p represents the position of the input (x, y, z), and M represents the degree of position encoding. In practice, M = 10.
[0060] 1-4. Train the neural network f(.) using a public dataset to obtain the implicit representation of the scene for f(.).
[0061] 1-5. After training is completed, the location of the point with the highest volume density is selected through the neural radiation field (e.g., the location of the point with the highest volume density (x, y, z)). This location is used as the depth for subsequent knowledge distillation.
[0062] Step 2: Differentiable point cloud renderer, structural diagram as shown below. Figure 2 As shown:
[0063] 2-1. Obtain a rasterized color image and Z-buffer from the point cloud, and use a 5-layer perceptron to predict a high-dimensional vector related to color by passing the light direction and Z-buffer together.
[0064]
[0065] Here, g(.) represents a 5-layer perceptron, L is a color-encoded feature vector, and the dimension of L is C. For an input H×W Z-buffer, its H×W×C color embedding representation can be obtained.
[0066] 2-2. After obtaining the color embedding representation, a U-Net (Convolutional Networks for Biomedical Image Segmentation) network is used to predict the H×W×3 image result y, and the result is compared with the ground truth using the loss function L. style Unlike the original U-Net for image segmentation, we use a different loss function here, with the aim of recovering color images from the high-dimensional representation of the neural network.
[0067] L style =λ c L content +λ f L feat +λ TV L TV (6)
[0068]
[0069]
[0070]
[0071] Where, λ c , λ f , λ TV There are three hyperparameters, namely 1, 0.02, and 10. -6 In formulas (7) and (8), K j H j W j These represent the number of channels, height, and width of the image, respectively. In formula (9), x... i,j This represents the pixel value in row i and column j of the image; L TV This is a regularization term that keeps the network output space smooth. Gram(.) represents the encoding of the Gram matrix. This represents the output of U-Net.
[0072] 2-3. After the neural radiation field is trained and the differentiable point cloud renderer is built, the high-quality Z-Buffer obtained from the neural radiation field is used as supervision by knowledge distillation. This Z-Buffer is then subjected to L2 loss along with the Z-Buffer obtained from the rasterization of the differentiable point cloud renderer and added to the final loss function L.
[0073] L = L style +λ d L d (10)
[0074]
[0075] The hyperparameters are chosen as follows: λ c =1,λ style =0.01, λ TV =10 -6 , λ d =1. After training using knowledge distillation, a differentiable point cloud renderer can be used directly for rendering without the need for neural radiation fields.
[0076] Experiments were conducted on the public dataset NeRF-synthetic-lego, comparing three metrics: LPIPS (Learned Perceptual Image Patch Similarity), PSNR (Peak Signal to Noise Ratio), and SSIM (Structural Similarity Index Measure). The results are as follows. Figure 4 As shown in Table 1, the horizontal axis of the curve represents the number of iterations.
[0077] Table 1:
[0078]
[0079] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1A device that provides the functions specified in one or more boxes.
Claims
1. A point cloud rendering enhancement method based on knowledge distillation, characterized in that, Includes the following steps: Step 1: Construct and train the neural radiation field; input the image sequence, reconstruct it using the trained neural radiation field, and obtain the implicit representation of the scene; Step 1 is implemented as follows: 1-1. Neural Networks in Neural Radiation Fields It consists of 13 layers of sensing mechanism, and the input image sequence is ;in This refers to the direction in which light is projected. It refers to the three-dimensional location of the sampling point; using a neural network. predict Where c is a three-dimensional vector representing the RGB color value. It is volume density; (1); For each input image, several rays are projected, and several sampling points are sampled on each ray. For each sampling point, the color and density are predicted using formula (1). 1-2. Based on the color and volume density of each sampling point, the image rendered by the neural network is obtained using the volume rendering formula; , (2); in, It is the image obtained after volume rendering, where N is the number of sampling points; It is the distance from the i-th sampling point to the (i+1)-th sampling point. This indicates that the i-th sampling point is processed by the neural network in step 1-1. The estimated volume density; This represents an intermediate variable, and its object-related meaning is transmittance. This indicates that the i-th sampling point is processed by the neural network in step 1-1. The resulting color; get Then use truth value Constructing the loss function LOSS: (3); 1-3 Before starting training, and The location is then encoded as follows and input into the neural network. Conduct training; (4); in, express The input position, M represents the degree of position encoding, which is a hyperparameter. In practice, M=10. 1-4 Training Neural Networks Using Public Datasets ,get The implicit expression of the scene; After training 1-5 is completed, the location of the point with the highest volume density is selected through the neural radiation field, and this location is used as the depth for subsequent knowledge distillation. Step 2 is implemented as follows: 2-1. Obtain a rasterized color image and Z-buffer from the point cloud, and use a 5-layer perceptron to predict a high-dimensional vector related to color by passing the light direction and Z-buffer together. (5) ; in, This represents a 5-layer perceptron, where L is a feature vector encoded by color, and the dimension of L is... For the input Z-buffer able to obtain it Color embedding expression; 2-2. After obtaining the color embedding representation, a U-Net network is used for prediction. Image results And perform a loss function with the true value. ; (6); (7); (8); (9); in, , , There are three hyperparameters, namely 1, 0.02, and ;In formula (7) (8) , These represent the number of channels, height, and width of the image, respectively; in formula (9) This represents the pixel value in row i and column j of the image; This is a regularization term that keeps the network output space smooth. express Matrix encoding, Represents the true value. This represents the output of U-Net; 2-3. After the neural radiation field is trained and the differentiable point cloud renderer is built, the high-quality Z-Buffer obtained from the neural radiation field is used as supervision by knowledge distillation technology. It is then subjected to L2 loss with the Z-Buffer obtained by rasterization of the differentiable point cloud renderer and added to the final loss function L. (10); (11); in, After training using knowledge distillation, the point cloud is rendered directly using a differentiable point cloud renderer, without the need for neural radiation fields.
Citation Information
Patent Citations
New view angle synthesis method based on depth image and neural radiation field
CN113706714A
Image rendering model training method and device and image rendering method and device
CN113888689A
