Three-dimensional construction network training method and apparatus, and three-dimensional model generation method and apparatus

By combining multi-frame images and radar point cloud data to train the NeRF network, and using radar point cloud data as in-depth supervision, the problem of insufficient prediction accuracy of the 3D model is solved, achieving higher 3D model accuracy and authenticity, and is suitable for automatic Driving and other scenes.

WO2024193622A1PCT designated stage expired Publication Date: 2024-09-26HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/082859
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-21
Filing Date
2024-03-21
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In the construction of three-dimensional scenes in the existing technology, the prediction accuracy of the three-dimensional model is insufficient. Especially in scenarios such as autonomous driving, AR and VR, the depth value prediction is inaccurate when fitting the image and radar point cloud data, which affects the reality of the three-dimensional model. sex and accuracy.

Method used

By combining multi-frame images and radar point cloud data, the NeRF-based 3D construction network is trained, and the radar point cloud data is used as depth supervision to constrain the depth value of the 3D model so that it is closer to the actual depth value, thereby improving the accuracy of the 3D model. and authenticity.

Benefits of technology

It improves the output accuracy and authenticity of 3D models, enhances the geometric consistency of 3D scenes, and improves the image rendering quality in autonomous driving and other application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082859_26092024_PF_FP
    Figure CN2024082859_26092024_PF_FP
Patent Text Reader

Abstract

Provided in the present application are a three-dimensional construction network training method and apparatus, and a three-dimensional model generation method and apparatus in the field of computer vision, which methods and apparatuses are used for performing joint training in combination with a plurality of image frames and radar point cloud data so as to obtain a three-dimensional construction network, and more accurate depth values included in the radar point cloud data can be used for deep supervision, such that the three-dimensional construction network can output a more accurate three-dimensional model. The three-dimensional construction network training method comprises: acquiring a plurality of image frames, and photographic parameters that a photographic device uses when capturing the plurality of image frames, wherein the plurality of image frames comprise images captured from a plurality of angles of view; acquiring radar point cloud data, which comprises photographic scene data; and acquiring a three-dimensional construction network by means of the plurality of image frames, the photographic parameters and the radar point cloud data, wherein the radar point cloud data is used for deep supervision when the three-dimensional construction network performs three-dimensional construction. In this way, a depth value of a three-dimensional model output by a three-dimensional architecture network can be constrained to be closer to a depth value corresponding to an actual application scenario.
Need to check novelty before this filing date? Find Prior Art

Description

A three-dimensional construction network training method, three-dimensional model generation method and device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 21, 2023, with application number 202310310058.5 and invention name “A three-dimensional construction network training method, three-dimensional model generation method and device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of computer vision, and in particular to a three-dimensional construction network training method, a three-dimensional model generation method and a device. Background Art

[0003] Building 3D models is necessary in many scenarios, such as autonomous driving, augmented reality, and virtual reality, all of which require rendering. Some 3D scene modeling and rendering solutions can output a 3D scene model using a trained model. However, the color or depth values ​​of each point in the 3D scene must be fitted by the model before output, which can result in inaccurate predictions. Therefore, improving the accuracy of 3D scene construction has become a pressing issue.

[0004] Summary of the Invention

[0005] The present application provides a three-dimensional construction network training method, a three-dimensional model generation method and an apparatus for jointly training a three-dimensional construction network by combining multiple frames of images and radar point cloud data. The more accurate depth values ​​included in the radar point cloud data can be used as depth supervision, so that the three-dimensional construction network can output a more accurate three-dimensional model.

[0006] In view of this, in a first aspect, the present application provides a three-dimensional construction network training method, including: obtaining multiple frames of images and shooting parameters used by a camera device when shooting the multiple frames of images, the multiple frames of images including images shot from multiple perspectives; obtaining radar point cloud data, the acquisition scene when the radar acquires the radar point cloud data has an intersection with the shooting scene when the camera device shoots the multiple frames of images; obtaining a three-dimensional construction network through the multiple frames of images, the shooting parameters and the radar point cloud data, the three-dimensional construction network can be a network constructed based on neural radiance fields (NeRF), the three-dimensional construction network can be used to perform three-dimensional construction and output a three-dimensional model based on the input data, and the radar point cloud data is used as depth supervision when the three-dimensional construction network performs three-dimensional construction, so as to constrain the depth value of the three-dimensional model output by the three-dimensional construction network to be closer to the depth value corresponding to the actual application scenario.

[0007] Therefore, in the implementation manner of the present application, the information collected by the radar is used as the depth supervision of the model to obtain a more accurate depth, so that the constructed three-dimensional model is more accurate; and the three-dimensional model can be constructed using a real-life scene. Compared with constructing a three-dimensional model using artificially constructed images, the three-dimensional model output by the three-dimensional construction network obtained in this application is more realistic.

[0008] In one possible implementation, the aforementioned acquisition of a three-dimensional construction network using multiple image frames, shooting parameters, and radar point cloud data may include: first, constructing a virtual camera based on the multiple image frames and the shooting parameters to obtain virtual camera data, where the virtual camera data includes images from multiple different perspectives; then, using the virtual camera data as input to the three-dimensional construction network and using the radar point cloud data as deep supervision of the three-dimensional construction network, iteratively training the initial model to obtain the three-dimensional construction network.

[0009] Therefore, in the implementation mode of the present application, a virtual camera can be constructed to generate images from different perspectives, thereby increasing the perspective input when training the three-dimensional construction network, which is equivalent to enriching the training data, thereby making the convergence result of the three-dimensional construction network better and improving the output accuracy of the three-dimensional construction network.

[0010] In a possible implementation, the aforementioned construction of a virtual camera based on multiple frames of images and shooting parameters to obtain virtual camera data includes: obtaining the posture parameters of each frame of the multiple frames of images; projecting the multiple frames of images into the same space according to the posture of each frame of the images to obtain image point cloud data; projecting the image point cloud data based on an enhanced perspective to obtain virtual camera data, where the enhanced perspective is a perspective different from the multiple perspectives.

[0011] Therefore, in the embodiments of the present application, the similarity between pixel points at different perspectives in space can be combined to construct a virtual perspective and generate images of different perspectives, thereby increasing the perspective input for training the three-dimensional construction network and improving the output accuracy of the three-dimensional construction network.

[0012] In a possible implementation, the aforementioned use of radar point cloud data as depth supervision for the three-dimensional construction network includes: fusing radar point cloud data and image point cloud data to obtain depth values ​​of multiple pixels in the same space; and using the depth values ​​of multiple pixels as the three-dimensional construction network for depth supervision of three-dimensional construction.

[0013] Therefore, in the implementation mode of the present application, radar point cloud data can be added as depth supervision for training the three-dimensional construction network, thereby constraining the depth value output by the three-dimensional construction network during the training process of the three-dimensional construction network, so that the depth value of the three-dimensional model output by the three-dimensional construction network is closer to the true depth value, and thus the output three-dimensional model is more realistic.

[0014] In one possible implementation, any one of the aforementioned iterative trainings may include: obtaining at least one first sampling point in a first ray in a first perspective of a three-dimensional model output by the three-dimensional construction network obtained in a previous iteration; obtaining at least one second sampling point in a second ray in a second perspective of the three-dimensional model, where the at least one second sampling point is a point projected on the second ray by the at least one first sampling point, and the first perspective and the second perspective are any different perspectives in the three-dimensional model; obtaining a difference between the first sampling point and the second sampling point; and updating the three-dimensional construction network based on the difference to obtain the updated three-dimensional construction network for the current iteration.

[0015] In an embodiment of the present application, during the process of training the three-dimensional construction network, for the three-dimensional model output by each iteration of the three-dimensional construction network, rays at different perspectives can be collected and projected to obtain points that need to overlap between rays at different perspectives based on spatial geometric consistency. The output error of the three-dimensional construction network is determined based on the projection results, and the three-dimensional construction network is updated, so that the final output result of the three-dimensional construction network is more consistent with the spatial geometric consistency.

[0016] In a possible implementation, the aforementioned obtaining the difference between the first sampling point and the second sampling point includes: obtaining a first depth estimation value of the first sampling point and a second depth estimation value of the second sampling point; and obtaining the difference between the first depth estimation value and the second depth value.

[0017] In the implementation manner of the present application, the reprojection error based on geometric consistency can be calculated from the depth dimension, so as to supervise the output results of the three-dimensional construction network from the depth position and improve the output accuracy of the three-dimensional construction network.

[0018] In a possible implementation, the aforementioned three-dimensional construction network includes: a coding module, a first geometry module, a first color module, a second geometry module, and a second color module;

[0019] The encoding module is used to encode the values ​​of the input pixel points and then input them into the first geometry module, the second geometry module and the second color module respectively;

[0020] The first geometry module and the second geometry module are used to perform geometric construction based on input data and output the geometric structure of the three-dimensional scene. The output accuracy of the second geometry module is higher than the output accuracy of the first geometry module.

[0021] The first color module and the second color module are used to construct colors based on the input data and output the color values ​​of each pixel in the three-dimensional scene. The output accuracy of the second color module is higher than the output accuracy of the first color module. The input of the first color module includes the input of the first geometry module.

[0022] Therefore, in the implementation mode of the present application, high-precision and low-precision geometry and color construction modules are set up respectively, and the high-precision color module and the high-precision geometry module are decoupled, which can realize the parallel construction of geometry and color and improve the output accuracy and output efficiency of the model.

[0023] In one possible implementation, the inputs to the first and second color modules also include depth values. These depth values ​​include values ​​derived from radar point cloud data and may also include depth values ​​predicted by other modules in the 3D construction network. Therefore, during training, depth values ​​can also be used as input to the color module, allowing it to combine depth values ​​to construct colors, thereby improving the accuracy of the color module's output.

[0024] In a possible implementation, the method may further include: acquiring an input pose and camera parameters; and acquiring an output image from the three-dimensional scene based on the input pose and camera parameters.

[0025] In one possible implementation, the three-dimensional model output by the aforementioned three-dimensional construction network is applied to the autonomous driving of the vehicle, so that autonomous driving can be performed based on a more realistic three-dimensional model, thereby improving driving safety.

[0026] In the second aspect, the present application provides a three-dimensional model generation method, including: first, obtaining information of the input perspective, such as perspective pose, camera parameters, etc.; then, using the information of the input perspective as input to a three-dimensional construction network, and outputting a three-dimensional model. The three-dimensional construction network is obtained through multiple frame images, shooting parameters, radar point cloud data, and a three-dimensional construction network. The shooting parameters are parameters used by a camera device when shooting multiple frames of images. The multiple frames of images include images shot from multiple perspectives. The radar point cloud data is data collected by the radar. The collection scene when the radar collects the radar point cloud data has an intersection with the shooting scene when the camera device shoots multiple frames of images.

[0027] In the implementation manner of the present application, when training the three-dimensional construction network, the information collected by the radar can be used as depth supervision of the model to obtain more accurate depth, so that the constructed three-dimensional model is more accurate; and the three-dimensional model can be constructed using real-life captured scenes. Compared with constructing a three-dimensional model using artificially constructed images, the three-dimensional model output by the three-dimensional construction network obtained in this application is more realistic.

[0028] In one possible implementation, the three-dimensional construction network includes: a coding module, a first geometry module, a first color module, a second geometry module, and a second color module;

[0029] The encoding module is used to encode the values ​​of the input pixel points and then input them into the first geometry module, the second geometry module and the second color module respectively;

[0030] The first geometry module and the second geometry module are used to perform geometric construction based on input data and output the geometric structure of the three-dimensional model, and the output accuracy of the second geometry module is higher than the output accuracy of the first geometry module;

[0031] The first color module and the second color module are used to construct colors based on the input data and output the color values ​​of each pixel in the three-dimensional model. The output accuracy of the second color module is higher than the output accuracy of the first color module. The input of the first color module includes the input of the first geometry module.

[0032] Optionally, the training process of the three-dimensional construction network can refer to the training process mentioned in the aforementioned first aspect or any optional implementation manner of the first aspect, and will not be repeated here.

[0033] In a third aspect, the present application provides a three-dimensional construction network training device, comprising:

[0034] An image acquisition module, configured to acquire multiple frames of images and capture parameters used by a camera when capturing multiple frames of images, wherein the multiple frames of images include images captured from multiple perspectives;

[0035] The radar acquisition module is used to obtain radar point cloud data. The acquisition scene when the radar collects radar point cloud data overlaps with the shooting scene when the camera device captures multiple frames of images.

[0036] The processing module is used to obtain a three-dimensional construction network through multiple frame images, shooting parameters and radar point cloud data. The three-dimensional construction network is used to perform three-dimensional construction and output a three-dimensional model based on the input data. The radar point cloud data is used as depth supervision when the three-dimensional construction network performs three-dimensional construction.

[0037] In one possible implementation, the processing module is specifically configured to: construct a virtual camera based on multiple image frames and shooting parameters to obtain virtual camera data, where the virtual camera data includes images from multiple different perspectives; use the virtual camera data as input to a 3D construction network and use the radar point cloud data as deep supervision for the 3D construction network to iteratively train an initial model to obtain the 3D construction network.

[0038] In one possible embodiment, the processing module is specifically used to: obtain the posture parameters of each frame of the multiple frames; project the multiple frames of images into the same space according to the posture of each frame of the images to obtain image point cloud data; project the image point cloud data based on an enhanced perspective to obtain virtual camera data, where the enhanced perspective is a perspective different from the multiple perspectives.

[0039] In one possible implementation, the processing module is specifically used to: fuse radar point cloud data and image point cloud data to obtain depth values ​​of multiple pixel points; and use the depth values ​​of the multiple pixel points as a three-dimensional construction network to perform depth supervision of three-dimensional construction.

[0040] In one possible implementation, any iterative training in the iterative training may include: obtaining at least one first sampling point in a first ray in a first perspective of a three-dimensional model output by the three-dimensional construction network obtained in the previous iteration; obtaining at least one second sampling point in a second ray in a second perspective of the three-dimensional model, where the at least one second sampling point is a point projected on the second ray by the at least one first sampling point, and the first perspective and the second perspective are any different perspectives in the three-dimensional model; obtaining a difference between the first sampling point and the second sampling point; and updating the three-dimensional construction network according to the difference to obtain the updated three-dimensional construction network for the current iteration.

[0041] In a possible implementation, the processing module is specifically configured to: obtain a first depth estimation value of a first sampling point and a second depth estimation value of a second sampling point; and obtain a difference between the first depth estimation value and the second depth value.

[0042] In one possible implementation, the three-dimensional construction network includes: a coding module, a first geometry module, a first color module, a second geometry module, and a second color module;

[0043] The encoding module is used to encode the values ​​of the input pixel points and then input them into the first geometry module, the second geometry module and the second color module respectively;

[0044] The first geometry module and the second geometry module are used to perform geometric construction based on input data and output the geometric structure of the three-dimensional scene. The output accuracy of the second geometry module is higher than the output accuracy of the first geometry module.

[0045] The first color module and the second color module are used to construct colors based on the input data and output the color values ​​of each pixel in the three-dimensional scene. The output accuracy of the second color module is higher than the output accuracy of the first color module. The input of the first color module includes the input of the first geometry module.

[0046] In a possible implementation, the inputs of the first color module and the second color module further include depth supervision obtained based on radar point cloud data.

[0047] In one possible implementation, the device further includes:

[0048] Input module, used to obtain input pose and camera parameters;

[0049] The output module is used to obtain an output image from the 3D scene based on the input pose and camera parameters.

[0050] In one possible implementation, the three-dimensional model output by the three-dimensional construction network can be applied to autonomous driving of a vehicle.

[0051] In a fourth aspect, the present application provides a three-dimensional model generation device, comprising:

[0052] Input module, used to obtain input perspective information;

[0053] The output module is used to use the information of the input perspective as the input of the three-dimensional construction network and output a three-dimensional model. The three-dimensional construction network is obtained through multiple frame images, shooting parameters, radar point cloud data and the three-dimensional construction network. The shooting parameters are the parameters used by the camera device when shooting multiple frame images. The multi-frame images include images shot from multiple perspectives. The radar point cloud data is data collected by the radar. The collection scene when the radar collects the radar point cloud data has an intersection with the shooting scene when the camera device shoots the multiple frame images.

[0054] In one possible implementation, the three-dimensional construction network includes: a coding module, a first geometry module, a first color module, a second geometry module, and a second color module;

[0055] The encoding module is used to encode the values ​​of the input pixel points and then input them into the first geometry module, the second geometry module and the second color module respectively;

[0056] The first geometry module and the second geometry module are used to perform geometric construction based on input data and output the geometric structure of the three-dimensional model, and the output accuracy of the second geometry module is higher than the output accuracy of the first geometry module;

[0057] The first color module and the second color module are used to construct colors based on the input data and output the color values ​​of each pixel in the three-dimensional model. The output accuracy of the second color module is higher than the output accuracy of the first color module. The input of the first color module includes the input of the first geometry module.

[0058] In a possible implementation, the apparatus may further include a training module, which is used to train and obtain the three-dimensional construction network. The steps performed by the training module can be found in the description of the aforementioned first aspect or any optional implementation of the first aspect and will not be repeated here.

[0059] In a fifth aspect, embodiments of the present application provide a 3D construction network training device, comprising: a processor and a memory, wherein the processor and the memory are interconnected via a circuit, and the processor invokes program code in the memory to execute the processing-related functions of any of the 3D construction network training methods described in the first aspect. Optionally, the 3D construction network training device may be a chip.

[0060] In a sixth aspect, embodiments of the present application provide a three-dimensional model generation device, comprising: a processor and a memory, wherein the processor and the memory are interconnected via a circuit, and the processor invokes program code in the memory to execute the processing-related functions of any of the three-dimensional model generation methods described in the second aspect. Optionally, the three-dimensional model generation device may be a chip.

[0061] In the seventh aspect, an embodiment of the present application provides a three-dimensional construction network training device, which can also be called a digital processing chip or chip. The chip includes a processing unit and a communication interface. The processing unit obtains program instructions through the communication interface, and the program instructions are executed by the processing unit. The processing unit is used to perform functions related to processing as described in the first aspect or any optional embodiment of the first aspect.

[0062] In the eighth aspect, an embodiment of the present application provides a three-dimensional model generation device, which can also be called a digital processing chip or chip. The chip includes a processing unit and a communication interface. The processing unit obtains program instructions through the communication interface, and the program instructions are executed by the processing unit. The processing unit is used to perform functions related to processing as described in the second aspect or any optional embodiment of the second aspect.

[0063] In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium comprising instructions, which, when executed on a computer, enables the computer to execute a method in any optional implementation of the first or second aspect above.

[0064] In a tenth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a method in any optional implementation of the first or second aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] FIG1 is a schematic diagram of an artificial intelligence main framework used in this application;

[0066] FIG2 is a schematic diagram of a system architecture provided by this application;

[0067] FIG3 is a schematic diagram of a neural network structure provided in an embodiment of the present application;

[0068] FIG4 is a schematic diagram of a computer system of a neural network provided in an embodiment of the present application;

[0069] FIG5 is a flow chart of a three-dimensional construction network training method provided in an embodiment of the present application;

[0070] FIG6 is a flow chart of another three-dimensional construction network training method provided in an embodiment of the present application;

[0071] FIG7 is a flow chart of another three-dimensional construction network training method provided in an embodiment of the present application;

[0072] FIG8 is a flow chart of another three-dimensional construction network training method provided in an embodiment of the present application;

[0073] FIG9 is a flow chart of another three-dimensional construction network training method provided in an embodiment of the present application;

[0074] FIG10 is a schematic diagram of the structure of a three-dimensional network provided in an embodiment of the present application;

[0075] FIG11 is a schematic diagram of a projection scene with different viewing angles provided by an embodiment of the present application;

[0076] FIG12 is a flow chart of another three-dimensional construction network training method provided in an embodiment of the present application;

[0077] FIG13 is a schematic diagram of a flow chart of a three-dimensional model generation method provided in an embodiment of the present application;

[0078] FIG14 is a schematic structural diagram of a three-dimensional construction network training device provided in an embodiment of the present application;

[0079] FIG15 is a schematic structural diagram of a three-dimensional model generating device provided in an embodiment of the present application;

[0080] FIG16 is a schematic structural diagram of another three-dimensional construction network training device provided in an embodiment of the present application;

[0081] FIG17 is a schematic structural diagram of another three-dimensional model generating device provided in an embodiment of the present application;

[0082] FIG18 is a schematic diagram of a chip structure provided in an embodiment of the present application. DETAILED DESCRIPTION

[0083] The following will describe the technical solutions in the embodiments of this application in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0084] First, let's describe the overall workflow of an AI system. See Figure 1, which shows a schematic diagram of the AI ​​framework. This framework will be explained from two perspectives: the "intelligent information chain" (horizontal axis) and the "IT value chain" (vertical axis). The "intelligent information chain" reflects the entire process from data acquisition to processing. For example, it could be the general process of intelligent information perception, intelligent information representation and formation, intelligent reasoning, intelligent decision-making, and intelligent execution and output. Throughout this process, data undergoes a condensed journey from "data-information-knowledge-wisdom." The "IT value chain," spanning the underlying infrastructure of human intelligence, information (provided and processed by technology), and the system's industrial ecosystem, reflects the value that AI brings to the information technology industry.

[0085] (1) Infrastructure

[0086] Infrastructure provides computing power for AI systems, enabling communication with the outside world and supporting this through a foundational platform. Communication with the outside world occurs through sensors; computing power is provided by intelligent chips, such as central processing units (CPUs), neural-network processing units (NPUs), graphics processing units (GPUs), application-specific integrated circuits (ASICs), or hardware acceleration chips like field programmable gate arrays (FPGAs); the foundational platform includes distributed computing frameworks and networks, along with other related platform guarantees and support, including cloud storage and computing, and interconnected networks. For example, sensors communicate with the outside world to acquire data, which is then fed into the intelligent chips within the distributed computing system provided by the foundational platform for computation.

[0087] (2) Data

[0088] Data above the infrastructure layer represents data sources for AI. This data includes graphics, images, voice, and text, as well as IoT data from traditional devices. This includes business data from existing systems and sensor data such as force, displacement, liquid level, temperature, and humidity.

[0089] (3) Data processing

[0090] Data processing generally includes data training, machine learning, deep learning, search, reasoning, decision-making, etc.

[0091] Among them, machine learning and deep learning can symbolize and formalize data for intelligent information modeling, extraction, preprocessing, and training.

[0092] Reasoning refers to the process of simulating human intelligent reasoning in computers or intelligent systems, using formalized information to perform machine thinking and solve problems based on reasoning control strategies. Typical functions are search and matching.

[0093] Decision-making refers to the process of making decisions after intelligent information is reasoned, and usually provides functions such as classification, sorting, and prediction.

[0094] (4) General ability

[0095] After the data has undergone the data processing mentioned above, some general capabilities can be further formed based on the results of the data processing, such as algorithms or a general system, for example, translation, text analysis, computer vision processing, speech recognition, image recognition, etc.

[0096] (5) Smart products and industry applications

[0097] Smart products and industry applications refer to the products and applications of artificial intelligence systems in various fields. They are the encapsulation of the overall artificial intelligence solution, which productizes intelligent information decision-making and realizes practical application. Its application areas mainly include: smart terminals, smart transportation, smart medical care, autonomous driving, smart cities, etc.

[0098] In some scenarios, such as smart terminals, smart transportation, smart healthcare, autonomous driving, and smart cities, model construction is necessary. For example, in the process of building an AR map, lasers can be used to collect the map's point cloud data, and then this point cloud data can be used to build the AR map. Alternatively, in a smart terminal, a camera can be used to collect point cloud data of the currently captured scene, and then a three-dimensional model of the current scene can be constructed based on this point cloud data. This can then be applied to the terminal's image processing or gaming, thereby improving the user experience. In other words, the method provided in this application is valuable in AI systems, terminal applications, or cloud services.

[0099] 3D reconstruction is required in many application scenarios to obtain a 3D model that matches the environment. For example, in autonomous driving, AR, VR, or other scenarios that require rendering, image-based rendering can be used to obtain a more three-dimensional 3D model.

[0100] With the rapid rise of neural radiance fields (NeRF) in computational vision, the 3D model generation method based on neural radiance fields has also demonstrated its unique advantages over other traditional methods in application scenarios such as autonomous driving, digital humans, and 3D scene modeling.

[0101] Traditional computer graphics-based 3D scene modeling and rendering methods typically require explicit simulation of the scene model and then use a rendering engine to render the 3D scene model into image data from a specific angle. 3D model generation methods based on computer graphics require extensive manual modeling, and the quality of the generated images depends on the sophistication of the scene model and the capabilities of the rendering engine. Furthermore, large-scale image generation requires significant artist investment and the accumulation of 3D assets. However, image generation based on neural radiance fields (NeRFs) uses scene data collected from real scenes for scene construction, resulting in higher fidelity in scene reconstruction and image synthesis. For applications such as autonomous driving that require large-scale image generation, the scale and diversity of scenes can grow exponentially with the amount of collected data. Neural radiance fields (NeRFs) are an emerging method for scene representation and image rendering. They implicitly record scene representations in a deep neural network. Using the deep neural network, they implicitly learn a static 3D scene and indirectly accomplish tasks such as 3D reconstruction and novel view synthesis.

[0102] Typically, NeRF input is a set of image data from multiple viewpoints with known camera parameters. Based on these images, a neural network implicitly learns a static 3D scene. The neural network trained on these images, combined with volume rendering technology, can infer and render the corresponding image data and spatial depth information from any new viewpoint. Volume rendering technology involves calculating the occupancy and color information of the space along any ray emitted from the camera's perspective in the scene. For all points along this ray, the occupancy and color information are accumulated through integration, ultimately obtaining the color and depth information of the pixel corresponding to this ray.

[0103] For example, the NeRF framework can be used to generate images. By inputting a set of sparse views, the underlying continuous volumetric scene function can be optimized to synthesize new views of complex scenes. This approach represents the scene using a fully connected (non-convolutional) deep network whose input is a single continuous 5D coordinate (spatial position (x, y, z) and viewing direction (θ, φ)). Its output is the volume density and view-dependent color information at that spatial position. The view is synthesized by querying the 5D coordinate along camera rays, and the output color and density are projected into the image using classic volume rendering techniques. Because volume rendering is naturally differentiable, the only input required for optimization is a set of images with known camera poses. However, in this image generation approach, the direct input to the network is the sample points on the rays of the image, which are position-encoded. The network is also optimized by training and estimating each sample point individually. In cases where the data viewpoint is sparse (such as autonomous driving scenarios and large outdoor scenes), it is often difficult to recover good geometric information. In addition, the geometric consistency between the sample points of the image pixel rays is not well constrained. The depth output of the network is obtained by integrating volume rendering. The depth prediction value is relatively rough and the effect of generating new perspective images is often poor.

[0104] For example, in some generation methods based on the NeRF network, indoor RGB images can be synthesized from relatively sparse input perspectives. The sparse input perspectives result in fewer input images for training the NeRF network. The pose data and sparse feature point clouds corresponding to the input images are obtained through preprocessing using the structure from motion (SFM) algorithm. Secondly, this method uses the depth completion network to obtain a dense depth map and its depth uncertainty from the sparse point cloud obtained through the preprocessing, which is used to guide the training of the NeRF network. However, although depth prior information is introduced, the dense depth information comes from the depth completion network, and the uncertainty of its depth information is high, and the acquisition of depth information is limited by the depth completion network (for example, a depth completion network must be trained first). In addition, multiple views are trained independently of each other, and the geometric structures of multiple views are not constrained to be consistent in the global space.

[0105] Therefore, the present application provides a three-dimensional construction network training method and a three-dimensional model generation method, which are used to combine data collected by various types of sensors to learn the NeRF-based network architecture to generate a more accurate three-dimensional model, and then generate accurate images from various perspectives based on the accurate three-dimensional model.

[0106] Specifically, the present application provides a 3D construction network training method that can collect multiple frames of images captured from multiple perspectives in an actual scene and the corresponding shooting parameters, and collect radar point cloud data through radar. The radar can send electromagnetic waves in the same scene and generate radar point cloud data based on the received echo signals. Subsequently, a 3D scene is generated using the multiple frames of images, the corresponding shooting parameters, the radar echo data, and the 3D construction network. The 3D construction network can be used to perform 3D construction based on the input data, wherein the radar point cloud data can be used as depth supervision during 3D reconstruction to improve the depth accuracy of each pixel in the 3D scene.

[0107] The three-dimensional model generation method provided in this application can output a three-dimensional model based on the three-dimensional construction network obtained by the aforementioned three-dimensional construction network training method, thereby obtaining an image of the required perspective from the three-dimensional model.

[0108] The aforementioned three-dimensional construction network training method can be understood as a training process, and the three-dimensional model generation method can be understood as the inference side. The three-dimensional construction network training method and the three-dimensional model generation method provided in this application can be applied to terminals, servers or cloud platforms, etc. For example, the three-dimensional construction network training method provided in this application can be deployed on a cloud platform, and the three-dimensional construction network can be trained and output through the cloud platform. The three-dimensional construction network can be sent down and deployed in the terminal, and the terminal can output the three-dimensional model through the three-dimensional construction network and capture the image of the desired perspective from the three-dimensional model. Alternatively, after the cloud platform obtains the three-dimensional construction network through training, the three-dimensional model output by the three-dimensional construction network can be sent down to the terminal, and the terminal can capture the image of the desired perspective from the three-dimensional model.

[0109] The following is an illustrative introduction to some possible system architectures provided by this application.

[0110] Exemplarily, as shown in FIG2 , the 3D construction network training method provided in the present application can be executed by a server cluster 310, that is, the 3D construction network is trained and the trained 3D construction network is sent to the terminal 301 via a communication network so as to deploy the 3D construction network in the terminal 301. The terminal can input a camera pose or camera parameters at any position or angle, and can infer the 3D model corresponding to the scene under this camera pose through the 3D construction network. When the terminal includes a vehicle, the 3D model can be used for automatic driving, real-time navigation, etc. of the vehicle, or the 3D model can be applied to the AR game of the terminal, so that the AR game can be combined with the real scene where the user is, thereby improving the user experience.

[0111] Exemplarily, the 3D construction network training method provided in this application can be executed by a server, and the trained 3D construction network can be deployed in the server. The server can be used to execute the 3D construction network training method provided in this application. The server can receive radar point cloud data, multiple frames of images, and corresponding shooting parameters, etc. sent by the client, or extract radar point cloud data, multiple frames of images, and corresponding shooting parameters, etc. from locally stored data, and then train the 3D construction network using the 3D construction network training method provided in this application. If the point cloud data is sent from the client to the server, the server can feed back the trained 3D construction network to the client.

[0112] The embodiments of the present application involve related applications in the field of neural networks and images. In order to better understand the solutions of the embodiments of the present application, the relevant terms and concepts of the neural networks that may be involved in the embodiments of the present application are first introduced below.

[0113] (1) Neural radiance fields (NeRF)

[0114] The scene expression is recorded in the deep neural network through implicit expression, and a static three-dimensional scene is implicitly learned using the deep neural network to indirectly complete tasks such as three-dimensional reconstruction of the scene and novel view image generation (Novel View Synthesis).

[0115] As shown in Figure 3, NeRF input is a set of image data (must be from multiple viewpoints) with known camera parameters (camera intrinsics and camera pose). Based on these images, a neural network implicitly learns a static 3D scene. The neural network trained on these images, combined with volume rendering technology, can infer and render the corresponding image data and spatial depth information from any new viewpoint. Volume rendering involves calculating the spatial occupancy and color information along any ray emitted from the camera's viewpoint in the scene. The occupancy and color information is accumulated for all points along this ray through integration, ultimately yielding the color and depth information for the pixel corresponding to this ray. As shown in Figure 4, the actual implementation process involves sampling a finite number of points along the ray and modeling a discrete sample space through accumulation. For the pinhole camera model, every pixel in the image can be accumulated for training and inference using this volume rendering approach.

[0116] It should be noted that the three-dimensional construction network provided in this application can be a network built based on NeRF, which can be used to output rendered three-dimensional models.

[0117] (2) Loss function: Also known as cost function, it is a measure of the difference between the predicted output of a machine learning model for a sample and the true value of the sample (also known as the supervised value), that is, it is used to measure the difference between the predicted output of a machine learning model for a sample and the true value of the sample. The loss function can usually include loss functions such as mean square error, cross entropy, logarithm, exponential, etc. For example, the mean square error can be used as a loss function, defined as The specific loss function can be selected according to the actual application scenario.

[0118] It is understandable that the training process of a neural network is to learn how to control spatial transformations, more specifically, to learn the weight matrix. The purpose of training a neural network is to make the output of the neural network as close to the expected value as possible. Therefore, the weight vector of each layer of the neural network in the neural network can be updated according to the difference between the predicted value and the expected value of the current network (of course, the weight vector can usually be initialized before the first update, that is, the parameters of each layer in the deep neural network are pre-configured). For example, if the predicted value of the network is too high, the value of the weight in the weight matrix is ​​adjusted to reduce the predicted value, and after continuous adjustment, the value output by the neural network is close to or equal to the expected value. Specifically, the difference between the predicted value and the expected value of the neural network can be measured by a loss function or an objective function. Taking the loss function as an example, the higher the output value (loss) of the loss function, the greater the difference. The training of the neural network can be understood as the process of minimizing the loss as much as possible. The process of updating the weights of the starting network and training the serial network in the following embodiments of the present application can refer to this process and will not be repeated below.

[0119] (3) Gradient: The derivative vector of the loss function with respect to the parameters.

[0120] (4) Back propagation (BP): An algorithm that calculates the gradient of model parameters based on the loss function and updates the model parameters.

[0121] (5) Point cloud: data formed by multiple points, each point has corresponding information, such as depth, brightness or intensity.

[0122] (6)RGB (red green blue)

[0123] RGB represents the colors of the three channels of red, green, and blue. A variety of colors can be obtained by changing the three color channels of red (R), green (G), and blue (B) and superimposing them on each other.

[0124] The present application provides a 3D construction network training method and a 3D model generation method. It can be understood that the 3D construction network training method and 3D model generation method provided by the present application are respectively divided into a training phase and an inference phase. In the training phase, the training input perspective of the 3D construction network is increased by constructing a virtual perspective, and radar point cloud data is used as depth supervision to train a 3D construction network with more accurate output. In the inference phase, the prediction results of the 3D construction network obtained in the training phase can be used to perform 3D reconstruction, resulting in a more accurate 3D model.

[0125] The training phase and the inference phase can be deployed on the same device or on different devices. For example, the training phase can be performed on a cloud platform or server, and the training data can be collected by the client. The 3D construction network obtained after training can be sent down and deployed on the client to enable the client to output a more accurate 3D model. For another example, both the training phase and the inference phase can be deployed on a local terminal. The terminal can collect multiple frames of images and radar point cloud data and train a 3D construction network. The trained 3D construction network can then be used to output a 3D model at any perspective or pose.

[0126] The method provided by this application is divided into different stages, such as a training stage and an inference stage, for introduction below. The training stage is the neural network training method provided by this application, and the inference stage is the process of the three-dimensional model generation method provided by this application.

[0127] 1. Training Phase

[0128] 5 , which is a flow chart of a three-dimensional construction network training method provided in this application, as described below.

[0129] 501. Acquire multiple frames of images and shooting parameters.

[0130] The multiple frames of images may be captured from multiple perspectives using a camera device, with each perspective capturing one or more frames of images. The capture parameters, i.e., the capture parameters used by the camera device when capturing the multiple frames of images, may include camera intrinsic parameters or camera attitude parameters. For example, camera intrinsic parameters may include preset parameters such as camera pixels, resolution, focal length, and other information. The camera attitude may be determined using a camera coordinate system and a world coordinate system.

[0131] For example, when the method provided in this application is deployed in a vehicle, the imaging device may include a camera installed in the vehicle or a camera or other imaging terminal in the same scene as the vehicle.

[0132] The multi-frame image can specifically be an RGB image, a depth image, an event image, or an image captured by other types of cameras in a real scene, etc., and can be adjusted according to the actual application scenario, and this application does not limit this. The RGB image mentioned below in this application can also be replaced by a depth image or an event image, etc., which will not be repeated below.

[0133] 502. Obtain radar point cloud data.

[0134] Radar point cloud data can include data collected by radar. For example, a radar can emit electromagnetic waves toward a scene to be constructed in three dimensions, receive echo signals, and generate radar point cloud data based on the echo signals. This radar point cloud data can include depth information for multiple points in the scene.

[0135] It should be noted that this application does not limit the execution order of step 501 and step 502. Step 501 can be executed first, step 502 can be executed first, or step 501 and step 502 can be executed simultaneously, depending on the actual application scenario.

[0136] 503. A three-dimensional construction network is obtained by training multiple frames of images, shooting parameters and radar point cloud data.

[0137] Subsequently, the initial 3D reconstruction network can be trained using multiple image frames, shooting parameters, and radar point cloud data to obtain a trained 3D reconstruction network. This trained 3D reconstruction network can be used to output 3D scenes from any perspective. The radar point cloud data can be used for depth supervision during the training of the 3D reconstruction network, thereby improving the depth accuracy of the 3D scenes output by the trained 3D reconstruction network.

[0138] Therefore, in the embodiments of the present application, the three-dimensional construction network can be trained by combining images from multiple perspectives and shooting parameters collected in real scenes, and depth supervision can be performed based on the point cloud data collected by the radar, so that the depth of the three-dimensional scene output by the three-dimensional construction network is more accurate.

[0139] In one possible implementation, a virtual camera can be constructed based on multiple image frames and shooting parameters to obtain virtual camera data, which includes images from multiple different perspectives. The virtual camera data is used as input to a 3D construction network, and radar point cloud data is used as deep supervision for the 3D construction network. The initial model is iteratively trained to obtain the 3D construction network. Therefore, in this embodiment of the application, constructing a virtual camera can increase the training data for the 3D construction network, thereby improving the output accuracy of the 3D construction network.

[0140] In one possible implementation, the specific process of constructing a virtual camera may include: first obtaining the pose parameters of each frame of image, that is, the parameters representing the pose of each frame of image in the three-dimensional scene, projecting each frame of image into the same space according to the pose of each frame of image, obtaining image point cloud data, and then projecting the image point cloud data based on an enhanced perspective to obtain virtual camera data, wherein the enhanced perspective includes a perspective different from the shooting perspective of the multiple frames of image. In the implementation of the present application, multiple frames of image can first be projected into the same space to obtain image point cloud data in the same space, so that image data of more perspectives can be collected from the image point cloud data to obtain virtual camera data. It can be understood that after projecting multiple frames of image into the same space, images of perspectives different from the shooting perspective can be collected from the space, thereby increasing the training input perspective of the three-dimensional construction network and improving the output accuracy of the trained three-dimensional construction network.

[0141] Optionally, when using radar point cloud data for depth supervision, the radar point cloud data can be fused with image point cloud data to obtain depth values ​​for multiple pixels in the image point cloud data. These depth values ​​can then be used as depth supervision for the 3D reconstruction performed by the 3D reconstruction network to train the 3D reconstruction network. Typically, data collected via radar echoes can include more accurate depth values, so these more accurate depth values ​​can be used as depth supervision for training the 3D reconstruction network. This ensures that the depth values ​​of the 3D scene output by the 3D reconstruction network are closer to the true depth values, thereby improving the output accuracy of the 3D reconstruction network.

[0142] Optionally, the three-dimensional construction network may specifically include an encoding module, at least two geometry modules and at least two color modules. The geometry module may be used to reconstruct the geometric structure in the three-dimensional scene, and the color module may be used to reconstruct the color in the three-dimensional scene. The at least two geometry modules may be divided into a low-precision module (or referred to as a first geometry module) and a high-precision module (or referred to as a second geometry module). The output precision of the high-precision module is higher than the output precision of the low-precision module, and generally, the structural complexity of the high-precision geometry module is higher than the structural complexity of the low-precision geometry module. Similarly, the aforementioned at least two color modules may also be divided into a low-precision color module (or referred to as a first color module) and a high-precision color module (or referred to as a second color module). The output precision of the high-precision color module is higher than the output precision of the low-precision color module, and generally, the structural complexity of the high-precision color module is higher than the structural complexity of the low-precision color module.

[0143] Among them, the encoding module can be used to encode the input data, and the output of the encoding module is respectively connected to the input ends of the low-precision geometry module, the high-precision geometry module and the high-precision color module; the output end of the low-precision geometry module is connected to the output module of the three-dimensional construction network; the output end of the low-precision geometry module is also connected to the input end of the low-precision color module; the output end of the high-precision geometry module and the output end of the high-precision color module are respectively connected to the output module; the input ends of the low-precision color module and the high-precision color module can also include depth information collected by radar.

[0144] Therefore, in the embodiment of the present application, the three-dimensional construction network can add a high-precision geometry module and a high-precision color module to the NeRF network, and decouple the reconstruction of color and the reconstruction of geometric structure, and can perform geometric reconstruction and color reconstruction in parallel to improve the efficiency of three-dimensional reconstruction.

[0145] Specifically, any iterative process in the iterative training of the three-dimensional construction network may include: obtaining at least one first sampling point in a first ray in a first perspective in the three-dimensional model output by the three-dimensional construction network obtained in the previous iteration; obtaining at least one second sampling point in a second ray in a second perspective in the three-dimensional model, wherein the at least one second sampling point is a point projected on the second ray by the at least one first sampling point, and the first perspective and the second perspective are any different perspectives in the three-dimensional model; obtaining the difference between the first sampling point and the second sampling point; updating the three-dimensional construction network according to the difference to obtain the three-dimensional construction network after the current iteration update. In the embodiment of the present application, points where rays from different perspectives may intersect can be collected as sampling points, and the three-dimensional construction network can be updated based on the difference between the sampling points on the different rays, so that the points where rays from different perspectives may intersect in the three-dimensional scene output by the three-dimensional construction network are closer to the intersection, thereby improving the realism of the three-dimensional scene output by the three-dimensional construction network.

[0146] Optionally, when calculating the difference between sampling points on different rays, a first depth estimate for the first sampling point and a second depth estimate for the second sampling point can be estimated, thereby obtaining the difference between the first sampling point and the second sampling point based on the difference between the first depth estimate and the second depth estimate. In this embodiment of the present application, points that may intersect between different perspectives in the three-dimensional scene output by the three-dimensional construction network can be made to intersect as much as possible, thereby improving the realism of the three-dimensional scene.

[0147] The above describes the process of the three-dimensional construction network training method provided by the present application. The following describes the three-dimensional construction network training method provided by the present application in more detail in combination with specific application scenarios.

[0148] For example, the process of the three-dimensional construction network training method provided in the present application can be shown in Figure 6, and an exemplary introduction is given by taking the three-dimensional construction network as a network obtained by constructing the NeRF network (hereinafter referred to as the NeRF network) as an example. After collecting multiple frames of images of the real scene from multiple perspectives, the pose of each frame of image is estimated by a three-dimensional reconstruction algorithm. The multiple frames of images can be projected into the same space to obtain dense RGB point cloud data, or image point cloud data. Subsequently, virtual camera data is constructed based on the RGB point cloud data. Both the virtual camera data and the RGB point cloud data are used as training data, and the radar point cloud data is used as depth supervision to train a three-dimensional construction network with decoupling of geometry and color. The stereoscopic vision reprojection error can also be estimated based on geometric consistency, and the three-dimensional construction network is updated based on the error to obtain a three-dimensional construction network that has been updated again.

[0149] The 3D construction network provided in this application can be applied to a variety of scenarios, such as autonomous driving, AR / VR scenarios, high-precision mapping scenarios, or 3D reconstruction scenarios. The following describes the detailed process of the 3D construction network training method provided in this application, using the autonomous driving scenario as an example.

[0150] 1. Generate virtual camera based on tracks

[0151] After collecting multiple frames of data, a 3D reconstruction algorithm can be used to obtain the precise pose information of each image, and then dense RGB point cloud data can be obtained through dense multi-view stereo matching. The 3D reconstruction algorithm can include but is not limited to structure from motion (SFM) or a deep learning-based 3D reconstruction algorithm. This application uses the SFM algorithm as an example for illustrative purposes. The SFM algorithm mentioned below can also be replaced with other 3D reconstruction algorithms, which will not be repeated below.

[0152] Exemplarily, the process of generating a virtual camera may be as shown in FIG7 .

[0153] Multiple frames of images captured by a camera from multiple viewpoints are used as input to the SFM algorithm. The SFM algorithm extracts track feature points and corresponding pose data from the multiple frames, including feature points from multiple observation points in the same space. Specifically, the SFM algorithm can extract stable features in the image to estimate the spatial point cloud. From the multiple viewpoints corresponding to the multiple frames, the real viewpoint t and the real viewpoint t+1 are selected. The real viewpoint t and the real viewpoint t+1 can be interpolated to obtain one or more virtual viewpoints i (or enhanced viewpoints).

[0154] Subsequently, based on the key feature points that appear in both the preceding and following frames of the virtual perspective i, the image within the virtual perspective range is secondary projected, that is, the important feature points are projected to the virtual perspective, thereby generating a virtual perspective image.

[0155] For example, the scenario for generating a virtual camera can be shown in Figure 8. Based on the common view assumption, a track feature point in space can be considered to be continuously observed in the interpolated view between the two original frames, and the neighborhood information of this feature point is also relatively stable. Therefore, a new view can be interpolated from the two viewpoints and projected based on the neighborhood information to obtain the virtual camera view image.

[0156] This is equivalent to inputting the original training image data sequence in the present embodiment. Using the SFM algorithm, we can obtain the track feature points in the scene, that is, the trajectory connecting the matching points corresponding to a 3D point at different viewpoints, as well as the pose data corresponding to each track feature point. Based on the common view assumption and pose interpolation, we can obtain the pose data of the virtual viewpoint. Then, through the back projection of the track feature points, we can obtain the camera data of the virtual viewpoint.

[0157] Typically, the data perspective in large outdoor scenes and autonomous driving scenes is often relatively limited, resulting in the sparsity of the training data perspective, which ultimately affects the accurate recovery of the scene's geometric structure. The generation of virtual cameras based on tracks feature points can increase the perspective input of the training data, enhance the importance of tracks feature points in the NeRF network, and improve the recovery of scene geometric information. The tracks feature points obtained by the SFM algorithm have strong features and strong geometric consistency in space. By generating virtual camera perspectives, the NeRF network's memory and learning of these strong feature points can be enhanced, improving the accuracy of scene geometric information recovery. In addition, the color of an object is usually related to the camera's observation angle. By increasing the observation angle, the training data for the NeRF network can be increased, and the output accuracy of the NeRF network can be improved.

[0158] It can be understood that this application proposes a virtual camera generation method based on tracks, a display model of the scene based on SFM, enhances the role of strong feature points in the implicit expression of the scene, increases the training input perspective of the NeRF network, and can weaken the problem of limited perspective of autonomous driving scene data collection.

[0159] 2. Deep Supervision

[0160] The SFM algorithm generates a dense RGB color point cloud and the corresponding precise camera pose data from the input image sequence. However, the scale obtained from the image may differ from the scale of the scene. Therefore, to ensure that the scale learned by the NeRF network is more accurate, a scale-inclusive point cloud registration algorithm can be used to align the radar point cloud data with the RGB point cloud data. The resulting fused point cloud data serves as deep supervision for NeRF network training.

[0161] For example, as shown in Figure 9, in addition to obtaining RGB point cloud data through the SFM algorithm, radar point cloud data can also be obtained by accumulating multiple frames of input data from the radar. The radar point cloud data and RGB point cloud data can be aligned using algorithms such as the scaling iterative closest point (SICP) or the generalized iterative closest point (SGICP) algorithm to obtain fused point cloud data.

[0162] Generally, the radar point cloud data collected by the radar can more accurately reflect the depth of each point in the scene. Aligning the depth value included in the radar point cloud data with each pixel in the RGB point cloud data is equivalent to assigning a true depth value to each pixel in the RGB point cloud data, which serves as the depth supervision for training the NeRF network, so that the estimated depth value of the three-dimensional model output by the NeRF network is closer to the true depth value and more accurate.

[0163] 3. 3D network structure construction and training

[0164] The three-dimensional construction network may be a network constructed based on a NeRF network. For example, taking the three-dimensional construction network including four construction modules as an example, the structure of the three-dimensional construction network provided by this application may be specifically shown in FIG10 .

[0165] The three-dimensional building module may include at least one encoding module and a plurality of building modules.

[0166] The encoding module can be used to convert input data into vectors that can be recognized by the subsequent network. The encoding module can specifically adopt a model such as a hash grid encoding module (Hash-Grid Encoder), a time domain filter, or a spatial filter. This application exemplarily introduces the encoding module as a hash grid encoding module. The hash grid encoding module mentioned below can also be replaced with other encoding models, which will not be repeated below.

[0167] The building module can adopt a multilayer perceptron (MLP), and of course it can also be replaced by other neural networks. There is no limitation here. The structure or weight and other parameters between different building modules can be different.

[0168] For example, the three-dimensional building module may specifically include a hash grid coding module, a Sigma MLP, an RGB MLP, a Sigma MLP*, and an RGB MLP* module.

[0169] Both Sigma MLP and Sigma MLP* can be used to geometrically reconstruct 3D scenes, with the Sigma MLP* achieving higher output accuracy. Generally, the network structure complexity of the Sigma MLP* is higher than that of the Sigma MLP. For example, the number of network layers in the Sigma MLP* is greater than that in the Sigma MLP, or the number of neurons in the Sigma MLP* is greater than that in the Sigma MLP.

[0170] RGB MLP and RGB MLP* can be used to reconstruct the colors of 3D scenes, with the RGB MLP* achieving higher output accuracy. Generally, the RGB MLP* has a higher structural complexity than the RGB MLP, such as having more network layers and more weight parameters than the RGB MLP. This results in a more complex network structure that achieves higher output accuracy.

[0171] The inputs to the Sigma MLP, Sigma MLP*, and RGB MLP* include the output of the hash grid encoding module, and the input to the RGB MLP may include the output of the Sigma MLP. During training, the input to the RGB MLP may also include depth supervision, namely the aforementioned fused point cloud data, and the input to the RGB MLP* may also include fused point cloud data. Generally, radar point cloud data collected by radar can more accurately represent the depth values ​​in the real scene. Therefore, radar point cloud data can be used as depth supervision or depth guidance to make the depth values ​​of the 3D scene output by the NeRF network closer to the depth values ​​in the actual scene.

[0172] After obtaining the RGB point cloud data and the fused point cloud data, the specific training process may include: the network can be pre-trained using the fused point cloud data (the first round of training), and then the initial weights of the NeRF network can be obtained; then the initialized scene model can be re-tuned using the RGB image sequence in the training set (the second round of training) to obtain the trained NeRF network, which can then output voxels of the three-dimensional scene.

[0173] Therefore, in the implementation of this application, the depth values ​​in the three-dimensional scene can be supervised by fusing the real depth values ​​included in the point cloud data, making the depth values ​​of the three-dimensional scene output by the NeRF network closer to the depth values ​​in the actual scene, thereby improving the accuracy of the network's depth output. In addition, for high-precision modules, the geometry (sigma) and color (color) estimation networks are decoupled, improving the parallelism of the network model and the color fitting ability, improving the rendering quality of RGB images, and accelerating the training and reasoning efficiency of the NeRF network.

[0174] 4. Stereo Vision Reprojection Error

[0175] Typically, to improve NeRF networks, observations of the same sampling point from different viewpoints can be used to further calibrate the network's output, thereby increasing its accuracy. For example, in a neural radiation field constructed from multiple views, the same object is often observable from adjacent viewpoints. Therefore, adding geometric consistency constraints to observations of the same object can make the network's output more accurate and improve the NeRF network's ability to estimate volume density.

[0176] For example, the reprojection error can be calculated as shown in Figures 11 and 12. For each pixel at the viewing angle f, the emitted ray R f (o f ,d f ), sample along the ray to obtain a series of sample points z f , the NeRF network can be used to estimate the weights ω of these sample points f (z f ), and then synthesize the depth and color information of the corresponding pixel. For another perspective t, a series of rays can be emitted to hit the sample points of the rays of perspective f to evaluate the consistency of the rays of the two perspectives in the same scene. The consistency of perspective t can be described by the following formula:

[0177] in, is the depth value of the sampling point in the perspective f projected on the perspective t, K ∈is a Gaussian distribution, and ∈ is half the length of the neighborhood interval. The consistency of the multi-view neural radiation field can be described as follows:

[0178] Where, is the depth estimate of any pixel ray at view angle f.

[0179] Based on the designed consistent neural radiance field, the multi-view stereo vision reprojection error (stereo loss) is used to optimize the consistency of the model, while integrating the scene's geometric error and photometric (color) error. In the actual optimization process, training is performed using small image blocks as the basic unit to avoid single-pixel ambiguity in areas with weak or repeated textures. The stereo loss is designed as follows:

[0180] Where, I f is the pixel corresponding to the small block of the original training image of view f, The pixels corresponding to the image patch are accumulated based on the weights estimated at the sampling points at view angle t. Stereo loss can effectively constrain the consistency of different viewpoints of the scene, improving the geometric quality of the scene without affecting the RGB image rendering.

[0181] 2. Reasoning Stage

[0182] Referring to FIG13 , a flow chart of a three-dimensional model generation method provided in the present application is shown as follows.

[0183] 1301. Obtain input perspective information.

[0184] The input posture information may specifically include information such as the camera posture or camera parameters of the input viewing angle.

[0185] For example, in an autonomous driving scenario, when it is necessary to capture images of the vehicle's driving direction, the perspective of the vehicle's current driving direction can be input to obtain a three-dimensional scene in front of the vehicle.

[0186] 1302. Use the input perspective information as input to the three-dimensional construction network and output a three-dimensional model.

[0187] Among them, the trained three-dimensional construction network can be obtained through the three-dimensional construction network training method provided in this application, the input perspective information is used as the input of the three-dimensional construction network, and the trained three-dimensional construction network outputs a three-dimensional model, which can be used to represent the three-dimensional image under the input perspective.

[0188] It should be noted that the training process of the three-dimensional construction network can refer to the relevant descriptions in Figures 5 to 12 above, and will not be repeated here.

[0189] Therefore, in the embodiment of the present application, the three-dimensional construction network can be trained by combining images of multiple perspectives and shooting parameters collected in real scenes, and depth supervision can be performed based on the point cloud data collected by the radar, so that the depth of the three-dimensional scene output by the three-dimensional construction network is more accurate, and a more accurate three-dimensional model is output by the trained three-dimensional construction network. For example, in the field of autonomous driving, as a new generation of image data synthesizer applied to the simulation platform of autonomous driving, it has lower cost, higher image fidelity and better scene diversity than the CG image synthesis method. For example, in the field of new perspective image synthesis, key indicators of image rendering quality, such as peak signal to noise ratio (PSNR), have reached SOTA (State of the Arts), achieving better three-dimensional modeling effects.

[0190] The above describes the process of the method provided in this application. The following describes the device for executing the method provided in this application in combination with the above method process.

[0191] Referring to FIG14 , a schematic diagram of the structure of a 3D construction network training device provided by the present application, the 3D construction network training device includes:

[0192] An image acquisition module 1401 is configured to acquire multiple frames of images and capture parameters used by a camera when capturing multiple frames of images, wherein the multiple frames of images include images captured from multiple perspectives;

[0193] The radar acquisition module 1402 is used to acquire radar point cloud data. The acquisition scene when the radar acquires the radar point cloud data and the shooting scene when the camera device captures multiple frames of images have an intersection;

[0194] Processing module 1403 is used to obtain a three-dimensional construction network through multiple frame images, shooting parameters and radar point cloud data. The three-dimensional construction network is used to perform three-dimensional construction and output a three-dimensional model based on the input data. The radar point cloud data is used as depth supervision when the three-dimensional construction network performs three-dimensional construction.

[0195] In one possible implementation, processing module 1403 is specifically configured to: construct a virtual camera based on multiple image frames and shooting parameters to obtain virtual camera data, where the virtual camera data includes images from multiple different perspectives; use the virtual camera data as input to a 3D construction network and use the radar point cloud data as deep supervision for the 3D construction network to iteratively train an initial model to obtain the 3D construction network.

[0196] In one possible implementation, the processing module 1403 is specifically used to: obtain the posture parameters of each frame image in the multiple frames; project the multiple frames of images into the same space according to the posture of each frame image to obtain image point cloud data; project the image point cloud data based on an enhanced perspective to obtain virtual camera data, where the enhanced perspective is a perspective different from the multiple perspectives.

[0197] In one possible implementation, the processing module is specifically used to: fuse radar point cloud data and image point cloud data to obtain depth values ​​of multiple pixel points; and use the depth values ​​of the multiple pixel points as a three-dimensional construction network to perform depth supervision of three-dimensional construction.

[0198] In one possible implementation, any iterative training in the iterative training may include: obtaining at least one first sampling point in a first ray in a first perspective of a three-dimensional model output by the three-dimensional construction network obtained in the previous iteration; obtaining at least one second sampling point in a second ray in a second perspective of the three-dimensional model, where the at least one second sampling point is a point projected on the second ray by the at least one first sampling point, and the first perspective and the second perspective are any different perspectives in the three-dimensional model; obtaining a difference between the first sampling point and the second sampling point; and updating the three-dimensional construction network according to the difference to obtain the updated three-dimensional construction network for the current iteration.

[0199] In a possible implementation, the processing module 1403 is specifically configured to: obtain a first depth estimation value of a first sampling point and a second depth estimation value of a second sampling point; and obtain a difference between the first depth estimation value and the second depth value.

[0200] In one possible implementation, the three-dimensional construction network includes: a coding module, a first geometry module, a first color module, a second geometry module, and a second color module;

[0201] The encoding module is used to encode the values ​​of the input pixel points and then input them into the first geometry module, the second geometry module and the second color module respectively;

[0202] The first geometry module and the second geometry module are used to perform geometric construction based on input data and output the geometric structure of the three-dimensional scene. The output accuracy of the second geometry module is higher than the output accuracy of the first geometry module.

[0203] The first color module and the second color module are used to construct colors based on the input data and output the color values ​​of each pixel in the three-dimensional scene. The output accuracy of the second color module is higher than the output accuracy of the first color module. The input of the first color module includes the input of the first geometry module.

[0204] In a possible implementation, the inputs of the first color module and the second color module further include depth supervision obtained based on radar point cloud data.

[0205] In one possible implementation, the device further includes:

[0206] Input module 1404, used to obtain input pose and camera parameters;

[0207] The output module 1405 is configured to obtain an output image from the three-dimensional scene based on the input pose and camera parameters.

[0208] In one possible implementation, the three-dimensional model output by the three-dimensional construction network can be applied to autonomous driving of a vehicle.

[0209] Referring to FIG15 , a schematic diagram of the structure of a three-dimensional model generation device provided by the present application, the three-dimensional model generation device may include:

[0210] Input module 1501, used to obtain input perspective information;

[0211] Output module 1502 is used to use the input perspective information as input to a three-dimensional construction network and output a three-dimensional model. The three-dimensional construction network is obtained through multiple frame images, shooting parameters, radar point cloud data, and the three-dimensional construction network. The shooting parameters are parameters used by the camera device when shooting multiple frame images. The multiple frame images include images shot from multiple perspectives. The radar point cloud data is data collected by the radar. The collection scene when the radar collects the radar point cloud data and the collection scene when the camera device shoots the multiple frame images have an intersection.

[0212] In one possible implementation, the three-dimensional construction network includes: a coding module, a first geometry module, a first color module, a second geometry module, and a second color module;

[0213] The encoding module is used to encode the values ​​of the input pixel points and then input them into the first geometry module, the second geometry module and the second color module respectively;

[0214] The first geometry module and the second geometry module are used to perform geometric construction based on input data and output the geometric structure of the three-dimensional model, and the output accuracy of the second geometry module is higher than the output accuracy of the first geometry module;

[0215] The first color module and the second color module are used to construct colors based on the input data and output the color values ​​of each pixel in the three-dimensional model. The output accuracy of the second color module is higher than the output accuracy of the first color module. The input of the first color module includes the input of the first geometry module.

[0216] In a possible embodiment, the above-mentioned device may also include a training module 1503, which is used to train to obtain a three-dimensional construction network. The training module can be used to execute the process of the three-dimensional construction network training method provided in this application. Please refer to the introduction of the above-mentioned training stage for details, which will not be repeated here.

[0217] Please refer to FIG16 , which is a schematic structural diagram of another three-dimensional construction network training device provided in this application, as described below.

[0218] The three-dimensional construction network training device may include a processor 1601 and a memory 1602. The processor 1601 and the memory 1602 are interconnected via a circuit. The memory 1602 stores program instructions and data.

[0219] The program instructions and data corresponding to the steps in Figures 5 to 12 are stored in the memory 1602. More specifically, the processor may be a processor for processing images, such as a GPU or a CPU for processing images.

[0220] The processor 1601 is used to execute the method steps performed by the three-dimensional construction network training device shown in any of the embodiments in Figures 5 to 12 above.

[0221] Optionally, the three-dimensional construction network training device may further include a transceiver 1603 for receiving or sending data.

[0222] Optionally, the three-dimensional construction network training device shown in the aforementioned FIG16 is a chip.

[0223] Please refer to FIG17 , which is a schematic structural diagram of another three-dimensional model generating device provided in this application, as described below.

[0224] The three-dimensional model generation device may include a processor 1701 and a memory 1702. The processor 1701 and the memory 1702 are interconnected via a circuit. The memory 1702 stores program instructions and data.

[0225] The memory 1702 stores program instructions and data corresponding to the steps in Figure 13. More specifically, the processor may be a processor for processing images, such as a GPU or a CPU for processing images.

[0226] The processor 1701 is used to execute the method steps performed by the three-dimensional model generation device shown in any embodiment of Figure 13 above.

[0227] Optionally, the three-dimensional model generating apparatus may further include a transceiver 1703 for receiving or sending data.

[0228] Optionally, the three-dimensional model generating device shown in the aforementioned FIG. 17 is a chip.

[0229] A computer-readable storage medium is also provided in an embodiment of the present application. The computer-readable storage medium stores a program, which, when executed on a computer, enables the computer to execute the steps of the method described in the embodiments shown in the aforementioned Figures 5 to 13.

[0230] The present application also provides a digital processing chip. The digital processing chip integrates circuitry and one or more interfaces for implementing the aforementioned processor 1601 / 1701, or the functions of processor 1601 / 1701. When the digital processing chip integrates memory, it can perform the method steps of any one or more of the aforementioned embodiments. When the digital processing chip does not integrate memory, it can be connected to an external memory via a communication interface. The digital processing chip implements the actions in the aforementioned embodiments based on program code stored in the external memory.

[0231] An embodiment of the present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the steps of the method described in the embodiments shown in Figures 5 to 13 above.

[0232] The three-dimensional construction network training device or three-dimensional model generation device provided in the embodiments of the present application can be a chip, which may include: a processing unit and a communication unit. The processing unit may be, for example, a processor, and the communication unit may be, for example, an input / output interface, a pin or a circuit. The processing unit can execute the computer-executable instructions stored in the storage unit so that the chip in the server executes the method described in the embodiments shown in Figures 5 to 13 above. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc. The storage unit may also be a storage unit located outside the chip in the wireless access device, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc.

[0233] Specifically, the aforementioned processing unit or processor may be a central processing unit (CPU), a neural-network processing unit (NPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0234] For example, see Figure 18, which is a schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip can be represented as a neural network processor NPU 180. NPU 180 is mounted on the host CPU (host CPU) as a coprocessor and assigned tasks by the host CPU. The core of the NPU is arithmetic circuit 1803, which is controlled by controller 1804 to extract matrix data from memory and perform multiplication operations.

[0235] In some implementations, arithmetic circuit 1803 includes multiple processing engines (PEs). In some implementations, arithmetic circuit 1803 is a two-dimensional systolic array. Arithmetic circuit 1803 can also be a one-dimensional systolic array or other electronic circuitry capable of performing mathematical operations such as multiplication and addition. In some implementations, arithmetic circuit 1803 is a general-purpose matrix processor.

[0236] For example, assume there are input matrix A, weight matrix B, and output matrix C. The arithmetic circuit retrieves the corresponding data of matrix B from weight memory 1802 and caches it on each PE in the arithmetic circuit. The arithmetic circuit retrieves the data of matrix A from input memory 1801 and performs a matrix operation on matrix B. The partial or final matrix result is stored in accumulator 1808.

[0237] Unified memory 1806 is used to store input and output data. Weight data is directly transferred to weight memory 1802 via direct memory access controller (DMAC) 1805. Input data is also transferred to unified memory 1806 via DMAC.

[0238] The bus interface unit (BIU) 1810 is used for interaction between the AXI bus, the DMAC, and the instruction fetch buffer (IFB) 1809.

[0239] The bus interface unit 1810 (BIU) is used for the instruction fetch memory 1809 to obtain instructions from the external memory, and is also used for the storage unit access controller 1805 to obtain the original data of the input matrix A or the weight matrix B from the external memory.

[0240] DMAC is mainly used to move input data in the external memory DDR to the unified memory 1806 or to move weight data to the weight memory 1802 or to move input data to the input memory 1801.

[0241] The vector calculation unit 1807 includes multiple operation processing units. When necessary, it further processes the output of the operation circuit, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc. It is mainly used for non-convolutional / fully connected layer network calculations in neural networks, such as batch normalization, pixel-level summation, and upsampling of feature planes.

[0242] In some implementations, the vector calculation unit 1807 can store the processed output vector to the unified memory 1806. For example, the vector calculation unit 1807 can apply a linear function and / or a nonlinear function to the output of the operation circuit 1803, such as linear interpolation of the feature plane extracted by the convolution layer, or accumulate a vector of values ​​to generate an activation value. In some implementations, the vector calculation unit 1807 generates a normalized value, a pixel-level summed value, or both. In some implementations, the processed output vector can be used as an activation input to the operation circuit 1803, for example, for use in a subsequent layer in a neural network.

[0243] An instruction fetch buffer 1809 connected to the controller 1804 is used to store instructions used by the controller 1804;

[0244] Unified memory 1806, input memory 1801, weight memory 1802, and instruction fetch memory 1809 are all on-chip memories. External memories are private to the NPU hardware architecture.

[0245] Among them, the operations of each layer in the recurrent neural network can be performed by the operation circuit 1803 or the vector calculation unit 1807.

[0246] The processor mentioned in any of the above places may be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of the program of the method of Figures 5 to 13 above.

[0247] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.

[0248] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general-purpose hardware, and of course can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits, or dedicated circuits. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc., including a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0249] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0250] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website, a computer, a server, or a data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0251] The terms "first," "second," "third," "fourth," and the like (if any) in the specification and claims of this application and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0252] Finally, it should be noted that the above is only a specific implementation method of the present application, but the protection scope of the present application is not limited to this. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the protection scope of the present application.

Claims

1. A three-dimensional construction network training method, characterized in that: include: Acquire multiple frames of images and shooting parameters used by a camera device when shooting the multiple frames of images, wherein the multiple frames of images include images shot from multiple perspectives; Acquire radar point cloud data, where a collection scene when the radar collects the radar point cloud data and a shooting scene when the camera device shoots the multiple frames of images have an intersection; A three-dimensional construction network is obtained through the multiple frames of images, the shooting parameters and the radar point cloud data. The three-dimensional construction network is used to perform three-dimensional construction and output a three-dimensional model based on the input data. The radar point cloud data is used as depth supervision when the three-dimensional construction network performs three-dimensional construction.

2. The method according to claim 1, characterized in that The step of acquiring a three-dimensional constructed network through the multiple frames of images, the shooting parameters, and the radar point cloud data includes: Constructing a virtual camera according to the multiple frames of images and the shooting parameters to obtain virtual camera data, wherein the virtual camera data includes images of perspectives different from the multiple perspectives; The virtual camera data is used as the input of the three-dimensional construction network and the radar point cloud data is used as the depth supervision of the three-dimensional construction network, and the initial model is iteratively trained to obtain the three-dimensional construction network.

3. The method according to claim 2, characterized in that The step of constructing a virtual camera according to the multiple frames of images and the shooting parameters to obtain virtual camera data includes: Obtaining the pose parameters of each frame of the multiple frames of images; Projecting the multiple frames of images into the same space according to the position and posture of each frame of image to obtain image point cloud data; The image point cloud data is projected based on an enhanced viewing angle to obtain the virtual camera data, where the enhanced viewing angle is a viewing angle different from the multiple viewing angles.

4. The method according to claim 3, characterized in that The method of using the radar point cloud data as the depth supervision of the three-dimensional construction network includes: Fusing the radar point cloud data and the image point cloud data to obtain depth values ​​of a plurality of pixel points; The depth values ​​of the multiple pixel points are used as depth supervision for the three-dimensional construction of the three-dimensional construction network.

5. The method according to any one of claims 2 to 4, characterized in that: Any one of the iterative trainings includes: Obtain at least one first sampling point in a first ray in a first perspective in a three-dimensional model output by a three-dimensional construction network obtained in a previous iteration; Acquire at least one second sampling point in a second ray in a second viewing angle in the three-dimensional model, where the at least one second sampling point is a point where the at least one first sampling point is projected on the second ray, and the first viewing angle and the second viewing angle are any different viewing angles in the three-dimensional model; Obtaining a difference between the first sampling point and the second sampling point; The three-dimensional construction network is updated according to the difference to obtain the three-dimensional construction network after the current iteration update.

6. The method according to claim 5, characterized in that The obtaining the difference between the first sampling point and the second sampling point includes: Acquire a first depth estimation value of the first sampling point and a second depth estimation value of the second sampling point; A difference between the first depth estimation value and the second depth value is obtained.

7. The method according to any one of claims 1 to 6, characterized in that The three-dimensional construction network includes: a coding module, a first geometry module, a first color module, a second geometry module and a second color module; The encoding module is used to encode the values ​​of the input pixel points and then input them into the first geometry module, the second geometry module and the second color module respectively; The first geometry module and the second geometry module are used to perform geometric construction based on input data and output a geometric structure of a three-dimensional scene, and the output accuracy of the second geometry module is higher than the output accuracy of the first geometry module; The first color module and the second color module are used to construct colors based on input data and output the color value of each pixel in the three-dimensional scene. The output accuracy of the second color module is higher than the output accuracy of the first color module. The input of the first color module includes the input of the first geometry module.

8. The method according to claim 7, characterized in that The inputs of the first color module and the second color module also include depth values, and the depth values ​​include values ​​obtained according to the radar point cloud data.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: Get input pose and camera parameters; An output image is obtained from the three-dimensional scene based on the input pose and the camera parameters.

10. The method according to any one of claims 1 to 9, characterized in that The three-dimensional model output by the three-dimensional construction network is applied to the automatic driving of the vehicle.

11. A three-dimensional model generation method, characterized in that: include: Get the input perspective information; The information of the input viewing angle is used as the input of a three-dimensional construction network, and a three-dimensional model is output. The three-dimensional construction network is obtained through multiple frame images, shooting parameters, the radar point cloud data, and the three-dimensional construction network. The shooting parameters are parameters used by a camera device when shooting the multiple frame images. The multiple frame images include images shot from multiple viewing angles. The radar point cloud data is data collected by a radar. The collection scene when the radar collects the radar point cloud data has an intersection with the collection scene when the camera device shoots the multiple frame images.

12. The method according to claim 11, characterized in that The three-dimensional construction network includes: a coding module, a first geometry module, a first color module, a second geometry module and a second color module; The encoding module is used to encode the values ​​of the input pixel points and then input them into the first geometry module, the second geometry module and the second color module respectively; The first geometry module and the second geometry module are used to perform geometry construction based on input data and output a geometry structure of a three-dimensional model, and the output accuracy of the second geometry module is higher than the output accuracy of the first geometry module; The first color module and the second color module are used to construct colors based on input data and output the color value of each pixel in the three-dimensional model. The output accuracy of the second color module is higher than the output accuracy of the first color module. The input of the first color module includes the input of the first geometry module.

13. A three-dimensional construction network training device, characterized in that: include: An image acquisition module, used to acquire multiple frames of images and shooting parameters used by a camera device when shooting the multiple frames of images, wherein the multiple frames of images include images shot from multiple viewing angles; A radar acquisition module, used for acquiring radar point cloud data, wherein an acquisition scene when the radar acquires the radar point cloud data and a shooting scene when the camera device shoots the multiple frames of images have an intersection; A processing module is used to obtain a three-dimensional construction network through the multiple frames of images, the shooting parameters and the radar point cloud data. The three-dimensional construction network is used to perform three-dimensional construction and output a three-dimensional model based on the input data. The radar point cloud data is used as depth supervision when the three-dimensional construction network performs three-dimensional construction.

14. The device according to claim 13, characterized in that The processing module is specifically used for: Constructing a virtual camera according to the multiple frames of images and the shooting parameters to obtain virtual camera data, wherein the virtual camera data includes images of perspectives different from the multiple perspectives; The virtual camera data is used as the input of the three-dimensional construction network and the radar point cloud data is used as the depth supervision of the three-dimensional construction network, and the initial model is iteratively trained to obtain the three-dimensional construction network.

15. The device according to claim 14, characterized in that The processing module is specifically used for: Obtaining the pose parameters of each frame of the multiple frames of images; Projecting the multiple frames of images into the same space according to the position and posture of each frame of image to obtain image point cloud data; The image point cloud data is projected based on an enhanced viewing angle to obtain the virtual camera data, where the enhanced viewing angle is a viewing angle different from the multiple viewing angles.

16. The device according to claim 15, characterized in that The processing module is specifically used for: Fusing the radar point cloud data and the image point cloud data to obtain depth values ​​of a plurality of pixel points; The depth values ​​of the multiple pixel points are used as depth supervision for the three-dimensional construction of the three-dimensional construction network.

17. The device according to any one of claims 14 to 16, characterized in that Any one of the iterative trainings includes: Obtain at least one first sampling point in a first ray in a first perspective in a three-dimensional model output by a three-dimensional construction network obtained in a previous iteration; Acquire at least one second sampling point in a second ray in a second viewing angle in the three-dimensional model, where the at least one second sampling point is a point where the at least one first sampling point is projected on the second ray, and the first viewing angle and the second viewing angle are any different viewing angles in the three-dimensional model; Obtaining a difference between the first sampling point and the second sampling point; The three-dimensional construction network is updated according to the difference to obtain the three-dimensional construction network after the current iteration update.

18. The device according to claim 17, characterized in that The processing module is specifically used for: Acquire a first depth estimation value of the first sampling point and a second depth estimation value of the second sampling point; A difference between the first depth estimation value and the second depth value is obtained.

19. The device according to any one of claims 13 to 18, characterized in that The three-dimensional construction network includes: a coding module, a first geometry module, a first color module, a second geometry module and a second color module; The encoding module is used to encode the values ​​of the input pixel points and then input them into the first geometry module, the second geometry module and the second color module respectively; The first geometry module and the second geometry module are used to perform geometric construction based on input data and output a geometric structure of a three-dimensional scene, and the output accuracy of the second geometry module is higher than the output accuracy of the first geometry module; The first color module and the second color module are used to construct colors based on input data and output the color value of each pixel in the three-dimensional scene. The output accuracy of the second color module is higher than the output accuracy of the first color module. The input of the first color module includes the input of the first geometry module.

20. The device according to claim 19, characterized in that The inputs of the first color module and the second color module also include depth values, and the depth values ​​include values ​​obtained according to the radar point cloud data.

21. The device according to any one of claims 13 to 20, characterized in that The device also includes: Input module, used to obtain input pose and camera parameters; An output module is used to obtain an output image from the three-dimensional scene based on the input posture and the camera parameters.

22. The device according to any one of claims 13 to 21, characterized in that The three-dimensional model output by the three-dimensional construction network is applied to the automatic driving of the vehicle.

23. A three-dimensional model generating device, characterized in that: include: An input module, used to obtain information of input viewing angle; An output module is used to use the information of the input perspective as an input of a three-dimensional construction network and output a three-dimensional model. The three-dimensional construction network is obtained through multiple frame images, shooting parameters, the radar point cloud data and the three-dimensional construction network. The shooting parameters are parameters used by a camera device when shooting the multiple frame images. The multiple frame images include images shot from multiple perspectives. The radar point cloud data is data collected by a radar. The collection scene when the radar collects the radar point cloud data has an intersection with the collection scene when the camera device shoots the multiple frame images.

24. The device according to claim 23, characterized in that The three-dimensional construction network includes: a coding module, a first geometry module, a first color module, a second geometry module and a second color module; The encoding module is used to encode the values ​​of the input pixel points and then input them into the first geometry module, the second geometry module and the second color module respectively; The first geometry module and the second geometry module are used to perform geometry construction based on input data and output a geometry structure of a three-dimensional model, and the output accuracy of the second geometry module is higher than the output accuracy of the first geometry module; The first color module and the second color module are used to construct colors based on input data and output the color value of each pixel in the three-dimensional model. The output accuracy of the second color module is higher than the output accuracy of the first color module. The input of the first color module includes the input of the first geometry module.

25. A three-dimensional construction network training device, characterized in that: The method comprises a processor, wherein the processor is coupled to a memory, wherein the memory stores a program, and when the program instructions stored in the memory are executed by the processor, the steps of the method according to any one of claims 1 to 10 are implemented.

26. A three-dimensional model generating device, characterized in that: The method comprises a processor, wherein the processor is coupled to a memory, wherein the memory stores a program, and when the program instructions stored in the memory are executed by the processor, the steps of the method according to any one of claims 11 to 12 are implemented.

27. A computer-readable storage medium comprising a program, which, when executed by a processing unit, performs the steps of the method according to any one of claims 1 to 12.

28. A computer program product, characterized in that The computer program product comprises software code for executing the steps of the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • A three-dimensional construction network training method, a three-dimensional model generation method and a device

    CN116486038B

  • Systems and methods for enhanced distance estimation by a mono-camera using radar and motion data

    CN111223135A

  • Laser and image data fused three-dimensional reconstruction method and system

    CN112132972A

  • Neural radiation field reconstruction optimization method and device based on point cloud

    CN115690324A

  • Three-dimensional construction network training method, three-dimensional model generation method and device

    CN116486038A

Cited By

  • Three-dimensional building model generation method, system and device and storage medium

    CN119091076A

  • Three-dimensional panoramic scene understanding method and device based on multi-view consistency

    CN119131265A

  • Digital-real fusion test digital scene rapid generation method

    CN119514386A

  • A method for rapidly generating digital scenes for data-real fusion testing

    CN119514386B

  • Three-dimensional model construction method and device based on point cloud

    CN119559321A