A virtual view synthesis method based on deep learning and multi-view geometry

The virtual view synthesis method that combines deep learning and multi-view geometry solves the problem of requiring a large number of source images and long training time in the existing technology, achieves fast and high-quality virtual view synthesis, and supports cross-scenario applications and multi-view Geometric consistency.

CN114663543BActive Publication Date: 2024-10-22XI AN JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210332808.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-10-22
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

Existing virtual view synthesis methods based on deep learning require collecting a large number of source images and conducting long-term training and optimization for each scene, making it difficult to achieve rapid cross-scene virtual view synthesis.

Method used

A virtual view synthesis method based on deep learning and multi-view geometry is used to extract multi-view geometric information through feature pyramid network and three-dimensional convolution network, construct scene features, build a virtual view synthesis neural network model, and use a multi-layer perceptron network to generate virtual views , combining back-projection and linear interpolation techniques for pixel value rendering.

Benefits of technology

It achieves high-quality and fast virtual view synthesis without requiring a large number of source images, maintains multi-view geometric consistency, can be applied across scenes, and supports rapid fine-tuning to improve image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114663543B_ABST
    Figure CN114663543B_ABST
Patent Text Reader

Abstract

The present invention discloses a virtual view synthesis method based on deep learning and multi-view geometry, 1. Select a public data set of view synthesis containing different scenes, pre-process the images in the scenes, and then divide them into training set, verification set and test set; 2. Based on multi-view geometry, build a neural network model for virtual view synthesis, and the final output of the network is the pixel value of any pixel in the image; 3. Use the training set and the verification set to train the virtual view synthesis neural network model to obtain a virtual view synthesis model; 4. In order to synthesize the virtual view, reproject the virtual perspective corresponding to the virtual view; then for the coordinate point after projection, use the virtual view synthesis model to obtain its corresponding pixel value, combine the pixel values ​​of all coordinate points, and synthesize to obtain the virtual view image. The present invention ensures that the synthesized virtual view has multi-view geometry consistency and can be directly applied to unknown scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the application field of computer vision and graphics, and specifically relates to a virtual view synthesis method based on deep learning and multi-view geometry. Background Art

[0002] Virtual view synthesis technology is a classic topic in computer vision and image science, and it has a wide range of applications in many areas of real life. In the medical field, virtual view synthesis technology can be used to synthesize surgical organs in real time with high precision, helping doctors to observe surgical organs from any angle, so as to perform precise operations on surgical organs; in the military field, virtual view synthesis technology can be used to synthesize complete combat scenes to improve emergency response and combat readiness capabilities; in sports, virtual view synthesis technology can be used to allow viewers to watch the game from any perspective, providing a better viewing experience; in entertainment, the main technology of virtual reality VR is virtual view synthesis technology. Since virtual view synthesis technology plays an indispensable role in many scenarios, exploring a high-quality virtual view synthesis algorithm has important theoretical significance and practical value.

[0003] With the rapid development of deep learning, many virtual view synthesis methods based on deep learning have emerged and achieved good results. However, these methods have a common disadvantage, that is, they need to collect a large amount of source image geometry in advance and perform long-term training and optimization for each scene separately. This makes it difficult to apply these methods in real scenes and realize fast virtual view synthesis for different scenes. Therefore, in view of these shortcomings, building a high-quality and fast virtual view synthesis network model is a very important direction. Summary of the invention

[0004] The purpose of the present invention is to propose a virtual view synthesis method based on deep learning and multi-view geometry to address the shortcomings of existing algorithms, which require the collection of a large number of source images and the need to perform long-term training and optimization for each scene separately. The present invention combines multi-view geometry, makes full use of the global and local information of multi-view geometry, constructs effective scene features, and realizes high-quality and fast virtual view synthesis.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] A virtual view synthesis method based on deep learning and multi-view geometry includes the following steps:

[0007] Step A: Select a public view synthesis dataset containing different scenes, obtain the camera internal and external parameters of all images of each scene in the dataset, and then divide the dataset into training set, validation set and test set;

[0008] Step B: Based on multi-view geometry, a virtual view synthesis neural network model for virtual view synthesis is built, and the final output of the network is the pixel value of any pixel in the image;

[0009] Step C: Use the training set and validation set obtained in step A to train the virtual view synthesis neural network model to obtain a virtual view synthesis model suitable for different complex scenes;

[0010] Step D: In order to synthesize the virtual view, first back-project the virtual perspective corresponding to the virtual view, and then input all the coordinate points after back-projection into the virtual view synthesis model obtained in step C to obtain the pixel values ​​corresponding to all the coordinate points, combine these pixel values ​​and adjust the size to obtain a synthesized virtual view image.

[0011] The specific steps of step B are as follows:

[0012] Step B01: The virtual view synthesis neural network model uses a feature pyramid network as a feature extraction network for source view images; To extract features, self-attention layers are added to the second, fifth, and eighth layers of the feature pyramid network, and the corresponding outputs are used as multi-scale features of the image, expressed as in and With different sizes, the image is downsampled by 1, 2, and 4 times relative to the source perspective;

[0013] Step B02: Use the average group correlation index to analyze the multi-scale features of the image in step B01 at M source perspectives. Aggregate to get M cost cubes Then, the cost cube is convolved using a 3D convolutional network to obtain M multi-view geometric encoding feature volumes containing rich multi-view geometric information, denoted as Among them, the network structure of the 3D convolutional network includes a downsampling layer and an upsampling layer, and the size of the network output is consistent with the size of the input;

[0014] Step B03: For any point P in the three-dimensional space of the scene, assume that its coordinates are x P =(x,y,z), the corresponding camera viewing direction is d P =(d x ,d y ,d z ); Project point P to the camera coordinate system and pixel coordinate system corresponding to the M source perspectives, and the coordinates after projection are and According to the coordinates after projection, first, by Perform linear interpolation to obtain the multi-view aggregated color features, which are recorded as:

[0015] c P =concat(I1(p1),…,I M (p M ))

[0016] In the formula, concat represents the connection operation; then, by obtaining the multi-scale features of the image in step B01 and multi-view geometry encoding features Perform linear interpolation to obtain the multi-view perspective related features:

[0017]

[0018] Finally, by calculating the average and variance of the two-dimensional and three-dimensional features of point P at different perspectives, the multi-view perspective-independent global features are obtained:

[0019] f P =[mean 2D ,var 2D ,mean 3D ,var 3D ]

[0020] Where:

[0021]

[0022]

[0023]

[0024]

[0025] In the formula, mean represents the operation of finding the average value, and var represents the operation of finding the variance. The above features are unique to each scene, that is, feature construction is performed separately for each scene.

[0026] Step B04: The coordinate feature x of any position P obtained in step B03 is P , camera viewing angle feature d P , multi-view aggregated color features c P , multi-view perspective related features f p ′ The global feature f is independent of the multi-view perspective. P Connect and get an input feature input P , and then input it into a multi-layer perceptron network, the output of which is the volume density σ and RGB color value c corresponding to point P; that is, (σ, c) = MLP (input P), where MLP represents a multi-layer perceptron network, which has only several fully connected layers and no convolutional layers;

[0027] Step B05: In order to synthesize the image, the pixel value of each pixel in the synthesized image needs to be synthesized; for any pixel, in order to render the corresponding pixel value, a ray passing through the pixel position is sampled, and then the multi-layer perceptron network described in step B04 is used to obtain the volume density and RGB color value of each sampling point; finally, the RGB color values ​​of the sampling points on the ray are accumulated using the volume rendering technology to obtain the pixel value of the corresponding pixel.

[0028] The specific steps of step C are as follows:

[0029] Step C01: When training the virtual view synthesis neural network model built in step B, the L2 norm is used as the loss function of the network, that is, the loss function is Where N represents the number of pixels selected for each training. Represents the predicted pixel value corresponding to the i-th pixel output by the network, Represents the true value of the pixel value corresponding to the i-th pixel;

[0030] Step C02: Use the preprocessed training set and validation set, input them into the constructed virtual view synthesis neural network model, minimize the loss function in step C01 through the back propagation algorithm, continuously optimize the virtual view synthesis neural network model parameters, and obtain the optimal virtual view synthesis model.

[0031] In step A, the dataset is divided into 80% training set, 10% validation set and 10% test set.

[0032] Compared with the prior art, the present invention has the following advantages:

[0033] First, since the present invention constructs a large number of features related to the virtual perspective when synthesizing the virtual view, the present invention does not need to collect a large number of source images in advance, and only needs a small number of source images (at least only 3) to synthesize a high-quality virtual view;

[0034] Second, since the present invention combines multi-view geometry and fully utilizes multi-view image features, the virtual view synthesized by the present invention maintains multi-view geometric consistency and is more in line with human visual perception;

[0035] Third, since the present invention constructs separate features for each scene, the model can be trained using several scenes at the same time. Therefore, the present invention can directly apply the trained model to other unknown scenes without having to perform long-term training and optimization for each scene separately, thereby achieving rapid cross-scene virtual view synthesis.

[0036] Fourthly, the present invention can conveniently perform fast fine-tuning training on each scene, thereby further improving the quality of the synthesized virtual view. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is an overall flow chart of the method of the present invention.

[0038] Figure 2 This is a diagram of the architecture of the virtual view synthesis neural network model constructed by the present invention. DETAILED DESCRIPTION

[0039] The specific details of each step of the present invention are described in detail below with reference to the accompanying drawings.

[0040] The present invention proposes a virtual view synthesis method based on deep learning and multi-view geometry. The whole process of the method is as follows: Figure 1 shown.

[0041] The method mainly includes the following steps:

[0042] Step A: Select a public view synthesis dataset containing different scenes, obtain the camera internal and external parameters of all images of each scene in the dataset, and then divide the dataset into training set, validation set and test set.

[0043] Step B: Based on multi-view geometry, a virtual view synthesis neural network model for virtual view synthesis is built. The final output of the network is the pixel value of any pixel in the image. The architecture of the virtual view synthesis neural network model is as follows: Figure 2 shown.

[0044] The specific steps of step B are as follows:

[0045] Step B01: The virtual view synthesis neural network model uses a feature pyramid network as a feature extraction network for source view images; To extract features, self-attention layers are added to the second, fifth, and eighth layers of the feature pyramid network, and the corresponding outputs are used as multi-scale features of the image, expressed as in and With different sizes, the images are downsampled by 1, 2, and 4 times relative to the source perspective.

[0046] Step B02: Use the average group correlation index to analyze the multi-scale features of the image in step B01 at M source perspectives. Aggregate to get M cost cubes Then, the cost cube is convolved using a 3D convolutional network to obtain M multi-view geometric encoding feature volumes containing rich multi-view geometric information, denoted as Among them, the network structure of the three-dimensional convolutional network includes a downsampling layer and an upsampling layer, and the size of the network output is consistent with the size of the input.

[0047] Step B03: For any point P in the three-dimensional space of the scene, assume that its coordinates are x P =(x,y,z), the corresponding camera viewing direction is d P =(d x ,d y ,d z ); Project point P to the camera coordinate system and pixel coordinate system corresponding to the M source perspectives, and the coordinates after projection are and According to the coordinates after projection, first, by Perform linear interpolation to obtain the multi-view aggregated color features, which are recorded as:

[0048] c P =concat(I1(p1),…,I M (p M ))

[0049] In the formula, concat represents the connection operation; then, by obtaining the multi-scale features of the image in step B01 and multi-view geometry encoding features Perform linear interpolation to obtain the multi-view perspective related features:

[0050]

[0051] Finally, by calculating the average and variance of the two-dimensional and three-dimensional features of point P at different perspectives, the multi-view perspective-independent global features are obtained:

[0052] f P =[mean 2D ,var 2D ,mean 3D ,var 3D ]

[0053] Where:

[0054]

[0055]

[0056]

[0057]

[0058] In the formula, mean represents the operation of finding the average value, and var represents the operation of finding the variance. The above features are unique to each scene, that is, feature construction is performed separately for each scene. Step B04: The coordinate feature x obtained in step B03 about any position P is P , camera viewing angle feature d P , multi-view aggregated color features c P , multi-view perspective related features f′ p The global feature f is independent of the multi-view perspective. P Connect and get an input feature input P Then, it is input into a multi-layer perceptron network, and the output of the network is the volume density σ and RGB color value c corresponding to point P. That is, (σ, c) = MLP (input P ), where MLP represents a multi-layer perceptron network, which has only several fully connected layers and no convolutional layers.

[0059] Step B05: In order to synthesize the image, the pixel value of each pixel in the synthesized image needs to be obtained. For any pixel, in order to render the corresponding pixel value, a ray passing through the pixel position is sampled, and then the multi-layer perceptron network described in step B04 is used to obtain the volume density and RGB color value of each sampling point. Finally, the RGB color values ​​of the sampling points on the ray are accumulated using the volume rendering technology to obtain the pixel value of the corresponding pixel.

[0060] Step C: Use the training set and validation set obtained in step A to train the virtual view synthesis neural network model to obtain a virtual view synthesis model suitable for different complex scenes.

[0061] The specific steps of step C are as follows:

[0062] Step C01: When training the virtual view synthesis neural network model built in step B, use the L2 norm as the network loss function. That is, the loss function is Where N represents the number of pixels selected for each training. Represents the predicted pixel value corresponding to the i-th pixel output by the network, Represents the true value of the pixel corresponding to the i-th pixel.

[0063] Step C02: Use the preprocessed training set and validation set and input them into the constructed virtual view synthesis neural network model. Minimize the loss function in step C01 through the back propagation algorithm, continuously optimize the parameters of the virtual view synthesis neural network model, and obtain the optimal virtual view synthesis model.

[0064] Step D: In order to synthesize the virtual view, first back-project the virtual perspective corresponding to the virtual view, and then input all the coordinate points after back-projection into the virtual view synthesis model obtained in step C to obtain the pixel values ​​corresponding to all the coordinate points. These pixel values ​​are combined and resized to obtain a synthesized virtual view image.

[0065] On the training set obtained in step A, the currently widely used virtual view synthesis method and the method of the present invention are trained, and after the training is completed, different test sets are used to test different methods. The results are shown in Table 1 below, where the symbol ↑ indicates that the larger the corresponding value, the better, and the symbol ↓ indicates that the smaller the corresponding value, the better. Among them, the best result is marked in bold italics, and the second best result is marked with an underline. As can be seen from Table 1, the various indicators of the method of the present invention are improved to a certain extent compared with other methods on different data sets, which shows the effectiveness of the method of the present invention.

[0066] Table 1

[0067]

Claims

1. A virtual view synthesis method based on deep learning and multi-view geometry, comprising the following steps: Step A: Select a public view synthesis dataset containing different scenes, obtain the camera internal and external parameters of all images of each scene in the dataset, and then divide the dataset into training set, validation set and test set; Step B: Based on multi-view geometry, a virtual view synthesis neural network model for virtual view synthesis is built, and the final output of the network is the pixel value of any pixel in the image; Step C: Use the training set and validation set obtained in step A to train the virtual view synthesis neural network model to obtain a virtual view synthesis model suitable for different complex scenes; Step D: In order to synthesize the virtual view, firstly, the virtual view angle corresponding to the virtual view is back-projected, and then all the coordinate points after the back-projection are input into the virtual view synthesis model obtained in step C to obtain the pixel values ​​corresponding to all the coordinate points, and these pixel values ​​are combined and resized to obtain a synthesized virtual view image; The specific steps of step B are as follows: Step B01: The virtual view synthesis neural network model uses a feature pyramid network as a feature extraction network for source view images; To extract features, self-attention layers are added to the second, fifth, and eighth layers of the feature pyramid network, and the corresponding outputs are used as multi-scale features of the image, expressed as in and With different sizes, the image is downsampled by 1, 2, and 4 times relative to the source perspective; Step B02: Use the average group correlation index to analyze the multi-scale features of the image in step B01 at M source perspectives. Aggregate to get M cost cubes Then, the cost cube is convolved using a 3D convolutional network to obtain M multi-view geometric encoding feature volumes containing rich multi-view geometric information, denoted as Among them, the network structure of the 3D convolutional network includes a downsampling layer and an upsampling layer, and the size of the network output is consistent with the size of the input; Step B03: For any point P in the three-dimensional space of the scene, assume that its coordinates are x P =(x,y,z), the corresponding camera viewing direction is d P =(d x ,d y ,d z ); Project point P to the camera coordinate system and pixel coordinate system corresponding to the M source perspectives, and the coordinates after projection are and According to the coordinates after projection, first, by Perform linear interpolation to obtain the multi-view aggregated color features, which are recorded as: c P =concat(I1(p1),…,I M (p M )) In the formula, concat represents the connection operation; then, by obtaining the multi-scale features of the image in step B01 and multi-view geometry encoding features Perform linear interpolation to obtain the multi-view perspective related features: Finally, by calculating the average and variance of the two-dimensional and three-dimensional features of point P at different perspectives, the multi-view perspective-independent global features are obtained: f P =[mean 2D ,cousin 2D ,mean 3D ,cousin 3D ] Where: In the formula, mean represents the operation of finding the average value, and var represents the operation of finding the variance. The above features are unique to each scene, that is, feature construction is performed separately for each scene. Step B04: The coordinate feature x of any position P obtained in step B03 is P , camera viewing angle feature d P , multi-view aggregated color features c P , multi-view perspective related features f′ p Connect with the multi-view perspective-independent global feature fP to obtain an input feature input P , and then input it into a multi-layer perceptron network, the output of the network is the volume density σ and RGB color value c corresponding to point P; that is, (σ, c) = MLP (input P ), where MLP represents a multi-layer perceptron network, which has only several fully connected layers and no convolutional layers; Step B05: In order to synthesize the image, the pixel value of each pixel in the synthesized image needs to be synthesized; for any pixel, in order to render the corresponding pixel value, a ray passing through the pixel position is sampled, and then the multi-layer perceptron network described in step B04 is used to obtain the volume density and RGB color value of each sampling point; finally, the RGB color values ​​of the sampling points on the ray are accumulated using the volume rendering technology to obtain the pixel value of the corresponding pixel.

2. The method for virtual view synthesis based on deep learning and multi-view geometry according to claim 1, characterized in that: The specific steps of step C are as follows: Step C01: When training the virtual view synthesis neural network model built in step B, the L2 norm is used as the loss function of the network, that is, the loss function is Where N represents the number of pixels selected for each training. Represents the predicted pixel value corresponding to the i-th pixel output by the network, Represents the true value of the pixel value corresponding to the i-th pixel; Step C02: Use the preprocessed training set and validation set, input them into the constructed virtual view synthesis neural network model, minimize the loss function in step C01 through the back propagation algorithm, continuously optimize the virtual view synthesis neural network model parameters, and obtain the optimal virtual view synthesis model.

3. The method for virtual view synthesis based on deep learning and multi-view geometry according to claim 1, characterized in that: In step A, the dataset is divided into 80% training set, 10% validation set and 10% test set.