A neural radiation field reconstruction method and device supporting text query

By extracting multi-view image features, training a semantic embedding field model and combining it with CLIP embedding, the efficient rendering and text query capabilities of the NeRF model in different optical effect scenes are achieved, solving the problems of the lack of meaning and insufficient generalization performance of the NeRF model output. Supports natural language text queries and enhances model interactivity and generalization capabilities.

CN117808957BActive Publication Date: 2024-09-27COMMUNICATION UNIVERSITY OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410016964.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2024-09-27
Estimated Expiration
2044-01-05

AI Technical Summary

Technical Problem

The direct output of the NeRF model is a color density field that lacks meaning or contextual content, limiting its generalization performance in scenes with different optical effects, and making it difficult to support text query interactive applications.

Method used

A neural radiation field reconstruction method that supports text query is used to obtain multi-view images, estimate camera poses, extract epipolar point features, perform cross-view aggregation, train semantic embedding field models, synthesize new views of the scene, and embed them according to semantics The model renders the text query correlation graph, and combines the CLIP embedding and Transformer model to achieve learnable ray rendering.

Benefits of technology

It realizes multi-view consistent rendering of 3D scenes, supports natural language text query, can interactively render the correlation graph of the query object, and avoids the limitations of the classic differentiable separate rendering pipeline, enhancing the model's performance in different optical effect scenarios. generalization performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117808957B
    Figure CN117808957B
Patent Text Reader

Abstract

The present invention provides a neural radiation field reconstruction method and device supporting text query, including: step S1, obtaining multi-view images taken by a camera and estimating the camera pose; step S2, obtaining the polar point features of the multi-view images according to the multi-view images; step S3, obtaining cross-view aggregation features according to the polar point features; step S4, performing rendering integration according to the cross-view aggregation features; step S5, training a semantic embedding field model according to the cross-view aggregation features and the rendering integration results; step S6, synthesizing a new view of the scene according to the semantic embedding field model, obtaining an attention map rendering scene depth map; step S7, rendering a text query correlation map according to the semantic embedding field model. The technical solution of the present invention can interactively render a dense correlation map with multi-view consistency of the query object, and avoid using the classic differentiable volume rendering pipeline.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of visual processing technology, and in particular, relates to a neural radiation field reconstruction method and device supporting text query. Background Art

[0002] Neural Radiance Field (NeRF)-based 3D reconstruction methods can generate high-fidelity images given a new perspective by volume rendering the implicit neural scene representation, and thus have broad application prospects in virtual reality games, film and television special effects, and free-viewpoint playback of professional sports events. However, the direct output of the NeRF model is a color density field that lacks meaning or contextual content, which hinders applications that interact with the generated 3D scene. Moreover, the color density field often relies on the classical volume rendering formula for the synthesis of new views, which oversimplifies the optical modeling of solid surfaces and limits the generalization performance of the NeRF model in scenes with different optical effects. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a method and device for reconstructing a neural radiation field supporting text query.

[0004] To achieve the above object, the present invention adopts the following technical solution:

[0005] A neural radiation field reconstruction method supporting text query includes: step S1, obtaining multi-view images taken by a camera and estimating the camera pose; step S2, obtaining the polar point features of the multi-view images according to the multi-view images; step S3, obtaining cross-view aggregation features according to the polar point features; step S4, performing rendering integration according to the cross-view aggregation features; step S5, training a semantic embedding field model according to the cross-view aggregation features and the rendering integration results; step S6, synthesizing a new view of the scene according to the semantic embedding field model, and obtaining an attention map to render a scene depth map; step S7, rendering a text query correlation map according to the semantic embedding field model.

[0006] Preferably, the semantic embedding field model is a NeRF model that introduces CLIP embedding of associated text descriptions and image content into training.

[0007] Preferably, in step S4, rendering integration is performed based on light according to cross-view aggregation features.

[0008] Preferably, in step S6, the attention map is used to render the scene depth map by using the light aggregation model RT, that is:

[0009]

[0010] Preferably, based on the query natural language text, its CLIP embedding q is calculated and compared with the language embedding of the semantic embedding field model, a relevance score is calculated, and the physical scale that produces the highest relevance score is selected for rendering output.

[0011] The present invention also provides a neural radiation field reconstruction device supporting text query, including: an acquisition module, used to acquire multi-view images and camera postures taken by a camera; an extraction module, used to obtain polar point features of the multi-view images based on the multi-view images; an aggregation module, used to obtain cross-view aggregation features based on the polar point features; an integration module, used to perform rendering integration based on the cross-view aggregation features; a training module, used to train a semantic embedding field model based on the cross-view aggregation features and the rendering integration results; a synthesis module, used to synthesize a new view of the scene based on the semantic embedding field model to obtain an attention map to render a scene depth map; a rendering module, used to render a text query correlation map based on the semantic embedding field model.

[0012] Preferably, the semantic embedding field model is a NeRF model that introduces CLIP embedding of associated text descriptions and image content into training.

[0013] Preferably, the integration module performs rendering integration based on light according to cross-view aggregation features.

[0014] Preferably, the synthesis module obtains the attention map rendering scene depth map through the light aggregation model RT, that is:

[0015]

[0016] Preferably, the rendering module calculates the CLIP embedding q of the query natural language text, compares it with the language embedding of the semantic embedding field model, calculates the relevance score, and selects the physical scale that produces the highest relevance score for rendering output.

[0017] In order to better support downstream applications related to 3D scene understanding, such as querying a wide range of objects such as "cup" and "basketball" in the current scene by inputting natural language text, or querying objects related to visual attributes such as "blue", the present invention introduces CLIP embedding that can associate text descriptions with image content into the trained NeRF model, so that the model can interactively render multi-view images of the query object. Figure 1 In addition, the present invention implements learnable ray rendering based on the Transformer model, using attention to directly learn to render target pixels during ray marching, thereby avoiding the use of a classic differentiable volume rendering pipeline. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0019] Figure 1 A flow chart of a neural radiation field reconstruction method supporting text query according to an embodiment of the present invention;

[0020] Figure 2 It is a schematic diagram of the COLMAP sparse reconstruction result according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0023] Embodiment 1:

[0024] like Figure 1 As shown, an embodiment of the present invention provides a neural radiation field reconstruction method supporting text query, including: step S1, obtaining multi-view images taken by a camera and a camera pose; step S2, obtaining polar point features of the multi-view images according to the multi-view images; step S3, obtaining cross-view aggregation features according to the polar point features; step S4, performing rendering integration according to the cross-view aggregation features; step S5, training a semantic embedding field model according to the cross-view aggregation features and the rendering integration results; step S6, synthesizing a new view of the scene according to the semantic embedding field model, and obtaining an attention map to render a scene depth map; step S7, rendering a text query correlation map according to the semantic embedding field model.

[0025] As an implementation method of an embodiment of the present invention, in step S1, the reconstruction method based on neural radiation field requires dense multi-view images (or continuous video frames) and their corresponding camera internal and external parameters as input. Therefore, after image acquisition, it is necessary to use the structure-from-motion (SFM) technology to estimate the camera pose. The present invention, like most existing methods, uses sparse reconstruction based on COLMAP to obtain camera internal and external parameters. The three steps of COLMAP sparse reconstruction are: image feature point extraction, feature point matching, and SFM recovery of camera pose and sparse 3D point cloud. Figure 2 This is the result of COLMAP sparse reconstruction after taking multi-view images of a statue.

[0026] In order to convert the COLMAP sparse reconstruction results into a data format that is easy to read by the NeRF model, the COLMAP camera coordinate system orientation is transformed, and then the camera parameters are sorted and saved as a numpy file. For each image, its camera external parameters (3×3 rotation matrix and 3×1 translation vector) and internal parameters (image height H and width W and camera focal length f) are processed into a 3×5 numpy matrix:

[0027]

[0028] Then find the nearest and farthest distances of the sparsely reconstructed 3D point from the camera center as parameters [near, far] representing the depth range of the current scene.

[0029] As an implementation method of an embodiment of the present invention, in step S2, a multi-scale image encoder is used to encode the multi-view image into a 3D feature space, providing a multi-view geometric prior for the subsequent NeRF model, and even including information such as material, texture, and semantics, thereby improving the multi-view resolution of the final reconstruction result. Figure 1 First, we construct pairs of source and target views for training, so that the network can generalize better. We select a target view, then find k×N neighboring views (k and N are uniformly randomly sampled in a small range), and randomly sample N views from them as source views. We use a trainable U-Net-based model to train each source view I i Extract feature map d is the dimension of latent space. It is projected onto the i-th feature map plane using the camera external parameters, denoted as Then the feature of the point is obtained by bilinear interpolation on the feature grid θ is the viewing direction.

[0030] As an implementation method of an embodiment of the present invention, in step S3, the present invention uses the Transformer model to model a feature set aggregation function, aggregates feature vectors from different views in the implicit feature space, and obtains coordinate-aligned features. In order to reduce memory consumption in the attention mechanism calculation and increase the interpretability of the attention score calculation, the inductive bias used as the scene representation in the multi-view epipolar geometry constraint is used to restrict each pixel to only focus on the pixels on the corresponding epipolar lines of the adjacent views. The multi-view aggregation Transformer encoder VT can be described as follows:

[0031]

[0032] Given the success of previous multi-view stereo matching (MVS) algorithms, the multi-view aggregation Transformer encoder can selectively aggregate visible views and self-infer scene occlusion to a certain extent by learning attention to epipolar geometry constraints. In particular, the query token is initialized as the element-wise maximum pooling of all input features:

[0033]

[0034] Let the token iteratively summarize other point features after entering the encoder. In order to increase the diversity of feature interactions and better reason about positional geometric relationships, the following subtractive attention calculation mechanism is adopted:

[0035]

[0036]

[0037] Among them, [Δd 1 …Δd N ] provides relative spatial context to achieve attention enhancement, A j is the jth column of A, They are all mapping functions parameterized by MLP, which are used to process query, key and value inputs respectively.

[0038] As an implementation method of an embodiment of the present invention, in step S4, after obtaining the coordinate-based cross-view aggregation features, they are weighted aggregated to equivalently implement the volume rendering integral in NeRF. By calculating the attention between points across rays, the occlusion relationship and visibility in the three-dimensional scene are further inferred, and this point-level feature aggregation is modeled using a Transformer-based model to achieve point-to-point information interaction, thereby directly predicting the RGB color of the target pixel. The principle can be explained by the discretized traditional volume rendering integral formula (as shown below):

[0039]

[0040]

[0041] Among them, δ i =t i+1 -t i is the distance between adjacent sampling points on the ray. Here the point-level RGB color c i It can be mapped to the token feature as the Transformer input, the cumulative transmittance T i is a mixing weight, which is the average attention score of each point calculated in the Transformer. Specifically, let each rendering ray be r = (o, d), and uniformly sample t along the ray from the near plane near to the far plane far 1 ,…,t M , the sampling point x on the ray i =o+t i The characteristic of d is expressed as This feature represents the combination of the coordinate alignment feature obtained by aggregating multi-view features and the spatial position and view direction encoded by the original NeRF position. 1 ,…,f M The color feature vector required for rendering the RGB image is obtained by sending it to the ray aggregation model RT composed of the standard Transformer encoder and performing average pooling on the obtained predicted tokens:

[0042]

[0043] As an implementation method of an embodiment of the present invention, in step S5, based on multi-view feature aggregation and cross-ray rendering integration, the information of multiple viewpoints can be fused to construct a scene-specific underlying geometric representation. When performing an open text query, the 3D scene representation is shared under any natural language text prompt. On the basis of the aforementioned two-stage Transformer encoder, the present invention adds two additional learnable MLP output heads, which output a single CLIP vector and a DINO descriptor respectively, and adds a physical scale input s in the CLIP MLP. Assume that the initial scale of the image plane is s 0 , s is defined as the side length of the cube centered at the sampling point in the world coordinate system, and its size varies with the focal length f and the distance t from the sampling point to the origin of the light. i change:

[0044] CLIP is a model for joint training of image-text pairs, which maps text and images to a shared multidimensional vector space so that the similarity between the two can be measured by the distance in the vector space. By training the MLP that outputs the CLIP vector, the overall model of the present invention can measure the semantic connection between text and image. The DINO descriptor can capture the explicit information required for the semantic segmentation task, and using it for regularization can improve the quality and integrity of the generated semantic correlation graph and avoid outliers. The semantics of fixed positions will not change with the change of viewing angle, so the output F of these two MLPs is CLIP (x,s) and F DINO (x) is a view-independent vector. Similar to the discrete summation form of volume rendering color integral in formula (6) and (7), it can be obtained by F CLIP (x,s) gets the language embedding and normalizes it:

[0045]

[0046]

[0047] Similarly, for F DINO (x) is processed as described in formula (9), except that this feature is a pixel-aligned feature and there is no scale factor s input. In order to effectively supervise the training of the DINO output head, it is necessary to use a visual Transformer pre-trained on a large dataset to self-supervise the extraction of pseudo-real DINO features in the data preprocessing stage, and use the MSE loss. Similarly, the CLIP embedding generated by cropping images from the training view is used to construct a multi-scale feature pyramid, and the final pseudo-real embedding is generated by trilinear interpolation. The supervised CLIP output head can capture image contexts of different scales, thereby associating the same 3D position with text embeddings of different languages ​​at different scales, and the language field can be queried at any scale during testing. The language embedding obtained by training is encouraged to be as close as possible to its pseudo-true embedding, that is, to maximize their cosine similarity. The supervised loss term can be described as λ is an adjustable regularization coefficient.

[0048] As an implementation method of an embodiment of the present invention, in step S6, color rendering in feature space involves complex information in optics and semantics, so it is difficult to explicitly model. Therefore, an MLP is used to map the pooled feature c(r) to the final rendered RGB color. During training, MSE loss is used for supervision of rendering colors. By training on a sufficient amount of mixed data sets, the present invention finds that the model has the potential to generalize to different scenes without limiting the lighting conditions of the scene and the material of the object, and is even expected to simulate the real effects of optical effects such as reflection and refraction. In addition, given the success of some work in calculating explicit depth values ​​using cumulative transmittance, the attention score calculated by the ray aggregation model RT can also infer the scene depth based on geometric perception:

[0049]

[0050] The scene depth map can be rendered using the attention map obtained by RT.

[0051] As an implementation of an embodiment of the present invention, in step S7, given a query natural language text, firstly, its CLIP embedding q needs to be calculated, and then compared with the language embedding obtained by the model rendering in the present invention, and a relevance score is calculated. Specifically, a set of text words that the user may query is predefined as standard words, and the embedding ψ of this set of standard words is calculated. i and rendering language embedding η CLIP The cosine similarity of . Then measure how close the rendered language embedding is to the query text embedding compared to the canonical word embedding: As the relevance score of the current query text embedding. Then it is necessary to select a suitable physical scale s for outputting the pixels in the final relevance map. Therefore, the present invention predefines a reasonable range for s, samples and generates a certain number of relevance maps within this range, and selects the scale coefficient s that produces the highest relevance score for rendering output. Enter text prompts in the collected indoor scenes, and output relevance images respectively.

[0052] Embodiment 2:

[0053] An embodiment of the present invention also provides a neural radiation field reconstruction device that supports text query, including: an acquisition module, used to acquire multi-view images and camera poses taken by a camera; an extraction module, used to obtain polar point features of the multi-view images based on the multi-view images; an aggregation module, used to obtain cross-view aggregation features based on the polar point features; an integration module, used to perform rendering integration based on the cross-view aggregation features; a training module, used to train a semantic embedding field model based on the cross-view aggregation features and the rendering integration results; a synthesis module, used to synthesize a new view of the scene based on the semantic embedding field model to obtain an attention map to render a scene depth map; a rendering module, used to render a text query correlation map based on the semantic embedding field model.

[0054] As an implementation manner of an embodiment of the present invention, the semantic embedding field model is a NeRF model that introduces CLIP embedding of associated text descriptions and image content into training.

[0055] As an implementation manner of the embodiment of the present invention, the integration module performs rendering integration based on light according to the cross-view aggregation feature.

[0056] As an implementation method of an embodiment of the present invention, the synthesis module obtains the attention map rendering scene depth map through the light aggregation model RT, that is:

[0057]

[0058] As an implementation method of an embodiment of the present invention, the rendering module calculates the CLIP embedding q of the query natural language text, compares it with the language embedding of the semantic embedding field model, calculates the relevance score, and selects the physical scale that produces the highest relevance score for rendering output.

[0059] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A neural radiation field reconstruction method supporting text query, It is characterized in that include: Step S1, obtaining a multi-view image taken by a camera and estimating the camera pose; Step S2, obtaining the epipolar point features of the multi-view image according to the multi-view image; Step S3, obtain cross-view aggregation features based on polar point features; step S4, perform rendering integration based on cross-view aggregation features; step S5, train a semantic embedding field model based on the cross-view aggregation features and rendering integration results; step S6, synthesize a new view of the scene based on the semantic embedding field model to obtain an attention map rendering scene depth map; step S7, render a text query correlation map based on the semantic embedding field model; the semantic embedding field model is a NeRF model that introduces CLIP embedding of associated text descriptions and image content into the training.

2. The neural radiation field reconstruction method supporting text query as claimed in claim 1, It is characterized in that In step S4, rendering integration is performed based on light according to the cross-view aggregation features.

3. The neural radiation field reconstruction method supporting text query as claimed in claim 2, It is characterized in that In step S6, the attention map is used to render the scene depth map by using the light aggregation model RT.

4. The neural radiation field reconstruction method supporting text query as claimed in claim 3, It is characterized in that Based on the query natural language text, its CLIP embedding q is calculated and compared with the language embedding of the semantic embedding field model, a relevance score is calculated, and the physical scale that produces the highest relevance score is selected for rendering the output.

5. A neural radiation field reconstruction device supporting text query, It is characterized in that include: An acquisition module is used to acquire multi-view images and camera poses taken by the camera; An extraction module, used for obtaining the epipolar point features of the multi-view images according to the multi-view images; An aggregation module is used to obtain cross-view aggregation features based on the polar point features; an integration module is used to perform rendering integration based on the cross-view aggregation features; The training module is used to train the semantic embedding field model based on the cross-view aggregation features and rendering integration results; the synthesis module is used to synthesize a new view of the scene based on the semantic embedding field model to obtain an attention map rendering scene depth map; A rendering module is used to render a text query relevance graph based on a semantic embedding field model; the semantic embedding field model is a NeRF model that introduces CLIP embedding of associated text descriptions and image content into training.

6. The neural radiation field reconstruction device supporting text query according to claim 5, It is characterized in that The integration module performs ray-based rendering integration based on cross-view aggregated features.

7. The neural radiation field reconstruction device supporting text query according to claim 6, It is characterized in that The synthesis module obtains the attention map through the ray aggregation model RT to render the scene depth map.

8. The neural radiation field reconstruction device supporting text query according to claim 7, It is characterized in that The rendering module calculates the CLIP embedding q of the query natural language text, compares it with the language embedding of the semantic embedding field model, calculates the relevance score, and selects the physical scale that produces the highest relevance score for rendering output.