Method, apparatus and computer program product for rendering

By extracting the features of the 3D image and generating an adjustable 2D sub-image, the 3D scene is rendered, which solves the problem that the influence of camera posture is not considered in the existing technology, and achieves customization of the 3D rendering process and high-quality rendering effects. .

CN118799476APending Publication Date: 2024-10-18DELL PROD LP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310402584.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-14
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing 3D rendering methods fail to effectively consider the influence of camera posture, resulting in the inability to decompose object shapes and inconsistent scene synthesis, making it difficult to achieve high-quality 3D reconstruction and rendering.

Method used

By extracting features based on 3D images and camera poses, multiple adjustable 2D sub-images are generated, and these sub-images are used to render 3D scenes, achieving customization of the rendering process and scene manipulation, and improving visual quality.

Benefits of technology

It realizes the customization of the 3D rendering process and the improvement of scene decomposition and synthesis, enhancing the visual quality and rendering effect of 3D reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799476A_ABST
    Figure CN118799476A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a method and equipment for rendering and a computer program product. The method includes obtaining features of the three-dimensional map based on the three-dimensional map and a pose of a camera capturing the three-dimensional map. The method further includes generating a plurality of two-dimensional sub-graphs for the three-dimensional graph based on the features of the three-dimensional graph, where the plurality of two-dimensional sub-graphs are adjustable. The method further includes rendering a scene in the three-dimensional diagram based on the generated plurality of two-dimensional sub-diagrams. In this manner, customization of the rendering process can be achieved, and visual quality during scene decomposition and synthesis is improved, thereby enhancing three-dimensional reconstruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate generally to the field of computers, and more particularly to methods, devices, and computer program products for rendering. Background Art

[0002] The Metaverse is a new trend that will lead humanity into a new digital era where people can have a real and ultimate experience. The Metaverse is a virtual world built using digital technology that maps to or transcends the real world and can interact with the real world.

[0003] Accurate modeling is essential for building a realistic metaverse world, and the key is a powerful and efficient rendering process. Deep learning technology is increasingly being used in a variety of different fields, including three-dimensional (3D) processing. Summary of the invention

[0004] An embodiment of the present disclosure provides a scheme for rendering.

[0005] In a first aspect of the present disclosure, a method for rendering is provided, the method comprising obtaining features of a three-dimensional image based on the three-dimensional image and the pose of a camera that captures the three-dimensional image. The method further comprises generating a plurality of two-dimensional sub-images for the three-dimensional image based on the features of the three-dimensional image, wherein the plurality of two-dimensional sub-images are adjustable. The method further comprises rendering a scene in the three-dimensional image based on the generated plurality of two-dimensional sub-images.

[0006] In another aspect of the present disclosure, a device for rendering is provided, the device comprising a processor, and a memory, the memory being coupled to the processor and having instructions stored thereon, the instructions, when executed by the processor, causing the device to perform the following actions: obtaining features of the three-dimensional image based on the three-dimensional image and the pose of a camera that captures the three-dimensional image. The actions also include generating multiple two-dimensional sub-images for the three-dimensional image based on the features of the three-dimensional image, wherein the multiple two-dimensional sub-images are adjustable. The actions also include rendering a scene in the three-dimensional image based on the generated multiple two-dimensional sub-images.

[0007] In another aspect of the present disclosure, a computer program product is provided, which is tangibly stored on a non-transitory computer-readable storage medium and includes computer-executable instructions, which, when executed, cause a computer to perform a method or process according to an embodiment of the present disclosure.

[0008] Please note that the invention summary is provided to introduce a series of concepts in a simplified form, which will be further described in the detailed description below. The invention summary is not intended to identify key features or essential features of the present disclosure, nor is it intended to limit the scope of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other purposes, features and advantages of the present disclosure will become more clearly understood by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings, in which:

[0010] Figure 1 A schematic diagram illustrating an example environment in which methods and / or processes according to embodiments of the present disclosure may be implemented;

[0011] Figure 2 A flowchart of a method for rendering according to an embodiment of the present disclosure is illustrated;

[0012] Figure 3 is a diagram illustrating the architecture of a rendering model according to an embodiment of the present disclosure;

[0013] Figure 4 is a diagram illustrating the concept of peer view synthesis according to an embodiment of the present disclosure;

[0014] Figure 5 is a diagram illustrating contrasting semantic view symmetry loss according to an embodiment of the present disclosure;

[0015] Figure 6 is a diagram illustrating a rendering effect of a rendering process according to an embodiment of the present disclosure; and

[0016] Figure 7 Schematic block diagram of an example device that may be used to implement embodiments according to the present disclosure.

[0017] Throughout the drawings, same or similar reference numbers generally refer to same or similar elements. Specific embodiments

[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0019] In the description of the embodiments of the present disclosure, the term "including" and its variations should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects, unless explicitly indicated to be different.

[0020] As mentioned above, the Metaverse, as a new generation of Internet trend, has and is increasingly attracting public attention. The Metaverse is a virtual world built using digital technology that maps the real world or transcends the real world and can interact with the real world. In order to build a realistic Metaverse world, accurate three-dimensional (3D) modeling of scenes / objects is required.

[0021] Human-computer interaction is one of the important technologies for realizing immersive metaverse experience. Its key concept is to introduce interactive operations to allow users to customize the 3D modeling process. Furthermore, interactive operations enable users to customize the 3D rendering process. For such an editable 3D rendering process, the editing capability is associated with scene decomposition.

[0022] Given a photo of an object, its appearance depends on factors such as the object's color, environmental reflections (lighting), and shadows. For example, photos taken with light sources in different locations will show different shadow effects. In addition to shadows, factors that affect the rendering process include color and depth. The color described in this article can be a pure color (albeo), which indicates the color of the object itself after removing the influence of external light sources. In addition, the depth described in this article can also be called density, indicating the 3D structure of the object itself after removing the influence of color and lighting.

[0023] Some existing 3D rendering methods do not consider the impact of camera pose and cannot decompose object shapes, making it difficult for the network to learn. Other 3D rendering methods cannot explore 3D geometry for scene synthesis and lead to inconsistent scene changes.

[0024] In order to at least solve at least some of the above and other potential problems, an embodiment of the present disclosure proposes a scheme for rendering. The scheme includes obtaining features of a 3D image based on the 3D image and the pose of a camera that captures the 3D image. The scheme also includes generating multiple two-dimensional (2D) sub-images for the 3D image based on the features of the 3D image, and the multiple 2D sub-images are adjustable. The scheme also includes rendering the scene in the 3D image based on the generated multiple 2D sub-images. In this way, it is possible to customize the rendering process, manipulate the 3D scene, and improve the visual quality during scene decomposition and synthesis, thereby enhancing 3D reconstruction.

[0025] Reference below Figures 1 to 7 It should be understood that these exemplary embodiments are provided only to enable those skilled in the art to better understand and implement the embodiments of the present disclosure, and are not intended to limit the scope of the present disclosure in any way.

[0026] Figure 1A schematic diagram of an example environment 100 in which the method and / or process according to an embodiment of the present disclosure can be implemented is shown. In the example environment 100, a 3D image 111 and a pose 112 of a camera that captures the 3D image 111 can be input as input 110 to a rendering model according to an embodiment of the present disclosure at a computing device 120. Corresponding calculations (e.g., the rendering process described below) are performed by the rendering model at the computing device 120 to implement 3D scene manipulation according to an embodiment of the present disclosure. At the display device 130, the rendered scene is displayed.

[0027] According to an embodiment of the present disclosure, the input 110 may include a 3D image 111 captured by a camera in a certain position 112. The position 112 of the camera may include the position T(x) and the posture T(d) of the camera (hereinafter, also referred to as the camera position and the camera posture). Figure 1 The rendering process according to an embodiment of the present disclosure is illustrated by taking a single 3D image and the pose of a camera corresponding to the 3D image as an example of input 110. However, it should be noted that the present disclosure does not limit the dimensions, number, and type of images included in the input 110. In other words, the input 110 may include, for example, one or more images of greater or lesser dimensions, such as a 2D image and two 3D images. It should also be noted that the camera is exemplary, and the input 110 may also be captured by other different image sensors, which is not limited by the present disclosure.

[0028] The computing device 120 may be any device with computing capabilities. According to an embodiment of the present disclosure. After receiving the input 110 as described above, the computing device 120 performs corresponding calculations through the rendering model thereon to implement 3D scene manipulation according to an embodiment of the present disclosure. Examples of the computing device 120 may include a smart phone, a tablet computer, a personal computer, a laptop computer, a server computer, a multi-processor system, a wearable electronic device, a multimedia player, a personal digital assistant (PDA), a smart home device, a consumer electronic product, and the like. Examples of the computing device 120 may also include a distributed computing environment including any one of the above-mentioned systems or devices, and the like.

[0029] After the rendering process according to the embodiment of the present disclosure is completed, the scene in the 3D image 111 is rendered and transmitted to the display device 130 for display. The display device 130 may be any device having a display function. According to the embodiment of the present disclosure, the display device may be a display dedicated to display, such as a television or a projector, or may be an electronic device having a display unit, such as a smart phone or a smart watch. It should be noted that, as Figure 1The arrangement of the computing device 120 and the display device 130 shown in is exemplary, and the present disclosure is not limited to such an arrangement. In another example, the display device 130 may be within the computing device 120, and after the computing device 120 receives the input 110 and performs the corresponding calculations, the scene in the rendered 3D image that completes the rendering process according to the embodiment of the present disclosure is transmitted to the display device 130 located therein for display. In this way, a separate display device is no longer required. It should also be noted that each of the above examples is not intended to be restrictive, but is only exemplarily shown for the purpose of helping understanding, and the embodiments of the present disclosure are not limited to the examples shown above.

[0030] Combined with the above Figure 1 A schematic diagram of an example environment 100 is depicted in which methods and / or processes according to embodiments of the present disclosure may be implemented. Figure 2 1 and 12. The flowchart of the method 200 for rendering according to the embodiment of the present disclosure is described. As described above for the computing device 120, the method 200 for rendering according to the embodiment of the present disclosure can be executed at an edge device with computing capabilities, or at a cloud server, and the present disclosure does not limit this.

[0031] Figure 2 A flow chart of a method 200 for rendering according to an embodiment of the present disclosure is shown. In order to provide a more realistic and closer to reality 3D rendering and to customize the 3D rendering process, a method 200 for rendering according to an embodiment of the present disclosure is proposed.

[0032] At box 210, based on the 3D image 111 and the pose 112 of the camera that captures the 3D image 111, the features of the 3D image 111 are obtained. According to an embodiment of the present disclosure, the features of the 3D image 111 can be obtained by learning the 3D image 111 based on the pose 112 of the camera that captures the 3D image 111 (including the camera orientation and the camera posture), and performing feature extraction on it. By way of example, the features of the 3D image 111 can be 2D features. Here, the feature extraction process described at box 210 is performed by an extractor in a rendering model according to an embodiment of the present disclosure, and such an extractor will be described in detail below.

[0033] At box 220, based on the features of the 3D image 111, multiple 2D sub-images for the 3D image 111 are generated, and the multiple 2D sub-images are adjustable. According to an embodiment of the present disclosure, by performing processing such as mapping and conversion on the features of the 3D image 111 extracted at box 210, multiple adjustable 2D sub-images can be generated via multiple networks. Each of the multiple 2D sub-images generated corresponds to each of the multiple factors (shadow, color, and depth) that affect the rendering mentioned above. In addition, at least one 2D sub-image of the generated multiple 2D sub-images can be adjusted, for example, in response to user input, so that the rendering process according to an embodiment of the present disclosure can be customized. Here, the mapping process and the conversion process described in box 220 are performed by a mapper and a converter in a rendering model according to an embodiment of the present disclosure, and such a mapper and a converter will be described in detail below.

[0034] At block 230, based on the generated multiple 2D sub-images, the scene in the 3D image 111 is rendered. According to an embodiment of the present disclosure, based on the multiple 2D sub-images generated at block 220 and information from these 2D sub-images, the scene in the 3D image 111 is rendered. Here, the rendering process described at block 230 is performed by a renderer in a rendering model according to an embodiment of the present disclosure, and the operation of such a migrator will be described in detail below.

[0035] Figure 3 3 is a diagram illustrating the architecture of the rendering model 300 according to an embodiment of the present disclosure. Figure 3 As exemplarily shown in FIG. 3 , the rendering model 300 according to an embodiment of the present disclosure includes an extractor 310, a mapper 320, a converter 330, a plurality of networks 340, and a renderer 360. In addition, Figure 3 It also schematically illustrates the Figure 2 The plurality of subgraphs 350 generated at block 220 of .

[0036] According to an embodiment of the present disclosure, the extractor 310 can learn the 3D image based on the pose (such as pose 112) of the camera that captures the 3D image (such as 3D image 111), so that feature extraction is performed on the 3D image to obtain the features of the 3D image. In some embodiments, the extractor 310 may include an extractor based on a neural radiant field (NeRF). NeRF has received a lot of attention in the field of 3D reconstruction due to its advantages such as simplicity and efficiency. NeRF uses differentiable volume rendering technology to sample implicit 3D space for realistic scene reconstruction. Here, a NeRF-based extractor is described as an example of the extractor 310. However, it should be understood that the extractor 310 of the present disclosure is not limited to a NeRF-based extractor, and may also include other different extractors.

[0037] In some embodiments, the extractor 310 can capture features of the 3D image at a first perspective. The extractor 310 can obtain features of the 3D image at a second perspective based on the features of the 3D image at the first perspective, where the first perspective is different from the second perspective. By way of example, when observing the 3D image, the second perspective can be the next perspective of the first perspective. In this way, the feature extraction process according to the embodiment of the present disclosure can take into account the prior knowledge of images from multiple perspectives, and such 3D prior knowledge is conducive to high-quality 3D scene reconstruction. The following formula (1) exemplarily shows the feature extraction process according to the embodiment of the present disclosure:

[0038] h i =α i ⊙sin(w i h i-1 +b i ) (1)

[0039] where w i and b i are the learnable weights and biases of the i-th layer. α is the modulation variable. h i is a hidden feature, h 0 are the input coordinates.

[0040] According to an embodiment of the present disclosure, the mapper 320 may map features of the 3D image extracted by the extractor 310. In some embodiments, the features of the 3D image extracted may be 2D features, and the mapper 320 may include a 3D neural network. The mapper 320 maps the 2D features extracted from the 3D image into a 3D feature map for the 3D image. It should be understood that the description of the features of the 3D image extracted and the mapper 320 is exemplary, and the present disclosure is not limited thereto.

[0041] Further, for 2D to 3D mapping, the mapper 320 maps the 2D features extracted from the 3D graph by the extractor 310 into 3D shapes. Next, the mapper 320 converts them into cube vectors by performing further processing, thereby obtaining a 3D feature map for the 3D graph.

[0042] According to an embodiment of the present disclosure, the converter 330 converts the 3D feature map into a target 3D feature map corresponding to the target camera pose based on the 3D feature map for the 3D map and the camera pose corresponding to the 3D feature map. The converter 330 takes the 3D feature map for the 3D map mapped by the mapper 320 as input, and takes the camera pose corresponding to the 3D feature map as a condition. The converter 330 converts the camera pose into a six-degree camera matrix. Next, the converter 330 converts the 3D feature map for the 3D map into a target 3D feature map corresponding to the target camera pose. For sub-pixels, it uses bicubic interpolation to estimate features.

[0043] According to an embodiment of the present disclosure, the target 3D feature map corresponding to the target camera pose converted by the converter 330 is mapped into a 2D feature map. In some embodiments, based on the target 3D feature map corresponding to the target camera pose, it is converted into multiple 2D sub-maps 350 via multiple networks 340. By way of example, the multiple networks 340 may include a shadow network 341, a color network 342, and a depth network 343, and the multiple 2D sub-maps 350 may include a 2D shadow sub-map, a 2D color sub-map, and a 2D depth sub-map for the 3D map.

[0044] According to an embodiment of the present disclosure, the plurality of 2D sub-maps 350 generated by the plurality of networks 340 are adjustable. In some embodiments, at least one of the 2D shadow sub-map, the 2D color sub-map, and the 2D depth sub-map may be adjusted, for example, in response to a user input. By way of example, the user input may include an input for a lighting direction for adjusting the shadow effect of the rendered 3D image. The generated 2D shadow sub-map is adjusted so that the final rendered scene is changed accordingly.

[0045] According to an embodiment of the present disclosure, the renderer 360 renders the scene in the 3D image based on the shadow information, color information and depth information from the 2D shadow sub-image 351, the 2D color sub-image 352 and the 2D depth sub-image 353. In some embodiments, the renderer 360 may include a multilayer perceptron (MLP). For example, the renderer 360 may learn the red, green and blue RGB values ​​from the 2D color sub-image 352 for reconstruction.

[0046] Figure 4 FIG400 illustrates the concept of peer view synthesis according to an embodiment of the present disclosure. Figure 4 As shown on the left in FIG, given a chair 410, the camera can be moved around the chair 410 to capture all views, such as view 411, view 412, view 413, and view 414 captured at different viewing angles for the chair 410. Equivalently, Figure 4As shown on the right side of FIG. 4 , the position of the camera is fixed, and the chair 414 can be rotated 360 degrees to capture views 411', 412', 413', and 414' captured when the chair 410 is rotated to different angles. The following formula (2) exemplarily shows the concept of equal perspective synthesis according to an embodiment of the present disclosure:

[0047] H(T z (Z))=T z (H(Z)), and H -1 (T x (X)) = T x (H -1 (x)) (2)

[0048] Where H is the 3D to 2D mapping, T z It is a 3D conversion. x is a 2D transformation, and H -1 It is a 2D to 3D mapping.

[0049] In other words, when learning a new view of a 3D object, rotating the object and then capturing a new view is equivalent to rotating the camera around the object and then capturing a new view. In some embodiments, in order to consider the influence of the background, a binary mask can be used to select a region of interest for 3D reconstruction. The training process of the rendering model 300 based on peer-to-peer perspective synthesis according to an embodiment of the present disclosure will be introduced below.

[0050] According to an embodiment of the present disclosure, given sufficient training 3D images, the rendering model 300 is trained. The 3D image and the camera orientation x=(x, y, z) and camera pose d=(θ, φ) corresponding to the 3D image can be input to the extractor 310 (for example, but not limited to, a NeRF-based extractor) included in the rendering model 300, where θ and φ are the x rotation angle and y rotation angle, respectively. The extractor 310 can then output the corresponding spatial density σ and RGB color c=(r, g, b). The predicted color c(r) of the pixel is calculated by starting from the camera origin o, in the direction d, r=o+td (t is the depth of the ray), projecting a ray into the volume and accumulating the color based on the density along the ray. The extractor 310 can estimate the accumulated color by taking N point samples along the ray to perform volume rendering, refer to the following formula 3:

[0051]

[0052] in and are the rough estimated color and the fine estimated color, σ iis the volume density and r is the camera ray. spans the depth along (o, d) starting from the near camera plane and ending at the far camera plane. The depth t is selected from a uniform distribution using stratified sampling. Both the density σ and the color c are modeled using an MLP. The final rendering is trained in a self-supervised manner using the observed true per-pixel color. Instead of performing a single rendering pass, points are first sampled in a stratified manner. The density at these points is then used for importance sampling in the final pass. Therefore, the final model is learned by supervising the rendered pixel colors of both passes using the true colors.

[0053] According to an embodiment of the present disclosure, when training the extractor 310 included in the rendering model 300, the distance from the camera position to the center of the target object can be standardized. In this way, the distance between the camera and the object is a constant and can be ignored in the calculation. In addition, the camera pose can be converted from an observer-centered perspective to an object-centered perspective. For example, given a camera position T(x, d), its symmetric camera position can be T*(x, d)=T(x, 360-d).

[0054] According to an embodiment of the present disclosure, the initial raw extractor 330 learns a fixed perspective captured in the real world. In some embodiments, spherical harmonics (SH) can decompose the scene into individual components and link these individual components through SH coefficients. Refer to the following formula (4):

[0055]

[0056] In formula (4), The second-order SH lighting model is extended to include shadow generation for relighting of outdoor scenes, since shadows depend only on the spatial light distribution. is the accumulated color, which is generated in a similar way to the above formula (3) and will not be repeated here. 9×3 is the learnable SH coefficient for each image, b(.)∈R 9 is the SH basis. N(.) is the surface normal calculated based on the accumulated light density. Refer to the following formula (5):

[0057] In order to extract the normal N, it is necessary to distinguish the density of the points on the ray relative to the original x, y, and z components of the ray sample, using the weight T(t i )α(σ(x i )δ i ) accumulates these components over all N rays depth(coarse and lookup samples), and the resulting vector is normalized to the unit sphere. All terms in (4) are learnable, except for the SH basis b(.) and the normal extraction operator N(.), which are based on a fixed explicit model. Based on (4), the shadow network, color network, and depth network can be designed as three individual MLP modules that learn the corresponding scene information.

[0058] Figure 5 FIG. 5 is a diagram illustrating contrast semantic perspective symmetry loss according to an embodiment of the present disclosure. Figure 5 As shown in FIG. 5 , the first camera 501 is arranged at a first camera position (eg, T(x)), and the second camera 502 is arranged at a second camera position (eg, T(x)). * )), where the orientation of the first camera is opposite to that of the second camera, i.e., T(x * )=-T(x). In other words, the first camera 501 and the second camera 502 are arranged oppositely. The first camera 501 takes a first training 3D image 521 at a first camera position with a first camera pose (e.g., T(d)), and the second camera 502 takes a first training 3D image 521 at a second camera position with a second camera pose (e.g., T(d)). * ))The second training 3D image 522 taken.

[0059] According to an embodiment of the present disclosure, a first training 3D image 521 captured at a first camera position with a first camera pose and a second training 3D image 522 captured at a second camera position with a second camera pose may be input into a rendering model 300 according to an embodiment of the present disclosure. Through the extractor 310, the converter 330, the plurality of networks 340, the renderer 360, etc. included in the rendering model 300, the rendering model 300 may output a plurality of rendered 3D images, namely, a first rendered 3D image 571, a second rendered 3D image 572, a third rendered 3D image 573, and a fourth rendered 3D image 574.

[0060] Among the multiple rendered 3D images output by the rendering model 300, the first rendered 3D image 571 and the second rendered 3D image 572 correspond to the first camera posture and the third rendered 3D image 573 and the fourth rendered 3D image 574 correspond to the second camera posture, and the first rendered 3D image 571 and the fourth rendered 3D image 574 correspond to the first camera orientation and the second rendered 3D image 572 and the third rendered 3D image 573 correspond to the second camera orientation.

[0061] According to an embodiment of the present disclosure, a loss may be generated based on the first training 3D graph 521, the second training 3D graph 522, the first rendered 3D graph 571, the second rendered 3D graph 572, the third rendered 3D graph 573, and the fourth rendered 3D graph 574. In some embodiments, the generated loss includes a first sub-loss and a second sub-loss. The first sub-loss may be generated by comparing the first training 3D graph 521 with the first rendered 3D graph 571 and the fourth rendered 3D graph 574, and the second sub-loss may be generated by comparing the second training 3D graph 522 with the second rendered 3D graph 572 and the third rendered 3D graph 573.

[0062] According to an embodiment of the present disclosure, the rendering model 300 may be trained by minimizing the generated loss. For example, various modules such as the extractor 310 and the converter 330 included in the rendering model 300 may be trained. In some embodiments, the parameters of the rendering model 300 may be adjusted by minimizing the generated first sub-loss and second sub-loss. For example, the parameters of various modules such as the extractor 310 and the converter 330 included in the rendering model 300 are adjusted.

[0063] According to an embodiment of the present disclosure, the first sub-loss may be generated by comparing the first training 3D map 521 with the shadow information, color information, depth information, etc. of the first rendered 3D map 571 and the fourth rendered 3D map 571, and the second sub-loss is generated by comparing the second training 3D map 522 with the shadow information, color information, depth information, etc. of the second rendered 3D map 572 and the third rendered 3D map 573. The shadow information, color information, depth information, etc. of the rendered 3D map are obtained via the shadow network 341, the color network 342, the depth network, etc. included in the plurality of networks 340.

[0064] According to an embodiment of the present disclosure, the loss function for contrast semantic perspective symmetry loss is shown in the following formula (6):

[0065]

[0066] where MSE is the Euclidean distance, and the second term of (6) regularizes the shadows. The shadow network S absorbs all grayscale lighting effects that SH cannot explain. In some embodiments, in order to limit it to learning only shadows, the maximum value of the regularization strength λ is selected so that the peak signal-to-noise ratio PSNR of the reconstructed image is not reduced.

[0067] Figure 6 is a diagram illustrating the rendering effect of an editable 3D rendering process according to an embodiment of the present disclosure. Figure 6As shown in , 3D image 610 is a 3D image of the original scene. Through the editable 3D rendering process according to the embodiment of the present disclosure, 3D image 610 can be reconstructed to achieve customization. In some embodiments, multiple 2D sub-images for image 610 can be adjusted, for example, one or more of the 2D color sub-image, 2D shadow sub-image, and 2D depth sub-image for image 610 can be adjusted to obtain a low-exposure 3D image 620 and a high-exposure 3D image 630, as shown in FIG. Figure 6 It should be understood that Figure 6 The rendering effects shown in are only exemplary, and the present disclosure is not limited thereto. Through the editable 3D rendering process according to the embodiments of the present disclosure, various rendering effects can be achieved.

[0068] Figure 7 8 shows a schematic block diagram of an example device 700 that can be used to implement some embodiments of the present disclosure. Figure 7 As shown in , the device 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 702 or loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0069] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0070] The various processes and processing described above, such as method 200, may be performed by processing unit 701. For example, in some embodiments, method 200 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by CPU 701, one or more actions of method 200 described above may be performed.

[0071] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0072] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive lists) of computer readable storage medium include: portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), static random access memories (SRAM), portable compact disk read-only memories (CD-ROM), digital versatile disks (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or convex structures in grooves on which instructions are stored, and any suitable combination thereof. Computer readable storage medium used herein is not interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagated by waveguides or other transmission media (e.g., light pulses by optical fiber cables), or electrical signals transmitted by wires.

[0073] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0074] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0075] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0076] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0077] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0078] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0079] The embodiments of the present disclosure are described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for rendering, comprising: Obtaining features of the three-dimensional image based on the three-dimensional image and the pose of a camera that captures the three-dimensional image; Based on the features of the three-dimensional graph, generate a plurality of two-dimensional sub-graphs for the three-dimensional graph, wherein the plurality of two-dimensional sub-graphs are adjustable; as well as Based on the generated multiple two-dimensional sub-images, the scene in the three-dimensional image is rendered.

2. The method according to claim 1, wherein obtaining the feature of the three-dimensional map comprises: Obtaining features of the three-dimensional image at a first viewing angle; as well as Based on the features of the three-dimensional image at the first viewing angle, features of the three-dimensional image at a second viewing angle are obtained, and the first viewing angle is different from the second viewing angle.

3. The method according to claim 1, wherein: The plurality of two-dimensional sub-maps include a two-dimensional shadow sub-map, a two-dimensional color sub-map, and a two-dimensional depth sub-map for the three-dimensional map, and At least one of the two-dimensional shadow submap, the two-dimensional color submap, and the two-dimensional depth submap is adjusted based on user input, the user input comprising input for lighting direction.

4. The method of claim 3, wherein the feature for the three-dimensional graph is a two-dimensional feature for the three-dimensional graph, and wherein the method further comprises: By mapping the two-dimensional features for the three-dimensional graph into a three-dimensional feature graph for the three-dimensional graph; as well as Based on the three-dimensional feature map for the three-dimensional map and a camera pose corresponding to the three-dimensional feature map, converting the three-dimensional feature map into a target three-dimensional feature map corresponding to a target camera pose; as well as The target three-dimensional feature map corresponding to the target camera posture is mapped into a target two-dimensional feature map.

5. The method according to claim 4, further comprising: Based on the target two-dimensional feature map, obtaining the two-dimensional shadow sub-map, the two-dimensional color sub-map and the two-dimensional depth sub-map via a shadow network, a color network and a depth network; as well as The scene in the three-dimensional image is rendered based on the shadow information, color information and depth information obtained from the two-dimensional shadow sub-image, the two-dimensional color sub-image and the two-dimensional depth sub-image.

6. The method according to claim 4, wherein obtaining the two-dimensional features of the three-dimensional map is performed by an extractor, and converting the three-dimensional feature map into a target three-dimensional feature map corresponding to the target camera pose is performed by a converter, and generating the extractor and the converter comprises: Based on a first training 3D image captured at a first camera position with a first camera pose and a second training 3D image captured at a second camera position with a second camera pose, obtaining a first rendered 3D image, a second rendered 3D image, a third rendered 3D image, and a fourth rendered 3D image, wherein the first camera position is opposite to the second camera position, the first rendered 3D image and the second rendered 3D image correspond to the first camera pose and the third rendered 3D image and the fourth rendered 3D image correspond to the second camera pose, and the first rendered 3D image and the fourth rendered 3D image correspond to the first camera position and the second rendered 3D image and the third rendered 3D image correspond to the second camera position; generating a loss based on the first training 3D graph, the second training 3D graph, the first rendered 3D graph, the second rendered 3D graph, the third rendered 3D graph, and the fourth rendered 3D graph; as well as Based on the loss, the extractor and the transformer are trained.

7. The method of claim 6, wherein the loss comprises a first sub-loss and a second sub-loss, and training the extractor and the transformer comprises: Generate a first sub-loss by comparing the first training 3D image with the first rendered 3D image and the fourth rendered 3D image; generating a second sub-loss by comparing the second training 3D image with the second rendered 3D image and the third rendered 3D image; as well as A set of parameters of the extractor and the converter are adjusted by minimizing the first sub-loss and the second sub-loss.

8. The method according to claim 7, wherein: The first sub-loss is generated by comparing the first training 3D image with the shading information, color information, and depth information of the first rendered 3D image and the fourth rendered 3D image; as well as The second sub-loss is generated by comparing the second training 3D image with shading information, color information, and depth information of the second rendered 3D image and the third rendered 3D image.

9. An electronic device, comprising: processor; as well as A memory is coupled to the processor and stores instructions that, when executed by the processor, cause the device to perform the following actions: Obtaining features of the three-dimensional image based on the three-dimensional image and the pose of a camera that captures the three-dimensional image; Based on the features of the three-dimensional graph, generate a plurality of two-dimensional sub-graphs for the three-dimensional graph, wherein the plurality of two-dimensional sub-graphs are adjustable; as well as Based on the generated multiple two-dimensional sub-images, the scene in the three-dimensional image is rendered.

10. The apparatus of claim 9, wherein obtaining the characteristic of the three-dimensional map comprises: Obtaining features of the three-dimensional image at a first viewing angle; as well as Based on the features of the three-dimensional image at the first viewing angle, features of the three-dimensional image at a second viewing angle are obtained, and the first viewing angle is different from the second viewing angle.

11. The apparatus of claim 9, wherein: The plurality of two-dimensional sub-maps include a two-dimensional shadow sub-map, a two-dimensional color sub-map, and a two-dimensional depth sub-map for the three-dimensional map, and At least one of the two-dimensional shadow submap, the two-dimensional color submap, and the two-dimensional depth submap is adjusted based on user input, the user input comprising input for lighting direction.

12. The apparatus of claim 11, wherein the feature for the three-dimensional graph is a two-dimensional feature for the three-dimensional graph, and wherein the actions further comprise: By mapping the two-dimensional features for the three-dimensional graph into a three-dimensional feature graph for the three-dimensional graph; as well as Based on the three-dimensional feature map for the three-dimensional map and a camera pose corresponding to the three-dimensional feature map, converting the three-dimensional feature map into a target three-dimensional feature map corresponding to a target camera pose; as well as The target three-dimensional feature map corresponding to the target camera posture is mapped into a target two-dimensional feature map.

13. The apparatus of claim 12, wherein the actions further comprise: Based on the target two-dimensional feature map, obtaining the two-dimensional shadow sub-map, the two-dimensional color sub-map and the two-dimensional depth sub-map via a shadow network, a color network and a depth network; as well as The scene in the three-dimensional image is rendered based on the shadow information, color information and depth information obtained from the two-dimensional shadow sub-image, the two-dimensional color sub-image and the two-dimensional depth sub-image.

14. The apparatus of claim 12, wherein obtaining the two-dimensional features of the three-dimensional map is performed by an extractor, and converting the three-dimensional feature map into a target three-dimensional feature map corresponding to the target camera pose is performed by a converter, and generating the extractor and the converter comprises: Based on a first training 3D image captured at a first camera position with a first camera pose and a second training 3D image captured at a second camera position with a second camera pose, obtaining a first rendered 3D image, a second rendered 3D image, a third rendered 3D image, and a fourth rendered 3D image, wherein the first camera position is opposite to the second camera position, the first rendered 3D image and the second rendered 3D image correspond to the first camera pose and the third rendered 3D image and the fourth rendered 3D image correspond to the second camera pose, and the first rendered 3D image and the fourth rendered 3D image correspond to the first camera position and the second rendered 3D image and the third rendered 3D image correspond to the second camera position; generating a loss based on the first training 3D graph, the second training 3D graph, the first rendered 3D graph, the second rendered 3D graph, the third rendered 3D graph, and the fourth rendered 3D graph; as well as Based on the loss, the extractor and the transformer are trained.

15. The apparatus of claim 14, wherein the loss comprises a first sub-loss and a second sub-loss, and training the extractor and the transformer comprises: Generate a first sub-loss by comparing the first training 3D image with the first rendered 3D image and the fourth rendered 3D image; generating a second sub-loss by comparing the second training 3D image with the second rendered 3D image and the third rendered 3D image; as well as A set of parameters of the extractor and the converter are adjusted by minimizing the first sub-loss and the second sub-loss.

16. The apparatus of claim 15, wherein: The first sub-loss is generated by comparing the first training 3D image with the shading information, color information, and depth information of the first rendered 3D image and the fourth rendered 3D image; as well as The second sub-loss is generated by comparing the second training 3D image with shading information, color information, and depth information of the second rendered 3D image and the third rendered 3D image.

17. A computer program product tangibly stored on a non-transitory computer readable storage medium and comprising computer executable instructions that, when executed, cause a computer to: Obtaining features of the three-dimensional image based on the three-dimensional image and the pose of a camera that captures the three-dimensional image; Based on the features of the three-dimensional graph, generate a plurality of two-dimensional sub-graphs for the three-dimensional graph, wherein the plurality of two-dimensional sub-graphs are adjustable; as well as Based on the generated multiple two-dimensional sub-images, the scene in the three-dimensional image is rendered.

18. The computer program product of claim 17, wherein the feature for the three-dimensional graph is a two-dimensional feature for the three-dimensional graph, and the computer executable instructions, when executed, further cause a computer to: By mapping the two-dimensional features for the three-dimensional map into a three-dimensional feature map for the three-dimensional map; and Based on the 3D feature map for the 3D map and a camera pose corresponding to the 3D feature map, converting the 3D feature map into a target 3D feature map corresponding to a target camera pose; and The target three-dimensional feature map corresponding to the target camera posture is mapped into a target two-dimensional feature map.

19. The computer program product of claim 18, wherein obtaining the two-dimensional features of the three-dimensional map is performed by an extractor, and converting the three-dimensional feature map to a target three-dimensional feature map corresponding to the target camera pose is performed by a converter, generating the extractor and the converter comprising: Based on a first training 3D image captured at a first camera position with a first camera pose and a second training 3D image captured at a second camera position with a second camera pose, obtaining a first rendered 3D image, a second rendered 3D image, a third rendered 3D image, and a fourth rendered 3D image, wherein the first camera position is opposite to the second camera position, the first rendered 3D image and the second rendered 3D image correspond to the first camera pose and the third rendered 3D image and the fourth rendered 3D image correspond to the second camera pose, and the first rendered 3D image and the fourth rendered 3D image correspond to the first camera position and the second rendered 3D image and the third rendered 3D image correspond to the second camera position; generating a loss based on the first training 3D graph, the second training 3D graph, the first rendered 3D graph, the second rendered 3D graph, the third rendered 3D graph, and the fourth rendered 3D graph; as well as Based on the loss, the extractor and the transformer are trained.

20. The computer program product of claim 19, wherein the loss comprises a first sub-loss and a second sub-loss, and training the extractor and the transformer comprises: Generate a first sub-loss by comparing the first training 3D image with the first rendered 3D image and the fourth rendered 3D image; generating a second sub-loss by comparing the second training 3D image with the second rendered 3D image and the third rendered 3D image; as well as A set of parameters of the extractor and the converter are adjusted by minimizing the first sub-loss and the second sub-loss.