Three-dimensional model reconstruction method, device, equipment, storage medium and program product
By dividing the sampling points into inside and outside the sphere and processing them separately, and combining this with CUDA to accelerate rendering, the problem of low efficiency in 3D model reconstruction in existing technologies is solved, and more efficient 3D model reconstruction is achieved.
Patent Information
- Application Number
- CN202310222431.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-03-03
AI Technical Summary
Existing 3D model reconstruction solutions suffer from redundant processing, resulting in low efficiency and an inability to meet the demands of large-scale mass production of high-quality 3D meshes.
The sampling points are divided into in-sphere sampling points and out-of-sphere sampling points, which are processed by a symbolic distance network and a neural radiation network respectively. Combined with CUDA to accelerate rendering, redundant calculations are reduced and training speed is improved.
While maintaining high accuracy, it significantly improves the efficiency of 3D model reconstruction, with a 2x increase in single-step training speed and a 15% increase in rendering speed.
Smart Images

Figure CN116246023B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer vision technology, and in particular to a method, apparatus, device, storage medium, and program product for three-dimensional model reconstruction. Background Technology
[0002] This section is intended to provide background or context for the embodiments of this disclosure as set forth in the claims. The description herein is not intended to be a prior art simply because it is included in this section.
[0003] Rendering and reconstructing 3D scenes involves extracting 3D information about the scene and objects from multi-view images, rendering scene images from specific observation perspectives, and reconstructing the structural model of the 3D scene. This is an important aspect of computer vision. Deep learning-based 3D reconstruction primarily utilizes the learning and fitting capabilities of deep neural networks to reconstruct 3D images.
[0004] However, existing 3D model reconstruction schemes suffer from redundancy in the processing, resulting in low 3D model reconstruction efficiency. Summary of the Invention
[0005] In view of this, the purpose of this disclosure is to provide a method, apparatus, device, storage medium and program product for three-dimensional model reconstruction, which at least to some extent solves one of the technical problems in the related art.
[0006] To achieve the above objectives, the first aspect of this exemplary embodiment provides a three-dimensional model reconstruction method, comprising: Obtain an image of the 3D model to be reconstructed, and obtain the model features of the 3D model to be reconstructed based on the image; The model features are normalized to a unit sphere, and the normalized model features are sampled, wherein the sampling points are divided into in-sphere sampling points and out-of-sphere sampling points by the unit sphere. The sampling points inside the sphere are processed based on a pre-built symbolic distance network and an in-sphere color prediction network, and the sampling points outside the sphere are processed based on a pre-built neural radiation network to obtain the volume density and predicted color of the sampling points. Based on the volume density, the rendering weight of the sampling point is obtained. Based on the rendering weight, the predicted color, and the distance between the sampling points, the rendering color of the target pixel in the image is rendered. Based on the rendering color and the real color of the target pixel, the symbolic distance network, the intrasphere color prediction network, and the neural radiation network are trained according to a preset loss function. Based on the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network, the three-dimensional model to be reconstructed is reconstructed.
[0007] Based on the same inventive concept, a second aspect of the exemplary embodiments of this disclosure provides a three-dimensional model reconstruction apparatus, comprising: The model feature acquisition module is configured to acquire an image of the 3D model to be reconstructed, and obtain the model features of the 3D model to be reconstructed based on the image; The model feature sampling module is configured to normalize the model features to a unit sphere and sample the normalized model features, wherein the sampling points are divided into in-sphere sampling points and out-of-sphere sampling points by the unit sphere. The information prediction module is configured to process the sampling points inside the sphere based on a pre-built symbolic distance network and an in-sphere color prediction network, and to process the sampling points outside the sphere based on a pre-built neural radiation network, so as to obtain the volume density and predicted color of the sampling points. The network training module is configured to obtain the rendering weight of the sampling point based on the volume density, render the rendering color of the target pixel in the image based on the rendering weight, the predicted color and the distance between the sampling point, and train the symbolic distance network, the intrasphere color prediction network and the neural radiation network based on the rendering color and the real color of the target pixel and a preset loss function. The 3D model reconstruction module is configured to reconstruct the 3D model to be reconstructed based on the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network.
[0008] Based on the same inventive concept, a third aspect of the exemplary embodiments of this disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method as described in the first aspect.
[0009] Based on the same inventive concept, a fourth aspect of the exemplary embodiments of this disclosure provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method as described in the first aspect.
[0010] Based on the same inventive concept, a fifth aspect of the exemplary embodiments of this disclosure provides a computer program product, characterized in that it includes computer program instructions that, when the computer program instructions are run on a computer, cause the computer to perform the method as described in the first aspect.
[0011] As can be seen from the above description, the three-dimensional model reconstruction method, apparatus, device, storage medium, and program product provided in this disclosure include: acquiring an image of a three-dimensional model to be reconstructed; obtaining model features of the three-dimensional model to be reconstructed based on the image; normalizing the model features to a unit sphere; sampling the normalized model features, wherein the sampling points are divided into in-sphere sampling points and out-of-sphere sampling points by the unit sphere; processing the in-sphere sampling points based on a pre-constructed symbolic distance network and an in-sphere color prediction network, and processing the out-of-sphere sampling points based on a pre-constructed neural radiation network to obtain the volume density and predicted color of the sampling points; obtaining the rendering weight of the sampling points based on the volume density; rendering the target pixel in the image based on the rendering weight, the predicted color, and the distance between the sampling points; training the symbolic distance network, the in-sphere color prediction network, and the neural radiation network based on a preset loss function based on the rendered color and the true color of the target pixel; and reconstructing the three-dimensional model to be reconstructed based on the trained symbolic distance network, the in-sphere color prediction network, and the neural radiation network. This disclosure divides the sampling points into in-sphere sampling points and out-of-sphere sampling points and processes them separately. Compared with related technologies that perform the same processing on all sampling points, this reduces data processing redundancy and improves the efficiency of 3D model reconstruction. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in this disclosure or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 A schematic diagram illustrating an application scenario of the three-dimensional model reconstruction method provided in this disclosure embodiment; Figure 2 A schematic flowchart of a three-dimensional model reconstruction method provided in an embodiment of this disclosure; Figure 3 A schematic diagram of a three-dimensional model reconstruction device provided in an embodiment of this disclosure; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0014] To make the objectives, technical solutions, and advantages of this disclosure clearer, the principles and spirit of this disclosure will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided merely to enable those skilled in the art to better understand and implement this disclosure, and are not intended to limit the scope of this disclosure in any way. Rather, these embodiments are provided to make this disclosure more thorough and complete, and to fully convey the scope of this disclosure to those skilled in the art.
[0015] In this article, it is important to understand that any number of elements in the accompanying figures is for illustrative purposes and not for limitation, and any naming is for distinction only and has no limiting meaning.
[0016] The principles and spirit of this disclosure will be explained in detail below with reference to several representative embodiments.
[0017] As described in the background section, 3D scene rendering and reconstruction utilizes multi-view image information to extract 3D information of the scene and objects, renders scene images from specific viewing angles, and reconstructs the structural model of the 3D scene. This is an important research topic in computer vision. Deep learning-based 3D reconstruction mainly uses the learning and fitting capabilities of deep neural networks to perform 3D reconstruction on RGB or RGBD images. Current 3D scene reconstruction business requirements demand high-quality output of 3D meshes and texture maps, while ensuring timely modeling and batch processing capabilities.
[0018] In related technologies, rendering is typically based on Neural Radiation Field (NeRF), where the 3D scene is implicitly stored in a neural network, and 2D images from different perspectives can be obtained simply by inputting the camera pose. However, NeRF-based 3D scene reconstruction requires individual training for each object, and each training session takes more than 10 hours, which cannot meet the needs of large-scale mass production of high-quality 3D meshes in business scenarios.
[0019] In addition, a multi-view rendering acceleration method, Instant-NGP, is proposed in related technologies. It reduces the training difficulty by introducing multi-resolution hashing during encoding, thus enabling the use of a smaller MLP and accelerating convergence. Furthermore, Instant-NGP utilizes a self-developed tiny-cuda-nn framework, accelerating the rendering with CUDA. However, while Instant-NGP can quickly synthesize high-quality 2D viewpoint images, it can only extract very coarse 3D meshes and textures.
[0020] The inventors of this disclosure have discovered that Instant-NGP excels at rapidly synthesizing high-quality 2D viewpoint images, but can only extract very coarse 3D meshes and textures. In contrast, NeuS significantly improves the quality of meshes and textures, making it more suitable for the needs of 3D reconstruction business, but the problem is that training is very time-consuming.
[0021] Furthermore, the inventors discovered that in the rendering and reconstruction of 3D scenes, the relevant technologies typically utilize the PyTorch framework, a Python-first deep learning framework. PyTorch generates realistic renderings of 3D scenes based on a novel perspective of the input scene. It leverages neural networks and differentiable rendering to reconstruct the implicit morphology of the 3D scene surface, enabling the learning of geometry within a 3D scene using only a 2D view. This requires several key components, including an abstract class for volume data and a differentiable implicit shape renderer. PyTorch provides users with a series of commonly used 3D operators and loss functions, as well as a modular, differentiable rendering API. Along with identifying the core reusable components, it also provides proven, standardized implementations of these components.
[0022] Specifically, the PyTorch framework requires processing both the model and the background. SDF technology is used to process the model, while NeRF technology is used to process the background. When sampling, both are usually based on the same sampling ray. However, it does not distinguish the sampling points on the sampling ray. For all sampling points, both SDF and NeRF technology are used for processing. After processing, the results are filtered and discarded. In this process, there is some redundant calculation.
[0023] Furthermore, when implementing NeuS technology, due to the aforementioned shortcomings of Instant-NGP, CUDA was not used for accelerated rendering, resulting in a slower training speed.
[0024] To address the aforementioned issues, this disclosure provides a 3D model reconstruction scheme, specifically including: using NeuS as a baseline, proposing an accelerated method to remove the external SDF and internal NeRF calculations during NeuS training; simultaneously proposing a novel method to convert SDF into volume density; and further combining Instant-NGP for CUDA acceleration optimization of rendering. These improvements significantly enhance training speed while achieving high accuracy.
[0025] After introducing the basic principles of this disclosure, various non-limiting embodiments of this disclosure will be described in detail below.
[0026] refer to Figure 1 This diagram illustrates an application scenario of the three-dimensional model reconstruction method provided in this embodiment. The application scenario includes a terminal device 101, a server 102, and a data storage system 103. The terminal device 101, server 102, and data storage system 103 can all be connected via wired or wireless communication networks. The terminal device 101 includes, but is not limited to, desktop computers, mobile phones, mobile computers, tablets, media players, smart wearable devices, personal digital assistants (PDAs), or other electronic devices capable of performing the aforementioned functions. The server 102 and data storage system 103 can both be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0027] Server 102 provides 3D model reconstruction services to users of terminal device 101. Terminal device 101 has a client installed that communicates with server 102. Users can input a 2D image of the 3D model to be reconstructed through this client. The client sends the 2D image of the 3D model to be reconstructed to server 102. Server 102 obtains the model features of the 3D model to be reconstructed based on the image; normalizes the model features to a unit sphere; samples the normalized model features, where the sampling points are divided into in-sphere and out-of-sphere sampling points by the unit sphere; and performs color prediction on the in-sphere sampling points based on a pre-built symbolic distance network and an in-sphere color prediction network. The process involves processing the extra-sphere sampling points using a pre-built neural radiation network to obtain the volume density and predicted color of the sampling points. Based on the volume density, the rendering weights of the sampling points are obtained. Based on the rendering weights, predicted colors, and distances between the sampling points, the rendered colors of the target pixels in the image are obtained. Based on the rendered colors and the true colors of the target pixels, a symbolic distance network, an intra-sphere color prediction network, and a neural radiation network are trained using a preset loss function. Based on the trained symbolic distance network, intra-sphere color prediction network, and neural radiation network, the 3D model to be reconstructed is reconstructed and sent to the client, which then displays the reconstructed 3D model to the user.
[0028] The data storage system 103 stores multi-view images taken around the 3D model to be reconstructed. The server 102 can perform self-supervised training based on the symbolic distance network, the intrasphere color prediction network, and the neural radiation network with the multi-view images. When the training accuracy reaches a certain requirement, the server 102 can provide the user with 3D model reconstruction services based on the symbolic distance network, the intrasphere color prediction network, and the neural radiation network. At the same time, the server 102 can also continuously optimize the 3D reconstruction model based on the training data of the new viewpoints of the 3D model to be reconstructed.
[0029] The following is combined Figure 1 The above application scenarios are used to describe the three-dimensional model reconstruction method according to exemplary embodiments of this disclosure. It should be noted that the above application scenarios are shown only to facilitate understanding of the spirit and principles of this disclosure, and the embodiments of this disclosure are not limited in any way. Rather, the embodiments of this disclosure can be applied to any applicable scenario.
[0030] refer to Figure 2 The three-dimensional model reconstruction method includes the following steps: Step S210: Obtain an image of the 3D model to be reconstructed, and obtain the model features of the 3D model to be reconstructed based on the image.
[0031] In some embodiments, the image includes images acquired from several different angles.
[0032] Optionally, a camera (or other device capable of image acquisition) can be used to take panoramic photos of the 3D model to be reconstructed, obtaining images of the 3D model from various acquisition angles.
[0033] Optionally, the image can be deformed to obtain a deformed image sequence.
[0034] In particular, considering that there is partial overlap between each two adjacent images obtained by surround shooting, the images are deformed.
[0035] In some embodiments, obtaining the model features of the 3D model to be reconstructed based on the image includes: Obtain the region of interest (ROI) in the image, and extract the model features of the 3D model to be reconstructed from the ROI.
[0036] Optionally, the region of interest is the smallest bounding box that surrounds the 3D model to be reconstructed.
[0037] Optionally, the bounding box can be a rectangle, a circle, or an irregular polygon.
[0038] Since there are backgrounds or other 3D models in the scene, this disclosure selects the region where the 3D model to be reconstructed is located from the scene image as the region of interest by using bounding boxes. The region of interest is then used as the focus of subsequent image processing, which can reduce processing time and increase processing accuracy.
[0039] Step S220: Normalize the model features to a unit sphere, and sample the normalized model features, wherein the sampling points are divided into in-sphere sampling points and out-of-sphere sampling points by the unit sphere.
[0040] In some embodiments, sampling the normalized model features includes: Obtain the camera pose corresponding to the image, and obtain the sampling ray corresponding to the image based on the camera pose; The normalized model features are sampled based on the sampling ray, wherein the sampling points are on the sampling ray.
[0041] Optionally, pose estimation can be performed based on the image to obtain the camera pose corresponding to the image.
[0042] In this context, camera pose is considered an external parameter. Internal parameters are those related to the camera's inherent characteristics, such as focal length and pixel size. External parameters are those in the world coordinate system, such as the camera's position and rotation direction.
[0043] Optionally, the camera pose corresponding to the image can be obtained by performing pose estimation based on the image using the SFM (Structure from Motion) algorithm.
[0044] The SFM algorithm can be used to obtain the correspondence between the model's 3D points and the cameras / images. The number of 3D points is in the millions, while the number of cameras / images is in the thousands. The same 3D point will be imaged in multiple images, and the same image may contain multiple 3D points.
[0045] Optionally, the sampling ray is a ray from the camera corresponding to the image to the corresponding pixel.
[0046] Optionally, based on the camera pose and focal length, as well as the two-dimensional coordinates of each pixel in the image, the spatial position (i.e., three-dimensional coordinates) of each pixel can be determined. Further, by connecting the camera position (i.e., the camera's three-dimensional coordinates) with the pixel position (i.e., the pixel's three-dimensional coordinates), the ray corresponding to that pixel can be obtained.
[0047] Optionally, several sampling points can be set on the sampling ray.
[0048] Optionally, X points are uniformly sampled for each sampling ray as coarse sampling points. These uniform coarse sampling points are then used to perform further fine sampling based on their Signed Distance Function (SDF) values, resulting in 2X more points being sampled. This sampling method can effectively improve the sampling speed compared to completely random sampling.
[0049] Optionally, the sampling points can be divided into in-sphere sampling points and out-of-sphere sampling points based on the distance between the sampling point and the center of the sphere.
[0050] Step S230: Process the sampling points inside the sphere based on the pre-constructed symbolic distance network and the in-sphere color prediction network, and process the sampling points outside the sphere based on the pre-constructed neural radiation network to obtain the volume density and predicted color of the sampling points.
[0051] In some embodiments, the symbolic distance network, the in-sphere color prediction network, and the neural radiation network are all multilayer perceptrons (MLPs).
[0052] In some embodiments, the processing of the intrasphere sampling points based on a pre-built symbolic distance network and an intrasphere color prediction network, and the processing of the extrasphere sampling points based on a pre-built neural radiation network, to obtain the volume density and predicted color of the sampling points, includes: Based on the location of the sampling points within the sphere, and using the symbolic distance network, the symbolic distance, normal vector, and feature encoding of the sampling points within the sphere are obtained. Based on the symbolic distance and normal vector, the volume density of the sampling points within the sphere is obtained. Based on the position, normal vector, and feature encoding of the sampling point inside the sphere, as well as the direction of the sampling ray, the predicted color of the sampling point inside the sphere is obtained using the color prediction network inside the sphere. Based on the location of the extra-spherical sampling point and the direction of the sampling ray, the volume density and predicted color of the extra-spherical sampling point are obtained using the neural radiation network.
[0053] In some embodiments, obtaining the volume density of the sampling points within the sphere based on the symbolic distance and the normal vector includes: Obtain the cosine value of the angle between the normal vector and the direction of the sampling ray; Based on the Laplace cumulative distribution function, the volume density of the sampling points inside the sphere is obtained according to the symbolic distance and the cosine of the included angle.
[0054] Optionally, in the process of obtaining the volume density of the sampling points inside the sphere based on the Laplace cumulative distribution function and the symbolic distance, the absolute value of the cosine of the included angle is used as a weighting parameter.
[0055] Among them, the symbolic distance to the volume density The conversion formula is as follows: ; in, For learnable parameters, It is the absolute value of the cosine of the angle between the normal vector corresponding to the symbolic distance function of the sampling point within the sphere and the sampling ray.
[0056] Unlike related technologies, this disclosure calculates only the symbolic distance of sampling points inside the sphere, without calculating the symbolic distance of sampling points outside the sphere. By removing the symbolic distance of sampling points outside the sphere, computation can be saved, thereby improving training speed and reducing resource consumption.
[0057] In some embodiments, the neural radiation network includes a volume density network and an extraspherical color prediction network. The step of obtaining the volume density and predicted color of the extraspherical sampling point based on the neural radiation network, according to the location of the extraspherical sampling point and the direction of the sampling ray, includes: Based on the location of the external sampling points, the volume density and feature encoding of the external sampling points are obtained using the volume density network. The predicted color of the external sampling point is obtained based on the position and feature encoding of the external sampling point and the direction of the sampling ray.
[0058] In some embodiments, both the volume density network and the extrasphere color prediction network are multilayer perceptrons.
[0059] Unlike related technologies, this disclosure calculates only the radiative neural values of sampling points outside the sphere, without calculating the radiative neural values of sampling points inside the sphere. By removing the radiative neural values of sampling points inside the sphere, the computational load can be reduced, thereby improving training speed and reducing resource consumption.
[0060] Step S240: Based on the volume density, obtain the rendering weight of the sampling point; based on the rendering weight, the predicted color, and the distance between the sampling point, render the rendering color of the target pixel in the image; based on the rendering color and the real color of the target pixel, train the symbolic distance network, the intrasphere color prediction network, and the neural radiation network based on a preset loss function.
[0061] In some embodiments, obtaining the rendering weight of the sampling point based on the volume density includes: For the sampling points on the same sampling ray, the rendering weight of the sampling points inside the sphere is obtained based on the volume density of the sampling points inside the sphere and calculated using integration. The rendering weight of the sampling points outside the sphere is obtained based on the volume density of the sampling points outside the sphere and by integral calculation.
[0062] For a single sampling ray, the pixel values projected onto the image by the sampling ray can be calculated through integration based on the distance between sampling points on the ray and the volume density of the sampling points. Correspondingly, based on the volume density of the sampling points on the sampling ray and the pixel values projected onto the image by the sampling ray, the distribution of the sampling points on the sampling ray can be obtained, i.e., the rendering weight of the sampling points during rendering.
[0063] In some embodiments, rendering the rendered color of the target pixel in the image based on the rendering weight, the predicted color, and the distance between the sampling points includes: For the sampling points on the same sampling ray, based on the rendering weight, the predicted color, and the distance between the sampling points, in-sphere color rendering is performed based on the in-sphere sampling points and out-of-sphere color rendering is performed based on the out-of-sphere sampling points to obtain in-sphere rendered color and out-of-sphere rendered color. The rendered color of the sampled ray is obtained by weighting the rendered color inside the sphere and the rendered color outside the sphere; The rendering color of the sampled ray is used as the rendering color of the target pixel point corresponding to the sampled ray in the image.
[0064] As an example, the rendering result of the interior of the sphere includes RGB values and the total weight W within the sphere; The outer part of the sphere is rendered as RGB values; Therefore, the ray tracing rendering result is: RGB within the sphere + (1-W) RGB outside the sphere.
[0065] In related technologies, such as the benchmark methods NeuS, NeRF, and Instant-NGP, volume rendering is performed on a single ray. In contrast, this disclosure performs volume rendering of the inner part of the sphere and the outer part of the sphere separately, and then weights them to obtain the final rendering result. Its advantage is that it can accelerate the rendering process.
[0066] In some embodiments, the rendering process described in the above embodiments is implemented using the CUDA (Compute Unified Device Architecture) volume rendering framework in the Instant-NGP engine.
[0067] In volume rendering, the color integral of the sampling points of each sampling ray is obtained to get the final rendering result. Optionally, the multi-threaded parallel computing capability of the GPU can be used to process the integral calculation of thousands of rays at the same time, and can cope with the situation where the number of sampling points on each ray is uncertain, so as to complete the entire volume rendering process more flexibly and quickly.
[0068] In related technologies, rendering is usually performed using the standard Python volume rendering framework (PyTorch framework). However, due to the modular nature of the PyTorch framework, it can only render the entire sampled ray. In contrast, this disclosure utilizes the CUDA volume rendering framework in the Instant-NGP engine, which can render parts of a sampled ray (inside or outside the sphere) separately, thereby accelerating the rendering process.
[0069] In some embodiments, training the symbolic distance network, the intrasphere color prediction network, and the neural radiation network based on the rendered color and the true color of the target pixel, using a preset loss function, includes: The difference between the rendered color and the real color is calculated based on the loss function; Based on the aforementioned gap, the symbolic distance network, the intrasphere color prediction network, and the neural radiation network are trained using backpropagation.
[0070] Step S250: Based on the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network, reconstruct the three-dimensional model to be reconstructed.
[0071] In some embodiments, reconstructing the 3D model to be reconstructed based on the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network includes: Obtain the voxel resolution of the 3D model to be reconstructed; Based on the model features and the voxel resolution, the isosurface extraction algorithm is used to reconstruct the three-dimensional model to be reconstructed, using the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network.
[0072] In this context, a voxel mesh is a data structure that uses fixed-size cubes as the smallest unit to represent a three-dimensional object, and the voxel resolution is the size of the cube.
[0073] In some embodiments, based on the model features and the voxel resolution, an isosurface extraction algorithm is used to reconstruct the 3D model to be reconstructed, using the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network, including: Based on the model features and the voxel resolution, the three-dimensional voxels of the three-dimensional model to be reconstructed are obtained; Based on the three-dimensional voxels, the symbolic distance of the three-dimensional voxels is obtained using the trained symbolic distance network. Based on the symbolic distance, the vertex scalar values of the three-dimensional voxel are obtained; The three-dimensional voxels that intersect with the preset isosurfaces are obtained based on the vertex scalar values, and triangular faces are generated at the intersection positions of the three-dimensional voxels and the isosurfaces. All the triangular faces on the boundary of the isosurfaces are connected to obtain the surface of the reconstructed three-dimensional model. The colors of the reconstructed 3D model are obtained based on the trained intrasphere color prediction network and the neural radiation network.
[0074] Optionally, a voxel mesh is constructed based on the voxel resolution, a bounding box is constructed in the voxel mesh based on the region of interest, and the three-dimensional voxels within the bounding box in the voxel mesh are sampled to obtain the three-dimensional voxels of the three-dimensional model to be reconstructed.
[0075] In this context, a voxel mesh is a data structure that uses fixed-size cubes as the smallest unit to represent a three-dimensional object, and the voxel resolution is the size of the cube.
[0076] The region of interest is the smallest bounding box that surrounds the 3D model to be reconstructed.
[0077] Optionally, the symbolic distances of all the three-dimensional voxels constitute the symbolic distance field of the three-dimensional model to be reconstructed.
[0078] In this method, based on the ability of the SDF function to represent an object, a neural network is used to fit the SDF function, thereby realizing the implicit representation of the object by the neural network. Furthermore, due to the universal fitting property of the neural network, in principle, it can represent objects of any continuous and arbitrarily complex shapes, and can represent an entire class of shapes.
[0079] The symbolic distance field of the 3D model to be reconstructed is its geometric and topological representation. This field includes the symbolic distance values of all 3D voxels. These values indicate the positional relationship between the corresponding 3D voxel and the 3D model to be reconstructed, as well as the shortest distance from the corresponding voxel to the surface of the 3D model.
[0080] Optionally, the positional relationship between a 3D voxel and the 3D model to be reconstructed can be represented by a positive or negative sign. For example, a positive sign distance value for a 3D voxel indicates that the 3D voxel is located outside the 3D model to be reconstructed, a negative sign distance value indicates that the 3D voxel is located inside the 3D model to be reconstructed, and a zero sign distance value indicates that the 3D voxel is located on the surface of the 3D model to be reconstructed.
[0081] The triangular facet divides the three-dimensional voxel into a region outside the isosurface and a region inside the isosurface.
[0082] Among them, the values in the isosurface are the symbolic distance values.
[0083] Optionally, since the sign distance value of a 3D voxel is zero, it indicates that the 3D voxel is located on the surface of the 3D model to be reconstructed, and the value of the isosurface is zero.
[0084] In some embodiments, the symbolic distance network, the intrasphere color prediction network, and the neural radiation network are encapsulated as a 3D model reconstruction model.
[0085] As can be seen from the above, the three-dimensional model reconstruction method provided in this disclosure includes: acquiring an image of the three-dimensional model to be reconstructed to obtain model features; normalizing the model features to a unit sphere and sampling through in-sphere and out-of-sphere sampling points; processing the in-sphere sampling points based on a symbolic distance network and an in-sphere color prediction network, and processing the out-of-sphere sampling points based on a neural radiation network, to train the symbolic distance network, the in-sphere color prediction network, and the neural radiation network for reconstructing the three-dimensional model to be reconstructed. This disclosure divides the sampling points into in-sphere and out-of-sphere sampling points and processes them separately. Compared to performing the same processing on all sampling points, this reduces data processing redundancy and improves the efficiency of three-dimensional model reconstruction.
[0086] In some embodiments, the rendering color of the target pixel in the image is obtained by rendering based on the rendering weight, predicted color and the distance between sampling points. The rendering is performed using the CUDA volume rendering framework in the Instant-NGP engine, which further improves the efficiency of 3D model reconstruction.
[0087] In addition, through simulation experiments, after removing the external SDF calculation and internal NeRF calculation by applying the solution provided in this disclosure, the total time for single-step training can be increased by 2 times. After using the CUDA volume rendering framework in the Instant-NGP engine for rendering acceleration, the speed can be further increased by 15%.
[0088] It should be noted that the method of this disclosure embodiment can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this disclosure embodiment, and the multiple devices will interact with each other to complete the method described.
[0089] It should be noted that the above description describes some embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0090] Based on the same inventive concept, corresponding to any of the above-described embodiments, this disclosure also provides a three-dimensional model reconstruction device.
[0091] refer to Figure 3 A three-dimensional model reconstruction device, comprising: The model feature acquisition module 310 is configured to acquire an image of the 3D model to be reconstructed and obtain the model features of the 3D model to be reconstructed based on the image. The model feature sampling module 320 is configured to normalize the model features to a unit sphere and sample the normalized model features, wherein the sampling points are divided into in-sphere sampling points and out-of-sphere sampling points by the unit sphere. The information prediction module 330 is configured to process the sampling points inside the sphere based on a pre-built symbolic distance network and an in-sphere color prediction network, and to process the sampling points outside the sphere based on a pre-built neural radiation network, so as to obtain the volume density and predicted color of the sampling points. The network training module 340 is configured to obtain the rendering weight of the sampling point based on the volume density, render the rendering color of the target pixel in the image based on the rendering weight, the predicted color and the distance between the sampling point, and train the symbolic distance network, the intrasphere color prediction network and the neural radiation network based on the rendering color and the real color of the target pixel and a preset loss function. The 3D model reconstruction module 350 is configured to reconstruct the 3D model to be reconstructed based on the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network.
[0092] In some embodiments, the network training module 340 is configured as follows: The rendering is performed using the CUDA volume rendering framework in the Instant-NGP engine.
[0093] In some embodiments, the network training module 340 is configured as follows: For the sampling points on the same sampling ray, based on the rendering weight, the predicted color, and the distance between the sampling points, in-sphere color rendering is performed based on the in-sphere sampling points and out-of-sphere color rendering is performed based on the out-of-sphere sampling points to obtain in-sphere rendered color and out-of-sphere rendered color. The rendered color of the sampled ray is obtained by weighting the rendered color inside the sphere and the rendered color outside the sphere; The rendering color of the sampled ray is used as the rendering color of the target pixel point corresponding to the sampled ray in the image.
[0094] In some embodiments, the information prediction module 330 is configured to: Based on the location of the sampling points within the sphere, and using the symbolic distance network, the symbolic distance, normal vector, and feature encoding of the sampling points within the sphere are obtained. Based on the symbolic distance and normal vector, the volume density of the sampling points within the sphere is obtained. Based on the position, normal vector, and feature encoding of the sampling point inside the sphere, as well as the direction of the sampling ray, the predicted color of the sampling point inside the sphere is obtained using the color prediction network inside the sphere. Based on the location of the extra-spherical sampling point and the direction of the sampling ray, the volume density and predicted color of the extra-spherical sampling point are obtained using the neural radiation network.
[0095] In some embodiments, the information prediction module 330 is configured to: Obtain the cosine value of the angle between the normal vector and the direction of the sampling ray; Based on the Laplace cumulative distribution function, the volume density of the sampling points inside the sphere is obtained according to the symbolic distance and the cosine value of the included angle.
[0096] In some embodiments, the neural radiation network includes a volume density network and an extraspherical color prediction network, and the information prediction module 330 is configured to: Based on the location of the external sampling points, the volume density and feature encoding of the external sampling points are obtained using the volume density network. The predicted color of the external sampling point is obtained based on the position and feature encoding of the external sampling point and the direction of the sampling ray.
[0097] In some embodiments, the network training module 340 is configured as follows: For the sampling points on the same sampling ray, the rendering weight of the sampling points inside the sphere is obtained based on the volume density of the sampling points inside the sphere and calculated using integration. The rendering weight of the sampling points outside the sphere is obtained based on the volume density of the sampling points outside the sphere and by integral calculation.
[0098] In some embodiments, the network training module 340 is configured as follows: The difference between the rendered color and the real color is calculated based on the loss function; Based on the aforementioned gap, the symbolic distance network, the intrasphere color prediction network, and the neural radiation network are trained using backpropagation.
[0099] In some embodiments, the model feature sampling module 320 is configured as follows: Obtain the camera pose corresponding to the image, and obtain the sampling ray corresponding to the image based on the camera pose; The normalized model features are sampled based on the sampling ray, wherein the sampling points are on the sampling ray.
[0100] In some embodiments, the model feature acquisition module 310 is configured to: Obtain the region of interest in the image, and extract the model features of the 3D model to be reconstructed from the region of interest.
[0101] In some embodiments, the 3D model reconstruction module 350 is configured as follows: Obtain the voxel resolution of the 3D model to be reconstructed; Based on the model features and the voxel resolution, the isosurface extraction algorithm is used to reconstruct the three-dimensional model to be reconstructed, using the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network.
[0102] For ease of description, the above apparatus is described in terms of its functions, divided into various modules. Of course, in implementing this disclosure, the functions of each module can be implemented in one or more software and / or hardware.
[0103] The apparatus described above is used to implement the corresponding three-dimensional model reconstruction method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0104] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the three-dimensional model reconstruction method described in any of the above embodiments.
[0105] Figure 4 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.
[0106] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0107] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0108] The input / output interface 1030 is used to connect input / output modules to realize information input and output. The input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.
[0109] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0110] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.
[0111] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0112] The electronic devices described above are used to implement the corresponding three-dimensional model reconstruction methods in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0113] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the three-dimensional model reconstruction method as described in any of the above embodiments.
[0114] The aforementioned non-transitory computer-readable storage media can be any available medium or data storage device that a computer can access, including but not limited to magnetic storage (e.g., floppy disks, hard disks, magnetic tapes, magneto-optical disks (MOs), etc.), optical storage (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND flash), solid-state drives (SSDs)).
[0115] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the three-dimensional model reconstruction method as described in any of the embodiments in the exemplary method section above, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0116] Based on the same inventive concept, corresponding to the three-dimensional model reconstruction method described in any of the above embodiments, this disclosure also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer to cause the computer and / or the processor to perform the three-dimensional model reconstruction method. Corresponding to the execution entity for each step in each embodiment of the three-dimensional model reconstruction method, the processor executing the corresponding step can belong to the corresponding execution entity.
[0117] The computer program product of the above embodiments is used to cause the computer and / or the processor to execute the three-dimensional model reconstruction method as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0118] Those skilled in the art will recognize that embodiments of this disclosure can be implemented as a system, method, or computer program product. Therefore, this disclosure can be implemented as entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, this disclosure can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.
[0119] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example,, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (not exhaustive) of a computer-readable storage medium may include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
[0120] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0121] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0122] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0123] It should be understood that each block of a flowchart and / or block diagram, as well as combinations of blocks in a flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine that, when executed by a computer or other programmable data processing device, creates means for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0124] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce a product comprising an instruction apparatus that implements the functions / operations specified in the boxes of a flowchart and / or block diagram.
[0125] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, such that the instructions that execute on the computer or other programmable apparatus can provide a process for implementing the functions / operations specified in the boxes of a flowchart and / or block diagram.
[0126] Furthermore, although the operations of the methods of this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all of the operations shown must be performed to achieve the desired result. Rather, the steps depicted in the flowcharts may be executed in a different order. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0127] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this disclosure should have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms "first," "second," and similar words used in the embodiments of this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly. The article "a" or "an" preceding an element does not exclude the existence of multiple such elements.
[0128] While the spirit and principles of this disclosure have been described with reference to several specific embodiments, it should be understood that this disclosure is not limited to the disclosed specific embodiments, and the division of aspects does not imply that features in these aspects cannot be combined for benefit; such division is merely for convenience of expression. This disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the appended claims is to be interpreted in the broadest sense, thereby encompassing all such modifications and equivalent structures and functions.
Claims
1. A method for reconstructing a three-dimensional model, characterized in that, include: Obtain an image of the 3D model to be reconstructed, and obtain the model features of the 3D model to be reconstructed based on the image; The model features are normalized to a unit sphere, and the normalized model features are sampled, wherein the sampling points are divided into in-sphere sampling points and out-of-sphere sampling points by the unit sphere. Based on the location of the sampling points within the sphere, and using a pre-built symbolic distance network, the symbolic distance, normal vector, and feature encoding of the sampling points within the sphere are obtained. Obtain the cosine of the angle between the normal vector and the direction of the sampling ray; the sampling ray corresponding to the image is obtained by acquiring the camera pose corresponding to the image, based on the camera pose; Based on the Laplace cumulative distribution function, the volume density of the sampling points inside the sphere is obtained according to the symbolic distance and the cosine value of the included angle; Based on the position, normal vector, and feature encoding of the sampling point inside the sphere, as well as the direction of the sampling ray, the predicted color of the sampling point inside the sphere is obtained using a pre-constructed color prediction network inside the sphere. Based on the location of the external sampling point and the direction of the sampling ray, the volume density and predicted color of the external sampling point are obtained using a pre-constructed neural radiation network. Based on the volume density, the rendering weight of the sampling point is obtained. Based on the rendering weight, the predicted color, and the distance between the sampling points, the rendering color of the target pixel in the image is rendered. Based on the rendering color and the real color of the target pixel, the symbolic distance network, the intrasphere color prediction network, and the neural radiation network are trained according to a preset loss function. Based on the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network, the three-dimensional model to be reconstructed is reconstructed.
2. The method according to claim 1, characterized in that, The step of rendering the target pixel's color in the image based on the rendering weight, the predicted color, and the distance between the sampling points includes: The rendering is performed using the CUDA volume rendering framework in the Instant-NGP engine.
3. The method according to claim 1, characterized in that, The step of rendering the target pixel's color in the image based on the rendering weight, the predicted color, and the distance between the sampling points includes: For the sampling points on the same sampling ray, based on the rendering weight, the predicted color, and the distance between the sampling points, in-sphere color rendering is performed based on the in-sphere sampling points and out-of-sphere color rendering is performed based on the out-of-sphere sampling points to obtain in-sphere rendered color and out-of-sphere rendered color. The rendered color of the sampled ray is obtained by weighting the rendered color inside the sphere and the rendered color outside the sphere; The rendering color of the sampled ray is used as the rendering color of the target pixel point corresponding to the sampled ray in the image.
4. The method according to claim 1, characterized in that, The neural radiation network includes a volume density network and an extraspherical color prediction network. The step of obtaining the volume density and predicted color of the extra-spherical sampling point based on the location of the extra-spherical sampling point and the direction of the sampling ray, using the neural radiation network, includes: Based on the location of the external sampling points, the volume density and feature encoding of the external sampling points are obtained using the volume density network. The predicted color of the external sampling point is obtained based on the position and feature encoding of the external sampling point and the direction of the sampling ray.
5. The method according to claim 1, characterized in that, The step of obtaining the rendering weight of the sampling point based on the volume density includes: For the sampling points on the same sampling ray, the rendering weight of the sampling points inside the sphere is obtained based on the volume density of the sampling points inside the sphere and calculated using integration. Based on the volume density of the sampling points outside the sphere, the rendering weight of the sampling points outside the sphere is obtained through integral calculation.
6. The method according to claim 1, characterized in that, The step of training the symbolic distance network, the intrasphere color prediction network, and the neural radiation network based on the rendered color and the true color of the target pixel, using a preset loss function, includes: The difference between the rendered color and the real color is calculated based on the loss function; Based on the aforementioned gap, the symbolic distance network, the intrasphere color prediction network, and the neural radiation network are trained using backpropagation.
7. The method according to claim 1, characterized in that, The sampling of normalized model features includes: The normalized model features are sampled based on the sampling ray, wherein the sampling points are on the sampling ray.
8. The method according to claim 1, characterized in that, The process of obtaining the model features of the 3D model to be reconstructed based on the image includes: Obtain the region of interest in the image, and extract the model features of the 3D model to be reconstructed from the region of interest.
9. The method according to claim 1, characterized in that, The process of reconstructing the 3D model to be reconstructed based on the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network includes: Obtain the voxel resolution of the 3D model to be reconstructed; Based on the model features and the voxel resolution, the isosurface extraction algorithm is used to reconstruct the three-dimensional model to be reconstructed, using the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network.
10. A three-dimensional model reconstruction device, characterized in that, include: The model feature acquisition module is configured to acquire an image of the 3D model to be reconstructed, and obtain the model features of the 3D model to be reconstructed based on the image; The model feature sampling module is configured to normalize the model features to a unit sphere and sample the normalized model features, wherein the sampling points are divided into in-sphere sampling points and out-of-sphere sampling points by the unit sphere. The information prediction module is configured to, based on the position of the sampling points within the sphere and using a pre-built symbolic distance network, obtain the symbolic distance, normal vector, and feature code of the sampling points within the sphere; obtain the cosine value of the angle between the normal vector and the direction of the sampling ray; the sampling ray corresponding to the image is obtained by acquiring the camera pose corresponding to the image and based on the camera pose; based on the Laplacian cumulative distribution function, obtain the volume density of the sampling points within the sphere according to the symbolic distance and the cosine value of the angle; based on the position, normal vector, and feature code of the sampling points within the sphere and the direction of the sampling ray, obtain the predicted color of the sampling points within the sphere based on a pre-built color prediction network within the sphere; and based on the position of the sampling points outside the sphere and the direction of the sampling ray, obtain the volume density and predicted color of the sampling points outside the sphere based on a pre-built neural radiation network. The network training module is configured to obtain the rendering weight of the sampling point based on the volume density, render the rendering color of the target pixel in the image based on the rendering weight, the predicted color and the distance between the sampling point, and train the symbolic distance network, the intrasphere color prediction network and the neural radiation network based on the rendering color and the real color of the target pixel and a preset loss function. The 3D model reconstruction module is configured to reconstruct the 3D model to be reconstructed based on the trained symbolic distance network, the intrasphere color prediction network, and the neural radiation network.
11. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the method as described in any one of claims 1 to 9.
12. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium stores computer instructions for causing the computer to perform the method of any one of claims 1 to 9.
13. A computer program product, characterized in that, It includes computer program instructions that, when run on a computer, cause the computer to perform the method as described in any one of claims 1 to 9.
