Rendering method and system, electronic equipment and medium

By constructing a three-dimensional model and a neural radiation field model, and using geometric feature layers under a preset perspective to train the neural rendering model, we solve the low-quality rendering problem caused by geometric feature errors in existing rendering technology, and achieve high quality and high realism. Virtual scene roaming experience.

CN118736091APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310353147.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

While existing rendering technology based on 3D models and neural radiation fields improves image realism, it is difficult to achieve high-quality real-time scene roaming, especially due to geometric feature errors that lead to poor user experience.

Method used

By acquiring the image data of the target scene, we build a three-dimensional model and neural radiation field model, use the geometric feature layer under the preset perspective to train the neural rendering model, and combine it with the rendering engine to obtain the rendered image to ensure the authenticity and quality of the image.

Benefits of technology

It improves the quality of rendered images and the user's scene roaming experience, solves the problem of poor geometric features obtained by the neural radiation field model, and achieves highly realistic virtual object placement and real-time interactive high-quality scene roaming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736091A_ABST
    Figure CN118736091A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer images, and discloses a rendering method and system, electronic equipment and a medium, and the rendering method comprises the steps: obtaining image data corresponding to a target scene; acquiring a three-dimensional model and a first neural radiation field model corresponding to the target scene based on the image data corresponding to the target scene; obtaining an image under a preset view angle based on the first neural radiation field model, and rendering the three-dimensional model based on the preset view angle to obtain a geometric feature layer under the preset view angle; and training the first neural rendering model based on the geometric feature layer under the preset view angle and the image under the preset view angle to obtain a second neural rendering model, the second neural rendering model being used for obtaining a rendered image. Based on the scheme, the quality of the rendered image can be improved, and high-quality interactive real-time scene roaming of the user is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer image technology, and in particular to a rendering method, system, electronic device and medium. Background Art

[0002] Rendering technology is used to present real scenes (such as rooms, exhibition halls, etc.) in the form of virtual space. Users can experience the feeling of being in the real scene by watching the virtual three-dimensional scene, and users can adjust the virtual space, such as adding, modifying or deleting elements in the virtual space. Currently, rendering technology is widely used in many fields such as exhibition promotion, real estate services, teaching research, game entertainment, urban planning, etc. Figure 1 As shown, the room 100 can be presented in the form of a virtual scene on the display interface of the electronic device 200 through rendering technology, so that the user can watch from different angles.

[0003] At present, some solutions use rendering technology based on three-dimensional (3D) models to render scenes, that is, to display images from different angles. However, the images rendered by rendering technology based on 3D models have poor realism. In some other solutions, rendering technology based on neural radiance fields (NeRF) is used to directly obtain rendered images through neural network reasoning in neural radiation fields, which can improve the realism of images to a certain extent. However, there are many errors in the geometric features of the obtained rendered images, resulting in the inability to achieve high-quality real-time scene roaming, that is, the user's experience of browsing the virtual space (or scene roaming) is poor. Summary of the invention

[0004] To achieve high-quality real-time scene roaming, the present application provides a rendering method, system, electronic device and medium.

[0005] In a first aspect, the present application provides a rendering method for a first electronic device, the method comprising: obtaining image data corresponding to a target scene; obtaining a three-dimensional model and a first neural radiation field model corresponding to the target scene based on the image data corresponding to the target scene; obtaining an image at a preset perspective based on the first neural radiation field model, and rendering the three-dimensional model based on the preset perspective to obtain a geometric feature layer at the preset perspective; training the first neural rendering model based on the geometric feature layer at the preset perspective and the image at the preset perspective to obtain a second neural rendering model, the second neural rendering model being used to obtain a rendered image.

[0006] Based on the above scheme, since the sample data used in training the neural rendering model is a geometric feature layer obtained based on the three-dimensional model, and the reference image is a more realistic image obtained by the first neural radiation field model, the rendered image obtained based on the trained neural rendering model can improve the quality of the rendered image while ensuring the authenticity of the image, thereby enhancing the user's scene roaming experience.

[0007] It can be understood that the second neural rendering model mentioned in the present application can be a trained neural rendering model, the first electronic device can be a cloud server, and the second electronic device can be a terminal electronic device.

[0008] In a possible implementation, the method also includes: the first electronic device obtains the user input perspective sent by the second electronic device; the first electronic device renders the three-dimensional model based on the user input perspective, obtains the geometric feature layer corresponding to the user input perspective, and obtains the rendered image based on the geometric feature layer corresponding to the user input perspective and the second neural rendering model; the first electronic device sends the rendered image to the second electronic device.

[0009] It can be understood that in the embodiment of the present application, the above steps of constructing a three-dimensional model corresponding to the target scene, training the first neural radiation field model, and training the neural rendering model can all be performed on the cloud server. After the neural rendering model training is completed, the user can input the viewing angle through the terminal electronic device, and the terminal electronic device sends the user input viewing angle to the cloud server. The cloud server obtains the geometric feature layer corresponding to the user input viewing angle based on the rendering engine, and then obtains the rendering image under the corresponding viewing angle based on the geometric feature layer and the neural rendering model and sends it to the terminal electronic device for display.

[0010] In a possible implementation, the method also includes: the first electronic device sends a second neural rendering model to a second electronic device; the second electronic device obtains a user input perspective, renders a three-dimensional model based on the user input perspective, obtains a geometric feature layer corresponding to the user input perspective, and obtains a rendered image based on the geometric feature layer corresponding to the user input perspective and the second neural rendering model.

[0011] It is understood that in some embodiments, the cloud server can also directly send the rendering engine used to obtain the geometric feature layer and the trained second neural rendering model to the terminal electronic device. In this way, the terminal electronic device can directly obtain the user's perspective and obtain the rendered image based on the rendering engine and the second neural rendering model for display, thereby improving rendering efficiency and enhancing the user's interactive experience.

[0012] In one possible implementation, a three-dimensional model is rendered based on a preset perspective to obtain a geometric feature layer at the preset perspective, including: rendering the three-dimensional model based on the preset perspective and a first preset field of view angle to obtain an image at the first preset field of view angle at the preset perspective; obtaining an image at the preset perspective based on a first neural radiation field model, including: obtaining an image at the second preset field of view angle at the preset perspective based on the second preset field of view angle and the first neural radiation field model; wherein the difference between the first preset field of view angle and the second preset field of view angle is within a preset range.

[0013] It can be understood that in the embodiment of the present application, the first preset viewing angle can be the field of view angle used when obtaining the geometric feature layer in the offline rendering process mentioned in the present application, and the second preset field of view angle can be the field of view angle set in the first neural radiation field model training and reasoning process of the present application. Among them, the difference between the first preset field of view angle and the second preset field of view angle is within a preset range, wherein the preset range of the difference can be determined according to the actual required accuracy of the neural network model, for example, the absolute value of the difference can be less than 1 degree. For example, the first preset field of view angle can be 50 degrees, and the degree of the second preset field of view angle can be any value within 49-51 degrees.

[0014] In some embodiments, the first preset field of view angle and the second preset field of view angle may also be equal. It can be understood that when the preset viewing angle in the offline rendering process and the preset viewing angle in the training and inference process of the first neural radiation field model are equal or the difference is small, the generated geometric feature layer RGB pixels can be basically one-to-one corresponding to the RGB (where R represents red, G represents green, and B represents blue) pixels obtained by the first neural radiation field model without obvious deviation, which facilitates the training of the neural rendering model and improves the training accuracy of the neural network model.

[0015] In a possible implementation, the difference between the first preset field of view angle and the second preset field of view angle is within a preset range, including: the first preset field of view angle and the second preset field of view angle are equal.

[0016] In a possible implementation, the image data corresponding to the target scene includes images of each perspective corresponding to the target scene or a video stream corresponding to the target scene.

[0017] It can be understood that the images of each perspective corresponding to the target scene can be a plurality of continuous image sequences obtained when the camera of the mobile terminal device is activated to shoot the target scene from different perspectives.

[0018] In one possible implementation, a three-dimensional model corresponding to the target scene is obtained based on image data corresponding to the target scene, including: obtaining signed distance field information corresponding to the target scene based on a camera pose and a second neural radiation field model corresponding to images of each perspective, or based on a camera pose and a depth map corresponding to images of each perspective; obtaining a grid corresponding to the target scene based on the signed distance field information; and obtaining the three-dimensional model corresponding to the target scene based on the grid.

[0019] It can be understood that in the present application, the second neural radiation field model can be obtained based on the traditional neural radiation field and the signed distance field, and the signed distance field information can be the signed distance field value. Based on the signed distance field value of the entire scene, the grid of the target scene can be extracted. In the above scheme, the neural radiation field model is combined with the signed distance field to reconstruct the three-dimensional model corresponding to the target scene, so that the neural radiation field model can learn a more refined geometric structure, thereby improving the quality of the three-dimensional model.

[0020] In a possible implementation, obtaining a three-dimensional model corresponding to a target scene based on a grid includes: performing texture mapping on the grid based on an image of a preset perspective and a camera pose corresponding to the image of the preset perspective to obtain a textured three-dimensional model corresponding to the target scene.

[0021] It can be understood that in the embodiment of the present application, the camera pose corresponding to the image of the preset perspective may refer to the new perspective pose in the reasoning process of the first neural radiation field model, and the image of the preset perspective may be an image of the new perspective obtained based on the first neural radiation field model. Texture mapping of the grid structure based on the image of the preset perspective and the camera pose corresponding to the image of the preset perspective can achieve high-quality texture of the 3D model of the target scene, solve the problems of missing and misaligned texture of the 3D model in the embodiment, and provide higher quality training data for the neural rendering model, thereby improving the accuracy of the neural rendering model, and then improving the quality of the rendered image, thereby improving the user's scene roaming experience.

[0022] In a possible implementation, the geometric feature layer includes a normal layer, a position layer, and a view direction layer; or, the geometric feature layer includes an albedo layer, a normal layer, a position layer, and a view direction layer.

[0023] In a possible implementation, the first electronic device is a cloud server, and the second electronic device is a terminal electronic device.

[0024] In a second aspect, the present application provides a rendering system, characterized in that it includes: a data processing unit, used to obtain image data corresponding to a target scene, and used to obtain a three-dimensional model corresponding to the target scene based on the image data corresponding to the target scene; an offline rendering unit, used to render the three-dimensional model based on a preset perspective, and obtain a geometric feature layer under the preset perspective; a training unit, used to obtain a first neural radiation field model corresponding to the target scene based on the image data corresponding to the target scene; a training unit, used to obtain an image under a preset perspective based on the first neural radiation field model, and train the first neural rendering model based on the geometric feature layer under the preset perspective and the image under the preset perspective to obtain a second neural rendering model, and the second neural rendering model is used to obtain a rendered image.

[0025] In a possible implementation, it also includes an online real-time rendering unit, which is used to obtain the user input perspective, render the three-dimensional model based on the user input perspective, obtain the geometric feature layer corresponding to the user input perspective, and obtain the rendered image based on the geometric feature layer corresponding to the user input perspective and the second neural rendering model.

[0026] In a possible implementation, the online real-time rendering unit is used to send the rendered image to the second electronic device.

[0027] In one possible implementation, the online real-time rendering unit is used to send the rendering engine and the second neural rendering model to the second electronic device.

[0028] In a third aspect, the present application provides an electronic device, comprising: a processor, the processor being used to receive a second neural rendering model and a rendering engine sent by a cloud unit; obtaining a user input perspective, obtaining a user input perspective, rendering a three-dimensional model based on the user input perspective, obtaining a geometric feature layer corresponding to the user input perspective, and obtaining a rendered image based on the geometric feature layer corresponding to the user input perspective and the second neural rendering model; wherein a method for obtaining the second neural rendering model comprises: obtaining image data corresponding to a target scene; obtaining a three-dimensional model and a first neural radiation field model corresponding to the target scene based on the image data corresponding to the target scene; obtaining an image at a preset perspective based on the first neural radiation field model, and rendering the three-dimensional model based on the preset perspective, and obtaining the geometric feature layer at the preset perspective; training the first neural rendering model based on the geometric feature layer at the preset perspective and the image at the preset perspective to obtain a second neural rendering model.

[0029] Based on the above scheme, since the sample data used in training the neural rendering model is a geometric feature layer obtained based on the three-dimensional model, and the reference image is a more realistic image obtained by the first neural radiation field model, the rendered image obtained based on the trained neural rendering model can improve the quality of the rendered image while ensuring the authenticity of the image, thereby enhancing the user's scene roaming experience.

[0030] In a fourth aspect, the present application provides an electronic device, comprising a memory for storing instructions executed by one or more processors; and a processor for executing the rendering method mentioned in the present application.

[0031] In a fifth aspect, the present application provides a readable medium having instructions stored thereon, and when the instructions are executed on an electronic device, the electronic device executes the rendering method mentioned in the present application.

[0032] In a sixth aspect, the present application provides a computer program product, including instructions, which, when executed on an electronic device, enable the electronic device to perform the rendering method mentioned in the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 According to some embodiments of the present application, a schematic diagram of a rendering scene is shown;

[0034] Figure 2 According to some embodiments of the present application, a schematic diagram of a three-dimensional image rendering method based on reconstructing a 3D model is shown;

[0035] Figure 3 According to some embodiments of the present application, a schematic diagram of a three-dimensional image rendering method based on reconstructing a 3D model is shown;

[0036] Figure 4 According to some embodiments of the present application, a schematic diagram of a scene rendering system is shown;

[0037] Figure 5a According to some embodiments of the present application, a schematic diagram of reconstructing a 3D model corresponding to a target scene is shown;

[0038] Figure 5b According to some embodiments of the present application, a schematic diagram of a method of constructing a ray starting from the camera center and passing through the camera center and each pixel point of the image is shown;

[0039] Figure 6 According to some embodiments of the present application, a schematic diagram of a training process of a neural rendering model is shown;

[0040] Figure 7 According to some embodiments of the present application, a schematic diagram of a rendering process is shown;

[0041] Figure 8 According to some embodiments of the present application, a schematic flow chart of a rendering method is shown;

[0042] Fig. 9 According to some embodiments of the present application, a schematic flow chart of a rendering method is shown;

[0043] Fig.10 According to some embodiments of the present application, a schematic flow chart of a rendering method is shown;

[0044] Fig.11 According to some embodiments of the present application, a schematic flow chart of a 3D model reconstruction method is shown;

[0045] Fig.12 According to some embodiments of the present application, a schematic diagram showing a comparison of meshes reconstructed based on different methods is shown;

[0046] Fig.13 According to some embodiments of the present application, a schematic diagram of analyzing the advantages and disadvantages of rendering technologies provided in some comparative embodiments is shown;

[0047] Fig.14 According to some embodiments of the present application, a schematic diagram of a terminal electronic device is shown. DETAILED DESCRIPTION

[0048] The illustrative embodiments of the present application include, but are not limited to, a training method for a neural rendering model, a rendering method, an electronic device, and a medium.

[0049] The following first introduces the three-dimensional image rendering method mentioned in some embodiments.

[0050] Figure 2 A schematic diagram of a 3D image rendering method based on a reconstructed 3D model is shown. The rendering method may include: firstly, performing 3D reconstruction on image data corresponding to a target scene (such as a room, exhibition hall, etc.) to obtain a textured 3D model corresponding to the target scene. Figure 2 As shown, the image of the textured 3D model in the new perspective pose is rendered in real time by a traditional renderer, so that the 3D model corresponding to the target scene can be viewed from different angles, and the roaming effect of the target scene can be achieved.

[0051] Specifically, when reconstructing a textured 3D model corresponding to the target scene, pose estimation, dense reconstruction, mesh reconstruction and simplification, and texture mapping are required. In actual scenes, since the estimated camera pose in the pose estimation process is often inaccurate and the scene acquisition is incomplete, mesh loss will occur in the mesh reconstruction process, and texture misalignment and loss will occur in the texture mapping process, resulting in poor quality of 3D model reconstruction, which in turn results in poor realism of the new perspective image obtained by rendering the 3D model through the renderer, making the user's roaming effect lack of reality, affecting the user's roaming experience.

[0052] Figure 3 A schematic diagram of a three-dimensional image rendering method based on Neural Radiance Fields (NeRF) is shown, and the specific method includes: during the cloud training process, the cloud server trains the neural radiation field model based on the image data corresponding to the target scene, for example, based on each picture corresponding to the target scene, and the camera pose corresponding to each picture, and performs loss calculation to obtain the trained neural radiation field model. In some schemes, when the user is watching, that is, during the reasoning process, the new perspective pose input by the user can be directly obtained through the cloud server, and the image corresponding to the new perspective can be obtained based on the neural radiation field model for display. In other schemes, the neural radiation model can be converted into an explicit three-dimensional model that can be rendered in real time on the end side, and sent to the end side device. When a new perspective input by the user is detected, the image under the new perspective is rendered in real time through the explicit three-dimensional model.

[0053] In the above schemes, the essence of the rendered images is obtained based on the reasoning of the neural radiation field model, which can effectively render the realism of the image to a certain extent. However, since the above-mentioned three-dimensional image rendering method based on the neural radiation field only focuses on the rendering quality of the new perspective, the geometric quality of the target scene obtained in the above scheme is poor, resulting in a poor experience for users to place 3D models in the target scene, making it impossible to achieve high-quality real-time scene roaming.

[0054] In order to solve the above-mentioned problem of being unable to achieve high-quality real-time scene roaming, the present application provides a rendering method, which can obtain a rendered image through a neural rendering model, wherein when the neural rendering model is trained, the images under multiple preset perspectives obtained based on the neural radiation field model can be used as reference images for neural rendering model training, and the geometric feature layers under multiple preset perspectives obtained by rendering the three-dimensional model corresponding to the target scene through the rendering engine are used as sample data for neural rendering model training to train the neural rendering model. In this way, since the sample data used in the training of the neural rendering model is the geometric feature layer obtained based on the three-dimensional model, and the reference image is an image with a strong sense of reality obtained by the neural radiation field model, the rendered image obtained based on the trained neural rendering model can improve the quality of the rendered image while ensuring the authenticity of the image, thereby enhancing the user's scene roaming experience.

[0055] In some embodiments, the rendering method mentioned in the present application can be used in a cloud server, and can also be used in an interaction scenario between a cloud server and a terminal electronic device.

[0056] In some embodiments, the cloud server can first construct a three-dimensional model corresponding to the target scene based on image data such as images of each perspective corresponding to the target scene, and train to obtain a neural radiation field model corresponding to the target scene, and then obtain images at multiple preset perspectives based on the neural radiation field model as reference images for training the neural rendering model. The geometric feature layers at multiple preset perspectives obtained by rendering the three-dimensional model corresponding to the target scene through the rendering engine are used as sample data for training the neural rendering model to train the neural rendering model.

[0057] In some embodiments, the steps of constructing a three-dimensional model corresponding to the target scene, training a neural radiation field model, and training a neural rendering model can all be performed on a cloud server. After the neural rendering model is trained, the user can input a viewing angle through a terminal electronic device, and the terminal electronic device sends the user input viewing angle to the cloud server. The cloud server obtains a geometric feature layer corresponding to the user input viewing angle based on a rendering engine, and then obtains a rendered image under the corresponding viewing angle based on the geometric feature layer and the neural rendering model and sends it to the terminal electronic device for display.

[0058] In some embodiments, the cloud server may also directly send the rendering engine and the neural rendering model to the terminal electronic device. In this way, the terminal electronic device can directly obtain the user's perspective and obtain the rendered image based on the rendering engine and the neural rendering model for display, thereby improving rendering efficiency and enhancing the user's interactive experience.

[0059] The following is an introduction to a rendering system that can execute the rendering method of the present application. Figure 4As shown, the rendering system may include an end-side system and a cloud-side system, wherein the end-side system may include one or more terminal devices, and the cloud-side system may include one or more servers. For example, the cloud-side system may include a data processing unit, an offline rendering unit, a training unit, a storage unit, and an online real-time rendering unit, wherein the data processing unit, the offline rendering unit, the training unit, the storage unit, and the online real-time rendering unit may be a data processing server, an offline rendering server, a training server, a storage server, and an online real-time rendering server, respectively. It can be understood that the data processing unit, the offline rendering unit, the training unit, the storage unit, and the online real-time rendering unit may be multiple sub-units on a server, or may be multiple distributed servers, and this application does not limit this. The end-side device may include a collection device and a display device. In some embodiments, the collection device and the display device may be the same terminal electronic device, or may be different terminal electronic devices.

[0060] The acquisition device is used to acquire image data of the target scene and upload the image data to the data processing server. The image data may include image data such as a picture sequence or a video stream, wherein the picture sequence may include an RGB (where R represents red, G represents green, and B represents blue) picture sequence or an RGBD (where R represents red, G represents green, B represents blue, and D represents depth information) picture sequence. In some embodiments, the acquisition device may also be used to obtain prior parameter information of the target scene, such as position, angle, depth, etc.

[0061] The data processing server is used to obtain the 3D model corresponding to the target scene based on the image data of the target scene, and send the 3D model corresponding to the target scene to the offline rendering server. It is also used to obtain the camera pose of each picture in the image data of the target scene and the camera trajectory, field of view (FOV) width and height for the neural rendering model, and is used to transmit the image data of the target scene, the camera pose of each picture in the image data, and the camera trajectory, FOV, width and height for training the neural rendering model to the training server.

[0062] In some embodiments, the data processor server may obtain the 3D model corresponding to the target scene based on the image data of the target scene as follows: Figure 5a As shown, the following process is included:

[0063] Pose estimation process: Based on the image data of the target scene (e.g., RGB image sequence), obtain the camera pose of each RGB image corresponding to the viewing angle. The pose estimation method may be structure from motion (SfM) or other pose estimation methods. In some embodiments, before pose estimation, the image data of the target scene may be preprocessed. For example, the preprocessing may be to extract part of the image data from the image data of the target scene for three-dimensional reconstruction, neural radiation field training, etc., and then perform pose estimation based on the extracted part of the image data.

[0064] Dense reconstruction process: Based on the image data of the target scene (such as RGB image sequence) and the camera pose of each RGB image corresponding to the viewing angle, the dense point cloud corresponding to the target scene is obtained. The dense reconstruction algorithm used in the dense reconstruction process can adopt multi-view stereo (MVS) and its improved algorithm, multi-view stereo network (MVSNet) and its improved algorithm or other multi-frame depth estimation algorithms, such as SimpleRecon.

[0065] Mesh reconstruction and simplification process: Based on the dense point cloud corresponding to the target scene, obtain the 3D mesh corresponding to the target scene. In some embodiments, in order to reduce the amount of computation for texture mapping and rendering, the 3D mesh corresponding to the target scene can also be simplified using a mesh simplification algorithm to obtain a 3D mesh with fewer facets and less storage. The present application does not limit the specific mesh reconstruction and simplification algorithm.

[0066] Texture mapping process: Based on multiple images and camera poses of corresponding viewing angles, and the 3D mesh corresponding to the target scene, a 3D model with texture is obtained. The texture mapping algorithm can be any algorithm that can implement texture mapping.

[0067] The offline rendering server is used to render the 3D model corresponding to the target scene, obtain the geometric feature layer (G-Buffer layer) under the preset perspective, for example, including the albedo layer, the normal layer, the position layer and the view direction layer. And send the geometric feature layer to the training server. Among them, the specific method of obtaining the geometric feature layer under the preset perspective may include:

[0068] First, obtain the new perspective camera pose (or preset perspective), where the new perspective camera pose can adopt the camera pose corresponding to the original image, or it can be generated by sampling different objects at different angles and distances in the target scene. Then input the textured 3D model, the new perspective camera pose, FOV, image width and height into the offline rendering engine, and output the albedo layer, normal layer, position layer and view direction layer. This application does not limit the selection of the offline rendering engine. It can be understood that in some embodiments, the offline rendering engine may not output the albedo layer.

[0069] In some embodiments, the above-mentioned offline rendering process can be run in parallel on multiple servers in a distributed manner. In some embodiments, the FOV and camera pose used in the offline rendering process can be consistent with the FOV and camera pose used in the training of the neural radiation field model or the difference is within a preset range, wherein the preset range of the difference can be determined according to the actual required accuracy of the neural network model, for example, the absolute value of the difference can be less than 1 degree. For example, the first preset field of view angle can be 50 degrees, and the degree of the second preset field of view angle can be any value within 49-51 degrees. In this way, the RGB pixels of the generated geometric feature layer basically correspond to the RGB pixels obtained by the neural radiation field model, and there is no obvious deviation, which is convenient for the training of the neural rendering model.

[0070] The training server is used to train the neural radiation field model and neural rendering model of the target scene, and transmit the trained neural rendering model to the storage server.

[0071] The following first introduces the method of training the neural radiation field model of the target scene.

[0072] Specifically, the neural radiation field model is a multi-layer perceptron model. The input of the neural radiation field model is a vector X = (x, y, z) of a three-dimensional spatial position and a two-dimensional viewing direction vector d = (θ, φ), and the output is a volume density σ of a three-dimensional spatial position and a color vector c = (r, g, b) from the position along the direction of light d. Where X (x, y, z) is the coordinate of the spatial point in the target scene; is the observation direction or light direction, θ represents the observation pitch angle, represents the observation horizontal angle; c = (R, G, B) represents the color of the spatial point, and σ represents the spatial density of the spatial point.

[0073] During the training phase of the neural radiation field model, each RGB image and its corresponding camera pose can be used as training data for the neural radiation field model. During the inference process of the neural radiation field model, the output rendering image is set to a specified FOV, width, and height, and the neural radiation field can render an RGB image of the corresponding size. Specifically, the training process of the neural radiation field model includes:

[0074] According to the coordinates (x, y, z) of the spatial point on each ray and the corresponding viewing direction Sampling is performed on the ray to construct the model training vector corresponding to each spatial point In some embodiments, the camera intrinsic parameters can be calculated first, and then a ray starting from the camera center and passing through the camera center and each pixel of the image can be constructed according to the camera pose of the viewing angle. Where o is the starting point of the light, d is the direction of the light (unit vector), and t is the sampling distance from the starting point along the direction of the light.

[0075] During the model training process, the model training vector is input into the initialized neural radiation field model to obtain the color and volume density of each spatial point.

[0076] Based on the colors and volume densities of all spatial points on a ray, estimate the observed pixel color in the observation direction of the ray;

[0077] Using the preset loss function, the output loss of the current neural radiation field model is calculated based on the estimated result of the pixel color and the true value of the pixel color represented by the RGB image under the observation direction.

[0078] During the inference process, the camera intrinsic parameter K can be calculated based on the FOV, where:

[0079]

[0080] where f x and f y represents the horizontal and vertical focal lengths of the camera. In some embodiments, an ideal pinhole camera model is used in the NeRF inference process. x =f y .c x and c y Indicates the horizontal and vertical offset of the image origin relative to the camera optical center. The focal length of the camera can be calculated based on the FOV. The specific calculation formula is as follows:

[0081]

[0082] Where h is the image height, f x and f y Represents the horizontal and vertical focal lengths of the camera respectively.

[0083] In some embodiments, the method of constructing a ray starting from the camera center and passing through the camera center and each pixel point of the image can be as follows: Figure 5bAs shown, it includes: first obtaining the 3D coordinates of the camera center and the pixel point in the camera coordinate system, where the camera center can be [0,0,0] for example. The coordinates (x, y, z) of the pixel point can be calculated as follows: the x and y coordinates are the 2D image coordinates (i, j) minus the optical center coordinates (cx, cy), and the z coordinate is the focal length f.

[0084] The direction vector of the ray is (i-cx, j-cy, f)-(0, 0, 0) = (i-cx, j-cy, f). Because the ray is represented by a vector, the entire vector can be divided by the focal length f to normalize the z coordinate to get (i-cxf, j-cyf, 1), and then the c2w matrix is ​​used to transform the camera center and the ray direction in the camera coordinate system to the world coordinate system, so that a ray starting from the camera center and passing through the camera center and each pixel of the image can be constructed.

[0085] The training server can also input the camera trajectory (such as different preset viewing angles), the FOV, width and height of the image into the trained neural radiation field model to obtain images with preset viewing angles corresponding to the FOV, width and height.

[0086] The following describes how to train the neural rendering model.

[0087] like Figure 6 As shown, the training process of the neural rendering model may include: first, taking the geometric feature layer, such as the albedo layer, the normal layer, the position layer and the view direction layer of each pixel light direction as the input of the MLP network of the neural rendering model, obtaining the output image of the corresponding MLP network, taking the image output by the neural radiation field model as the reference image, and calculating the loss based on the output image and the reference image to realize the training of the MLP network weights and neural texture of the neural rendering model.

[0088] Among them, the position layer and the view direction layer of each pixel's light direction need to be mapped to a higher-dimensional space through pose encoding to improve the network's ability to fit high-frequency functions; neural textures can be represented in three planes, UV space, or spherical coordinates; in the loss calculation, in addition to using the network output color and the true value to calculate the L2 loss, a deep convolutional network structure and structural similarity (SSIM) loss proposed by the visual geometry group (VGG) can also be used.

[0089] Storage server: used to store the textured 3D model of the target scene, the trained neural rendering model, the trained neural rendering model weights and neural textures. The storage server can also be used to transfer the image data generated by the offline renderer to the training server, and transfer the textured 3D model of the target scene to the online real-time rendering server.

[0090] Online real-time rendering server: including rendering engine and neural rendering model. It is used to receive the operation information of the user on the display device, such as input viewing angle, and obtain the corresponding rendered image based on the operation information of the user on the display device. For example, the rendering process can be as follows: Figure 7 As shown, including:

[0091] The new view trajectory input by the user is obtained, such as a specified view pose, and based on the new view trajectory input by the user, the textured 3D model of the target scene is rendered in real time through the rendering engine, and the geometric feature layers under the corresponding view are output, such as the albedo layer, the normal layer, the position layer, and the view direction layer. Then the geometric feature layer output by the rendering engine is combined with the neural texture input into the MLP reasoning in the neural rendering model to obtain the rendered image under the corresponding view, and finally the rendered image is sent to the display device.

[0092] In some embodiments, the online real-time rendering server can directly send the rendering engine and the neural rendering model to the terminal electronic device. In this way, the terminal electronic device can directly obtain the user's perspective and obtain the rendered image based on the rendering engine and the neural rendering model for display, thereby improving rendering efficiency and enhancing the user's interactive experience.

[0093] Display device: Displays the scene roaming results, that is, displays the rendered image. Display devices include but are not limited to personal computers, mobile phones, VR devices and other terminal electronic devices.

[0094] The rendering method mentioned in the embodiment of the present application is introduced below. Figure 8 A schematic diagram of a rendering method of the present application is shown. In some embodiments, the rendering method can be executed by a cloud server. Figure 8 As shown, the rendering method may include:

[0095] 801: Acquire image data of a target scene.

[0096] It is understood that in the embodiment of the present application, the target scene may refer to a physical space in a real environment, and illustratively, the physical space may be the interior space of a building. For example, the target scene may refer to a living room scene, an office scene, a library scene, etc.

[0097] The image data of the target scene may include image data such as a picture sequence or a video stream, wherein the picture sequence may include an RGB picture sequence or an RGBD picture sequence. The image sequence may be a sequence of multiple continuous images obtained when a mobile device starts a camera and shoots the target scene from different perspectives. In some embodiments, any two continuous images among the multiple images contain a certain proportion of overlapping content. Alternatively, the image sequence is obtained by sampling multiple frames of images in the video when a mobile device starts a camera and records a video of the target scene from different perspectives.

[0098] 802: Acquire a 3D model corresponding to the target scene based on the image data of the target scene.

[0099] In some embodiments, the method of obtaining the 3D model corresponding to the target scene based on the image data of the target scene can be as described above. Figure 3 As shown, the following process is included:

[0100] Pose estimation process: Based on the image data of the target scene (e.g., RGB image sequence), obtain the camera pose of each RGB image corresponding to the viewing angle. The pose estimation method may be structure from motion (SfM) or other pose estimation methods. In some embodiments, before pose estimation, the image data of the target scene may be preprocessed. For example, the preprocessing may be to extract part of the image data from the image data of the target scene for three-dimensional reconstruction, neural radiation field training, etc., and then perform pose estimation based on the extracted part of the image data.

[0101] Dense reconstruction process: Based on the image data of the target scene (such as RGB image sequence) and the camera pose of each RGB image corresponding to the viewing angle, the dense point cloud corresponding to the target scene is obtained. The dense reconstruction algorithm used in the dense reconstruction process can adopt multi-view stereo (MVS) and its improved algorithm, multi-view stereo network (MVSNet) and its improved algorithm or other multi-frame depth estimation algorithms, such as SimpleRecon.

[0102] Mesh reconstruction and simplification process: Based on the dense point cloud corresponding to the target scene, obtain the 3D mesh corresponding to the target scene. In some embodiments, in order to reduce the amount of computation for texture mapping and rendering, the 3D mesh corresponding to the target scene can also be simplified using a mesh simplification algorithm to obtain a 3D mesh with fewer facets and less storage. The present application does not limit the specific mesh reconstruction and simplification algorithm.

[0103] Texture mapping process: Based on multiple images and camera poses of corresponding viewing angles, and the 3D mesh corresponding to the target scene, a 3D model with texture is obtained. The texture mapping algorithm can be any algorithm that can implement texture mapping.

[0104] 803: Acquire a neural radiation field model corresponding to the target scene based on the image data of the target scene.

[0105] Specifically, the neural radiation field model is a multi-layer perceptron model. The input of the neural radiation field model is a vector X = (x, y, z) of a three-dimensional spatial position and a two-dimensional viewing direction vector d = (θ, φ), and the output is a volume density σ of a three-dimensional spatial position and a color vector c = (r, g, b) from the position along the direction of light d. Where X (x, y, z) is the coordinate of the spatial point in the target scene; is the observation direction or light direction, θ represents the observation pitch angle, represents the observation horizontal angle; c = (R, G, B) represents the color of the spatial point, and σ represents the spatial density of the spatial point.

[0106] During the training phase of the neural radiation field model, each RGB image and its corresponding camera pose can be used as training data for the neural radiation field model. During the inference process of the neural radiation field model, the specified FOV, width, and height are set, and the neural radiation field can render an RGB image of the corresponding size. Specifically, the training process of the neural radiation field model includes:

[0107] According to the coordinates (x, y, z) of the spatial point on each ray and the corresponding viewing direction Sampling is performed on the ray to construct the model training vector corresponding to each spatial point In some embodiments, a ray starting from the camera center and passing through the camera center and each pixel point of the image can be constructed according to the camera posture of the viewing angle.

[0108] Where o is the starting point of the light, d is the direction of the light (unit vector), and t is the sampling distance from the starting point along the direction of the light.

[0109] During the model training process, the model training vector is input into the initialized neural radiation field model to obtain the color and volume density of each spatial point.

[0110] Based on the colors and volume densities of all spatial points on a ray, estimate the observed pixel color in the observation direction of the ray;

[0111] Using the preset loss function, the output loss of the current neural radiation field model is calculated based on the estimated result of the pixel color and the true value of the pixel color represented by the RGB image under the observation direction.

[0112] 804: Acquire a first image at a preset viewing angle based on the neural radiation field model.

[0113] In an embodiment of the present application, the training server can obtain an image at a preset viewing angle based on the trained neural radiation field model, and use the image at the preset viewing angle obtained by the neural radiation field model as a reference image for training the neural rendering model. Specifically, the camera trajectory (i.e., the unused preset viewing angle), the FOV, width, and height of the image can be input into the trained neural radiation field model, and a picture of the preset viewing angle under the specified FOV, width, and height, i.e., the first image, can be output.

[0114] 805: Acquire a geometric feature layer under a preset viewing angle based on the 3D model corresponding to the target scene.

[0115] In an embodiment of the present application, a 3D model corresponding to the target scene can be rendered based on an offline rendering engine in an offline rendering server to obtain a geometric feature layer under a preset viewing angle.

[0116] The specific method of obtaining the geometric feature layer under the preset viewing angle may include:

[0117] First, obtain the new perspective camera pose, where the new perspective camera pose can use the camera pose corresponding to the original image, or it can be generated by sampling different objects at different angles and distances in the target scene. Then input the textured 3D model, the new perspective camera pose, FOV, image width and height into the offline rendering engine, and output the albedo layer, normal layer, position layer and view direction layer. This application does not limit the selection of the offline rendering engine. It can be understood that in some embodiments, the offline rendering engine may not output the albedo layer.

[0118] In some embodiments, the above offline rendering process can be run in parallel using multiple servers. In some embodiments, the FOV and camera pose used in the offline rendering process can be consistent with the FOV and camera pose used in the subsequent neural radiation field model training, so that the generated geometric feature layer RGB pixels and the RGB pixels obtained by the neural radiation field model basically correspond one to one, and there is no obvious deviation, which is convenient for the training of the neural rendering model.

[0119] 806: Train the neural rendering model based on the geometric feature layer and the first image at a preset viewing angle to obtain a trained neural rendering model.

[0120] In some embodiments, the method of obtaining the neural rendering model can be as follows: Figure 6As shown, it includes: firstly taking the albedo layer, normal layer, position layer and view direction layer of each pixel light direction as the input of the MLP network of the neural rendering model, obtaining the output image of the corresponding MLP network, taking the image output by the neural radiation field model as the reference image, and calculating the loss based on the output image and the reference image to realize the training of the MLP network weights and neural texture of the neural rendering model.

[0121] Among them, the position layer and the view direction layer of each pixel's light direction need to be mapped to a higher-dimensional space through pose encoding to improve the network's ability to fit high-frequency functions; neural textures can be represented in three planes, UV space, or spherical coordinates; in the loss calculation, in addition to using the network output color and the true value to calculate the L2 loss, VGG and SSIM losses can also be used.

[0122] 807: Get the perspective input by the user.

[0123] In some embodiments, the user can input different viewing angles through any feasible method such as a mouse, keyboard, or touch screen of the terminal electronic device.

[0124] 808: Based on the perspective input by the user, the rendering engine and the neural rendering model, obtain a rendered image at a corresponding perspective.

[0125] In some embodiments, the steps of constructing a three-dimensional model corresponding to the target scene, training a neural radiation field model, and training a rendering model can all be performed on each server of the cloud-side system. After the rendering model training is completed, the user can input a viewing angle through a terminal electronic device, and the terminal electronic device sends the user input viewing angle to an online real-time rendering server of the cloud-side system. The online real-time rendering server obtains a rendering image under the corresponding viewing angle based on the rendering model and sends it to the terminal electronic device for display.

[0126] In some embodiments, the online real-time rendering server may also directly send the neural rendering model and the rendering engine to the terminal electronic device. In this way, the terminal electronic device can directly obtain the user's perspective and obtain the rendered image based on the neural rendering model and the rendering engine for display, thereby improving rendering efficiency and enhancing the user's interactive experience.

[0127] In some embodiments, the rendering process of the online real-time rendering server can be as follows: Figure 7As shown, it includes obtaining the new perspective trajectory generated by the user in real-time interaction on the terminal side, that is, each perspective. The rendering engine in the online real-time rendering server can render the textured 3D model of the target scene based on the corresponding perspective, and generate geometric feature layers under the corresponding perspective, such as albedo layer, normal layer, position layer and view direction layer. Then the online real-time rendering server can combine the geometric feature layer output by the rendering engine with the MLP reasoning in the neural texture input neural rendering model to obtain the RGB image under the corresponding perspective, and finally send the RGB image to the terminal device.

[0128] When the user continuously adjusts the viewing angle, the online real-time rendering server can continuously execute the above process to display the RGB image of the corresponding viewing angle on the terminal device, thereby achieving the effect of scene roaming.

[0129] In the embodiment of the present application, since the sample data used in training the neural rendering model is a geometric feature layer obtained based on a three-dimensional model, and the reference image is an image with a strong sense of reality obtained by a neural radiation field model, the rendered image obtained based on the trained neural rendering model can improve the accuracy of the geometric features of the target scene while ensuring the authenticity of the image, effectively solve the problem of poor geometric features obtained by the neural radiation field model, improve the quality of the rendered image, and enhance the user's scene roaming experience.

[0130] This application combines the neural radiation field model and the neural rendering model to enable users to interactively roam high-quality scenes in real time on terminal devices. In addition, since this solution displays and reconstructs high-quality 3D models, it solves the problem of poor geometric features of images acquired by the neural radiation field model, and thus can also achieve highly realistic placement of virtual objects.

[0131] In the rendering method provided in this application, the neural radiation field is combined with neural rendering. A high-quality image in the corresponding posture is obtained through the neural radiation field as a reference image, and the geometric feature information such as position, normal, albedo, etc. in the corresponding posture is obtained through a traditional rendering engine. This is used as training data for training the neural rendering model, which can effectively solve the differences caused by the non-fixed FOV in the actual collected data and provide high-quality input for neural rendering.

[0132] Combine the following Fig. 9 The rendering method flow shown in FIG. 1 further introduces the rendering method mentioned in this application. Fig. 9 As shown, the rendering method may include:

[0133] First, the user collects image data, such as RGB pictures, through the terminal system. The terminal electronic device sends the RGB pictures to the cloud system.

[0134] Then, the cloud-side system performs three-dimensional reconstruction based on the image data of the target scene to obtain the 3D model corresponding to the target scene, and performs training and inference of the neural radiation field model.

[0135] The specific method of obtaining the 3D model corresponding to the target scene can be: after receiving the data of the target scene, the data of the target scene is preprocessed, and based on the processed data, pose estimation, mesh reconstruction (such as dense reconstruction process and mesh reconstruction and simplification process), and texture mapping process are performed in sequence to obtain a textured 3D model of the target scene.

[0136] During the training phase of the neural radiation field model, each RGB image and its corresponding camera pose can be used as training data for the neural radiation field model.

[0137] During the inference stage of the neural radiation field model, the new perspective pose can be input into the neural radiation field model to obtain the corresponding new perspective RGB image, and the RGB image can be used as a reference image in the subsequent neural rendering model training process.

[0138] Then, the cloud-side system trains the neural rendering model by using the RGB image output by the neural radiation field model as a reference image, and using the geometric feature layers under different viewing angles and poses obtained by rendering the 3D model as input data for training. The training method of the neural rendering model may include: first using the albedo layer, normal layer, position layer, and view direction layer of each pixel light direction as inputs of the MLP network of the neural rendering model, obtaining the output image of the corresponding MLP network, using the image output by the neural radiation field model as a reference image, and calculating the loss based on the output image and the reference image to train the MLP network weights and neural texture of the neural rendering model.

[0139] Finally, the cloud-side system infers the neural rendering model. The specific method can be: obtain the new perspective and pose input by the user, and based on the new perspective and pose input by the user, use the traditional renderer to render the textured 3D model of the target scene in real time, and output the geometric feature layers under the corresponding perspective, such as albedo layer, normal layer, position layer and view direction layer. Then, the geometric feature layer output by the rendering engine is combined with the neural texture input to the MLP inference in the neural rendering model to obtain the rendered image under the corresponding perspective, and finally the rendered image is sent to the display device.

[0140] In some embodiments, Fig.10 As shown, when reconstructing the 3D model corresponding to the target scene, the new perspective pose in the neural radiation field model reasoning process and the obtained new perspective RGB image can be used as input of the texture mapping process.

[0141] It is understandable that in some cases, the camera pose estimated by the pose estimation process generally has errors, and the acquisition perspective of the RGB image is missing, resulting in texture missing, misalignment and other problems in the textured 3D model. In the embodiment of the present application, the new perspective pose in the neural radiation field model reasoning process and the new perspective RGB picture obtained can be used to achieve high-quality texture of the target scene 3D model, solve the problems of missing texture and misalignment of the 3D model in the embodiment, and provide higher quality training data for the neural rendering model, thereby improving the accuracy of the neural rendering model, and then improving the quality of the rendered image, thereby improving the user's scene roaming experience.

[0142] In some embodiments, in the dense reconstruction process of the 3D model corresponding to the target scene, the dense reconstruction algorithm used may be MVS or a multi-frame depth estimation algorithm, such as SimpleRecon, etc. However, the MVS algorithm cannot calculate the depth in weak textures and repeated textures, which will result in an incomplete dense point cloud of the scene; the depth map of each frame estimated by the multi-frame depth estimation algorithm will be inconsistent, resulting in problems such as misalignment and inconsistency in the fused dense point cloud, thereby affecting the mesh reconstruction effect of the target scene.

[0143] To solve the above problems, some embodiments of the present application provide a 3D model reconstruction method, such as Fig.11 As shown, NeRF and SDF reconstruction are used to replace the original dense reconstruction process. The process may include: inputting RGB pictures and camera poses, and outputting the signed distance field (signed distance field, SDF) of the target scene. In the above process, NeRF is combined with SDF (that is, the second neural radiation field model mentioned in this application) to reconstruct the target scene. The difference from the original NeRF is that the volume density σ is transformed into the representation of SDF through a function, so that the model can learn a better scene geometry representation. The specific implementation method can use Neus, MonoSDF, etc. Then train the NeRF network, and obtain the SDF value (SDF information) of the entire scene based on the trained second neural radiation field model (NeRF+SDF) or depth map, and then use the Marching Cubes algorithm based on the SDF value of the entire scene to extract the mesh of the scene. Subsequently, mesh simplification and texture mapping processes are performed based on the mesh of the extracted scene to obtain a textured 3D model. The above solution of this application can utilize NeRF in combination with SDF to allow the NeRF model to learn more refined geometric structures, thereby improving the quality of the 3D model, thereby improving the quality of the final rendered image and enhancing the user scene roaming experience.

[0144] In some embodiments, in the above-mentioned mesh simplification and texture mapping process based on the mesh of the extracted scene to obtain a textured 3D model, the new perspective pose (preset perspective) in the neural radiation field model reasoning process and the obtained new perspective RGB picture (image corresponding to the preset perspective) can be used as input to the texture mapping process, that is, the mesh structure is texture mapped based on the image of the preset perspective in the neural radiation field model reasoning process and the camera pose corresponding to the image of the preset perspective to obtain a textured three-dimensional model corresponding to the scene.

[0145] Fig.12 The left figure shows the Figure 5a Schematic diagram of the mesh reconstructed by the method shown, Fig.12 The middle right figure shows the Fig.11 Schematic diagram of the mesh reconstructed by the method in Fig.12 It can be seen that based on Fig.11 The mesh clarity and geometric features reconstructed by the method shown in the figure are good, which proves that the present invention Fig.11 The quality of the mesh reconstructed by the method provided in is better, that is, Fig.11 The method provided in can effectively improve the reconstruction quality of 3D models.

[0146] Fig.13 Schematic diagrams showing the advantages and disadvantages of some rendering techniques provided in comparative embodiments are shown in FIG. Fig.13 As shown in FIG. 1 , the rendering method based on the 3D model is to render the 3D model in the renderer to generate an RGB image of the corresponding viewing angle. The advantage of this solution is that the algorithm flow is simple and the amount of calculation is small. The disadvantage of this solution is that the 3D model has problems such as missing meshes, texture misalignment, missing and blurring, and lack of realistic light and shadow.

[0147] A NeRF-based rendering technology directly obtains rendered images through neural network inference in the neural radiation field in the cloud. Users can view roaming videos of the target scene through their mobile phones. The advantage of NeRF-based rendering technology is that the generated images have a strong sense of reality. The disadvantage is that the roaming video is generated on the cloud server, users cannot interact in real time on the end side, and the cost is high. In addition, the geometric features of the rendered image are poor.

[0148] Another NeRF-based rendering technology uses a coarse grid + feature texture + neural shader to achieve interactive roaming in order to solve the problem that NeRF cannot render in real time on the client side. However, the geometric quality of the rendered image is poor and the placement of virtual objects is not realistic.

[0149] In another solution, the display radiation field technology is used to generate roaming videos through grid initialization. The advantage is that the generated images have a strong sense of reality, but there is still a problem that users cannot interact in real time.

[0150] Compared with the scheme in the above-mentioned comparative embodiment, the scheme provided in the embodiment of the present application, since the sample data used in the training of the neural rendering model is a geometric feature layer obtained based on the three-dimensional model, and the reference image is an image with a strong sense of reality obtained by the neural radiation field model, therefore, the rendered image obtained based on the trained neural rendering model can improve the accuracy of the geometric features of the image while ensuring the authenticity of the image, effectively solve the problem of poor geometric features of the image obtained by the neural radiation field model, improve the quality of the rendered image, and enhance the user's scene roaming experience.

[0151] In addition, the solution provided in the embodiments of the present application, combined with the neural radiation field model and the neural rendering model, can enable users to interactively roam high-quality scenes in real time on terminal devices. In addition, since the solution displays and reconstructs high-quality 3D models, it solves the problem of poor geometric features of images acquired by the neural radiation field model, and thus can also achieve highly realistic placement of virtual objects.

[0152] A training method for a neural rendering model is also provided in an embodiment of the present application, the method comprising: obtaining sample data, the sample data comprising a geometric feature layer at a preset perspective, wherein the geometric feature layer at the preset perspective is obtained by rendering a three-dimensional model corresponding to a target scene based on the preset perspective; using the sample data as input data of a first neural rendering model to obtain a rendered image output by the first neural rendering model; adjusting parameters of the first neural rendering model based on a comparison result between the rendered image and a reference image to obtain a second neural rendering model, wherein the reference image is an image at a preset perspective obtained based on a neural radiation field model corresponding to the target scene.

[0153] It can be understood that the training method of the neural rendering model in the embodiment of the present application can be described in the above description of the rendering method and the scene rendering system or other contents (for example, in the description of Figure 9-11 The 3D model corresponding to the target scene in the embodiment of the present application can be obtained by any of the methods mentioned in the introduction of the rendering method and the scene rendering system or other contents (for example, in the introduction of Figure 9-11 The neural radiation field model mentioned in the embodiments of the present application can be obtained by any of the methods for obtaining a three-dimensional model corresponding to the target scene (for example, when introducing the rendering method and the scene rendering system). Figure 9-11 The neural radiation field model can be obtained by any method mentioned in the content of the text.

[0154] The structure of the terminal electronic device mentioned in the present application is introduced below. It can be understood that the terminal electronic device mentioned in the present application includes but is not limited to any one of the terminal devices such as tablet computers, mobile phones, foldable electronic devices, cellular phones, personal digital assistants (PDAs), artificial intelligence (AI) devices, wearable devices, and vehicle-mounted electronic devices. The second electronic device can be any one of the terminal devices such as PCs, tablet computers, mobile phones, foldable electronic devices, cellular phones, PDAs, AI devices, wearable devices, and vehicle-mounted electronic devices.

[0155] The structure of the terminal electronic device is introduced below by taking the mobile phone 10 as an example. Fig.14 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0156] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0157] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0158] It can be understood that in the embodiment of the present application, the processor can be used to obtain the user's perspective and obtain the rendered image for display based on the neural rendering model and the rendering engine. The processor can also enable the user to obtain image data of the target scene and send it to the cloud server.

[0159] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0160] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0161] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0162] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0163] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0164] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0165] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0166] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0167] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0168] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0169] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0170] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0171] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0172] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0173] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0174] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0175] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0176] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0177] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

[0178] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0179] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0180] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0181] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.

Claims

1. A rendering method, characterized in that: For a first electronic device, the method includes: Obtain image data corresponding to the target scene; Acquire a three-dimensional model and a first neural radiation field model corresponding to the target scene based on the image data corresponding to the target scene; Acquire an image at a preset viewing angle based on the first neural radiation field model, and render the three-dimensional model based on the preset viewing angle to acquire a geometric feature layer at the preset viewing angle; The first neural rendering model is trained based on the geometric feature layer at the preset viewing angle and the image at the preset viewing angle to obtain a second neural rendering model, where the second neural rendering model is used to obtain a rendered image.

2. The method according to claim 1, characterized in that The method further comprises: The first electronic device acquires a user input perspective sent by the second electronic device; The first electronic device renders the three-dimensional model based on the user input perspective, obtains a geometric feature layer corresponding to the user input perspective, and obtains a rendered image based on the geometric feature layer corresponding to the user input perspective and the second neural rendering model; The first electronic device sends the rendered image to the second electronic device.

3. The method according to claim 1, characterized in that The method further comprises: The first electronic device sends the second neural rendering model to a second electronic device; The second electronic device obtains a user input perspective, renders the three-dimensional model based on the user input perspective, obtains a geometric feature layer corresponding to the user input perspective, and obtains a rendered image based on the geometric feature layer corresponding to the user input perspective and the second neural rendering model.

4. The method according to any one of claims 1 to 3, characterized in that: The rendering of the three-dimensional model based on the preset viewing angle to obtain a geometric feature layer under the preset viewing angle includes: Rendering the three-dimensional model based on the preset viewing angle and the first preset field of view angle, and acquiring an image of the first preset field of view angle under the preset viewing angle; The acquiring an image at a preset viewing angle based on the first neural radiation field model includes: Acquire an image of the second preset field of view at the preset viewing angle based on the second preset field of view and the first neural radiation field model; Wherein, a difference between the first preset field of view angle and the second preset field of view angle is within a preset range.

5. The method according to claim 4, characterized in that The difference between the first preset field of view angle and the second preset field of view angle is within a preset range, including: the first preset field of view angle and the second preset field of view angle are equal.

6. The method according to any one of claims 1 to 5, characterized in that: The image data corresponding to the target scene includes images of each viewing angle corresponding to the target scene or a video stream corresponding to the target scene.

7. The method according to claim 6, characterized in that The step of acquiring the three-dimensional model corresponding to the target scene based on the image data corresponding to the target scene comprises: Based on the images of each perspective corresponding to the target scene, obtain the camera pose corresponding to the images of each perspective; Based on the camera pose corresponding to the images of each perspective and the second neural radiation field model, or based on the camera pose and depth map corresponding to the images of each perspective, obtaining the signed distance field information corresponding to the target scene; Acquire a grid corresponding to the target scene based on the signed distance field information; A three-dimensional model corresponding to the target scene is acquired based on the grid.

8. The method according to claim 7, characterized in that The acquiring the three-dimensional model corresponding to the target scene based on the grid includes: The grid is texture mapped based on the image of the preset perspective and the camera pose corresponding to the image of the preset perspective to obtain a textured three-dimensional model corresponding to the target scene.

9. The method according to any one of claims 1 to 8, characterized in that: The geometric feature layers include a normal layer, a position layer and a view direction layer; Alternatively, the geometric feature layer includes an albedo layer, a normal layer, a position layer, and a view direction layer.

10. The method according to claim 2 or 3, characterized in that: The first electronic device is a cloud server, and the second electronic device is a terminal electronic device.

11. A rendering system, characterized in that: include: A data processing unit, used to obtain image data corresponding to a target scene, and to obtain a three-dimensional model corresponding to the target scene based on the image data corresponding to the target scene; An offline rendering unit, used to render the three-dimensional model based on a preset viewing angle to obtain a geometric feature layer under the preset viewing angle; A training unit, configured to obtain a first neural radiation field model corresponding to the target scene based on the image data corresponding to the target scene; The training unit is used to obtain an image at a preset viewing angle based on the first neural radiation field model, and to train the first neural rendering model based on the geometric feature layer at the preset viewing angle and the image at the preset viewing angle to obtain a second neural rendering model, wherein the second neural rendering model is used to obtain a rendered image.

12. The rendering system according to claim 11, characterized in that: Also includes: An online real-time rendering unit is used to obtain a user input perspective, render the three-dimensional model based on the user input perspective, obtain a geometric feature layer corresponding to the user input perspective, and obtain a rendered image based on the geometric feature layer corresponding to the user input perspective and the second neural rendering model.

13. The rendering system according to claim 12, characterized in that: The online real-time rendering unit is used to send the rendered image to the second electronic device.

14. The rendering system according to claim 11, characterized in that: Also includes: The online real-time rendering unit is used to send the second neural rendering model to a second electronic device.

15. An electronic device, characterized in that: include: A processor, the processor being configured to: receiving a second neural rendering model sent by a cloud server; Obtaining a user input perspective, rendering a three-dimensional model based on the user input perspective, obtaining a geometric feature layer corresponding to the user input perspective, and obtaining a rendered image based on the geometric feature layer corresponding to the user input perspective and the second neural rendering model; The method for obtaining the second neural rendering model includes: Obtain image data corresponding to the target scene; Acquire a three-dimensional model and a first neural radiation field model corresponding to the target scene based on the image data corresponding to the target scene; Acquire an image at a preset viewing angle based on the first neural radiation field model, and render the three-dimensional model based on the preset viewing angle to acquire a geometric feature layer at the preset viewing angle; The first neural rendering model is trained based on the geometric feature layer at the preset viewing angle and the image at the preset viewing angle to obtain the second neural rendering model.

16. An electronic device, characterized in that: include a memory for storing instructions executed by one or more processors; A processor, configured to execute the rendering method according to any one of claims 1 to 10.

17. A computer-readable storage medium, characterized in that: The readable medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the rendering method according to any one of claims 1 to 10.

18. A computer program product, characterized in that The invention comprises instructions, which, when executed on an electronic device, enable the electronic device to execute the rendering method according to any one of claims 1 to 10.

Citation Information

Cited By

  • Nerve radiation field model rendering method and electronic equipment

    CN122473007A

  • Method and apparatus for generating three-dimensional character, and device, storage medium and program product

    WO2026174870A1