CN116740245A - Training method and rendering method of image rendering model - Google Patents
Training method and rendering method of image rendering model Download PDFInfo
- Publication number
- CN116740245A CN116740245A CN202310601759.4A CN202310601759A CN116740245A CN 116740245 A CN116740245 A CN 116740245A CN 202310601759 A CN202310601759 A CN 202310601759A CN 116740245 A CN116740245 A CN 116740245A
- Authority
- CN
- China
- Prior art keywords
- rendering
- image
- trained
- initial
- parameters
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0641—Shopping interfaces
- G06Q30/0643—Graphical representation of items or shoppers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/04—Texture mapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/10—Geometric effects
- G06T15/20—Perspective computation
- G06T15/205—Image-based rendering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/50—Lighting effects
- G06T15/506—Illumination models
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/20—Finite element generation, e.g. wire-frame surface description, tesselation
- G06T17/205—Re-meshing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/194—Segmentation; Edge detection involving foreground-background segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/77—Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
- G06V10/774—Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- Business, Economics & Management (AREA)
- Finance (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computing Systems (AREA)
- Accounting & Taxation (AREA)
- Geometry (AREA)
- Multimedia (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Evolutionary Computation (AREA)
- Databases & Information Systems (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域Technical field
本申请涉及计算机技术领域,具体涉及一种图像渲染模型的训练方法、装置、电子设备及计算机存储介质,本申请还涉及一种渲染方法、装置、电子设备及计算机存储介质。This application relates to the field of computer technology, specifically to a training method, device, electronic equipment and computer storage medium for an image rendering model. This application also relates to a rendering method, device, electronic equipment and computer storage medium.
背景技术Background technique
三维重建是与渲染相反的过程,渲染是给定物体或场景的三维信息,模拟相机拍摄二维图像。而三维重建是对三维物体建立适合计算机表示和处理的数学模型,具体是根据单视图或者多视图的图像重建三维信息,换言之,输入二维图像,推理三维结构。例如,线上服务平台显示的对象的三维建模信息,是根据实际对象的二维图像重建三维信息获得的对象三维几何图。对对象进行三维重建的过程包括物体分割、相机位姿估计、网格重建和纹理恢复等环节。3D reconstruction is the opposite process to rendering, which is the 3D information of a given object or scene, simulating a camera taking a 2D image. Three-dimensional reconstruction is to establish a mathematical model of a three-dimensional object that is suitable for computer representation and processing. Specifically, it is to reconstruct three-dimensional information based on single-view or multi-view images. In other words, input a two-dimensional image and infer the three-dimensional structure. For example, the three-dimensional modeling information of an object displayed on the online service platform is a three-dimensional geometric diagram of the object obtained by reconstructing the three-dimensional information from the two-dimensional image of the actual object. The process of 3D reconstruction of objects includes object segmentation, camera pose estimation, mesh reconstruction and texture recovery.
实际三维建模过程中获得的渲染图像中的对象还原度偏低,因此,如何提升三维建模获得的渲染图像中的对象还原度是需要解决的问题。The object restoration degree in the rendered image obtained during the actual three-dimensional modeling process is low. Therefore, how to improve the object restoration degree in the rendered image obtained by three-dimensional modeling is a problem that needs to be solved.
发明内容Contents of the invention
本申请实施例提供一种图像渲染模型的训练方法,以提升图像渲染模型获得的渲染图像中的对象还原度。本申请实施例同时涉及一种图像渲染模型的训练装置、电子设备及计算机存储介质。本申请实施例同时涉及一种渲染方法、装置及电子设备。Embodiments of the present application provide a training method for an image rendering model to improve the object restoration degree in the rendered image obtained by the image rendering model. Embodiments of the present application also relate to an image rendering model training device, electronic equipment, and computer storage media. The embodiments of the present application also relate to a rendering method, device and electronic equipment.
本申请实施例提供一种图像渲染模型的训练方法,包括:获得目标对象的初始图像和初始分割图像;利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像;基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练;其中,所述对所述待训练渲染模型进行训练,包括:对所述待训练渲染模型的渲染参数进行调整。Embodiments of the present application provide a training method for an image rendering model, which includes: obtaining an initial image and an initial segmented image of a target object; using a rendering model to be trained to render the initial image and the initial segmented image to obtain the initial The rendered image and the rendered segmented image of the image; based on the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image, the rendering model to be trained is trained; wherein, Training the rendering model to be trained includes: adjusting rendering parameters of the rendering model to be trained.
可选的,所述对所述待训练渲染模型的渲染参数进行调整,包括:对所述待训练渲染模型的纹理参数进行调整。Optionally, adjusting the rendering parameters of the rendering model to be trained includes: adjusting the texture parameters of the rendering model to be trained.
可选的,还包括:将调整后的纹理参数更新至所述待训练渲染模型,获得第一渲染模型,继续执行所述利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像的步骤。Optionally, it also includes: updating the adjusted texture parameters to the rendering model to be trained, obtaining a first rendering model, and continuing to render the initial image and the initial segmented image using the rendering model to be trained. , the steps of obtaining the rendered image of the initial image and rendering the segmented image.
可选的,所述对所述待训练渲染模型的渲染参数进行调整,包括:对所述待训练渲染模型的纹理参数和位姿参数进行联合调整。Optionally, adjusting the rendering parameters of the rendering model to be trained includes: jointly adjusting the texture parameters and pose parameters of the rendering model to be trained.
可选的,还包括:将调整后的纹理参数和位姿参数更新至所述待训练渲染模型,获得第二渲染模型,继续执行所述利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像的步骤。Optionally, the method further includes: updating the adjusted texture parameters and pose parameters to the rendering model to be trained, obtaining a second rendering model, and continuing to perform the rendering process of using the rendering model to be trained to compare the initial image and the initial image. The steps of segmenting the image for rendering, obtaining a rendered image of the initial image and rendering the segmented image.
可选的,所述对所述待训练渲染模型的渲染参数进行调整,包括:对所述待训练渲染模型的纹理参数、位姿参数和网格参数进行联合调整。Optionally, adjusting the rendering parameters of the rendering model to be trained includes: jointly adjusting the texture parameters, pose parameters and grid parameters of the rendering model to be trained.
可选的,还包括:将调整后的纹理参数、位姿参数和网格参数更新至所述待训练渲染模型,获得第三渲染模型,继续执行所述利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像的步骤。Optionally, it also includes: updating the adjusted texture parameters, pose parameters and grid parameters to the rendering model to be trained, obtaining a third rendering model, and continuing to perform the rendering process of using the rendering model to be trained to the initial image. Rendering with the initial segmented image, obtaining a rendered image of the initial image and rendering the segmented image.
可选的,所述对所述待训练渲染模型的渲染参数进行调整,包括:对所述待训练渲染模型的纹理参数和光照参数进行联合调整。Optionally, adjusting the rendering parameters of the rendering model to be trained includes: jointly adjusting the texture parameters and lighting parameters of the rendering model to be trained.
可选的,还包括:将调整后的纹理参数和光照参数更新至所述待训练渲染模型,获得第四渲染模型,继续执行所述利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像的步骤。Optionally, it also includes: updating the adjusted texture parameters and lighting parameters to the rendering model to be trained, obtaining a fourth rendering model, and continuing to perform the process of using the rendering model to be trained to perform the segmentation of the initial image and the initial segmentation The steps of rendering the image, obtaining a rendered image of the initial image and rendering the segmented image.
可选的,还包括:获得所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的纹理数据差异;所述基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练,包括:基于所述纹理数据差异,确定所述待训练渲染模型的损失值;基于所述待训练渲染模型的损失值,对所述待训练渲染模型的纹理参数进行调整。Optionally, it also includes: obtaining the texture data difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image; , and the difference between the initial image and the initial segmented image, training the rendering model to be trained, including: based on the texture data difference, determining the loss value of the rendering model to be trained; based on the The loss value of the rendering model to be trained is used to adjust the texture parameters of the rendering model to be trained.
可选的,还包括:获得所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的纹理数据差异和位姿数据差异;所述基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练,包括:基于所述纹理数据差异和所述位姿数据差异,确定所述待训练渲染模型的损失值;基于所述待训练渲染模型的损失值,对所述待训练渲染模型的纹理参数和位姿参数进行联合调整。Optionally, it also includes: obtaining the texture data difference and pose data difference between the rendered image and the rendered segmented image, and the initial image and the initial segmented image; said based on the rendered image and The difference between the rendered segmented image and the initial image and the initial segmented image is used to train the rendering model to be trained, including: based on the texture data difference and the pose data difference, determining the Describe the loss value of the rendering model to be trained; based on the loss value of the rendering model to be trained, jointly adjust the texture parameters and pose parameters of the rendering model to be trained.
可选的,还包括:获得所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的纹理数据差异和位姿数据差异、以及所述渲染图像和所述初始图像之间的网格数据差异;所述基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练,包括:基于所述纹理数据差异、位姿数据差异、以及网格数据差异,确定所述待训练渲染模型的损失值;基于所述待训练渲染模型的损失值,对所述待训练渲染模型的纹理参数、位姿参数和网格参数进行联合调整。Optionally, it also includes: obtaining the rendered image and the rendered segmented image, the texture data difference and the pose data difference between the rendered image and the initial segmented image, and the rendered image and the The grid data difference between the initial images; the said rendering model to be trained is trained based on the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image, The method includes: determining the loss value of the rendering model to be trained based on the texture data difference, pose data difference, and grid data difference; based on the loss value of the rendering model to be trained, determining the loss value of the rendering model to be trained. Texture parameters, pose parameters and mesh parameters are jointly adjusted.
可选的,还包括:获得所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的纹理数据差异、以及所述渲染图像与所述初始图像之间的光照数据差异;所述基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练,包括:基于所述纹理数据差异和所述光照数据差异,确定所述待训练渲染模型的损失值;基于所述待训练渲染模型的损失值,对所述待训练渲染模型的纹理参数和光照参数进行联合调整。Optionally, it also includes: obtaining the texture data difference between the rendered image and the rendered segmented image, and the initial image and the initial segmented image, and the texture data difference between the rendered image and the initial image. Illumination data difference; training the rendering model to be trained based on the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image includes: based on the texture The data difference and the lighting data difference are used to determine the loss value of the rendering model to be trained; based on the loss value of the rendering model to be trained, the texture parameters and lighting parameters of the rendering model to be trained are jointly adjusted.
可选的,所述确定所述待训练渲染模型的损失值,包括:确定用于表征所述待训练渲染模型的渲染结果与所述目标对象之间针对对象几何体差异度的第一损失值。Optionally, determining the loss value of the rendering model to be trained includes: determining a first loss value used to characterize the difference in object geometry between the rendering result of the rendering model to be trained and the target object.
可选的,所述基于所述纹理数据差异和所述光照数据差异,确定所述待训练渲染模型的损失值,包括:基于所述纹理数据差异,确定用于表征所述待训练渲染模型的渲染结果与所述目标对象之间针对对象几何体差异度的第一损失值;基于所述光照数据差异,确定用于表征所述待训练渲染模型的渲染结果与所述目标对象之间针对光照数据差异度的第二损失值。Optionally, determining a loss value of the rendering model to be trained based on the texture data difference and the lighting data difference includes: determining a loss value used to characterize the rendering model to be trained based on the texture data difference. The first loss value for the object geometry difference between the rendering result and the target object; based on the lighting data difference, determine the lighting data between the rendering result used to characterize the rendering model to be trained and the target object The second loss value of the difference.
可选的,还包括:获取所述目标对象的网格数据;所述目标对象的网格数据通过如下方式获取:获取所述目标对象的多视角初始图像,以及所述多视角初始图像分别对应的图像位姿数据;根据所述多视角初始图像、所述图像位姿数据以及所述初始分割图像,构建所述目标对象的网格数据。Optionally, it also includes: obtaining the grid data of the target object; the grid data of the target object is obtained in the following manner: obtaining a multi-view initial image of the target object, and the multi-view initial images respectively correspond to The image pose data; construct the grid data of the target object according to the multi-view initial image, the image pose data and the initial segmented image.
可选的,还包括:获取所述待训练渲染模型获得的渲染结果的光照数据;所述获取所述待训练渲染模型获得的渲染结果的光照数据,包括:初始化设置目标对象的可微纹理数据,可微位姿数据,可微网格数据;将所述目标对象的可微纹理数据,可微位姿数据,可微网格数据,输入光照模型中,获得所述渲染结果的光照数据。Optionally, it also includes: obtaining the lighting data of the rendering result obtained by the rendering model to be trained; the obtaining the lighting data of the rendering result obtained by the rendering model to be trained includes: initializing and setting the differentiable texture data of the target object. , differentiable pose data, differentiable mesh data; input the differentiable texture data, differentiable pose data, and differentiable mesh data of the target object into the lighting model to obtain the lighting data of the rendering result.
本申请实施例还提供一种渲染方法,包括:将目标对象的多视角初始图像提供给目标渲染模型,获得所述目标对象的初始分割图像,纹理数据,所述多视角初始图像分别对应的位姿数据以及所述目标对象的光照数据;根据所述多视角初始图像,所述目标对象的初始分割图像,纹理数据,以及所述多视角初始图像分别对应的位姿数据,确定所述目标对象的渲染网格;根据所述纹理数据,对所述目标对象的渲染网格执行纹理贴图操作;根据所述光照数据,对完成纹理贴图的渲染网格进行光照处理,获得渲染图像。Embodiments of the present application also provide a rendering method, which includes: providing a multi-view initial image of a target object to a target rendering model, obtaining an initial segmented image of the target object, texture data, and corresponding bits of the multi-view initial image. pose data and illumination data of the target object; determine the target object according to the multi-view initial image, the initial segmentation image of the target object, texture data, and the pose data corresponding to the multi-view initial image. the rendering grid; according to the texture data, perform a texture mapping operation on the rendering grid of the target object; according to the lighting data, perform lighting processing on the rendering grid that has completed texture mapping to obtain a rendering image.
本申请实施例还提供一种电子设备,所述电子设备包括处理器和存储器;所述存储器中存储有计算机程序,所述处理器运行所述计算机程序后,执行上述方法。An embodiment of the present application also provides an electronic device. The electronic device includes a processor and a memory. A computer program is stored in the memory. After the processor runs the computer program, it executes the above method.
本申请实施例还提供一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器运行后,执行上述方法。Embodiments of the present application also provide a computer storage medium. The computer storage medium stores a computer program. After the computer program is run by a processor, the above method is executed.
与现有技术相比,本申请实施例具有如下优点:Compared with the existing technology, the embodiments of the present application have the following advantages:
本申请实施例提供一种图像渲染模型的训练方法,包括:获得目标对象的初始图像和初始分割图像;利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像;基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异对所述待训练渲染模型进行训练;其中,所述对所述待训练渲染模型进行训练,包括:对所述待训练渲染模型的渲染参数进行调整。Embodiments of the present application provide a training method for an image rendering model, which includes: obtaining an initial image and an initial segmented image of a target object; using a rendering model to be trained to render the initial image and the initial segmented image to obtain the initial The rendering image and the rendered segmented image of the image; the rendering model to be trained is trained based on the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image; wherein, the Training the rendering model to be trained includes: adjusting rendering parameters of the rendering model to be trained.
上述方法,根据渲染图像以及渲染分割图像,与初始图像以及初始分割图像之间的差异,对所述待训练渲染模型进行训练;其中,所述对所述待训练渲染模型进行训练,包括:对所述待训练渲染模型的渲染参数进行调整。该方法通过对待训练渲染模型的渲染参数进行调整,使得调整后的渲染模型获得的渲染图像以及渲染分割图像,与初始图像以及初始分割图像之间的差异得到降低,提升了渲染图像中的对象还原度。In the above method, the rendering model to be trained is trained according to the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image; wherein the training of the rendering model to be trained includes: The rendering parameters of the rendering model to be trained are adjusted. This method adjusts the rendering parameters of the rendering model to be trained, so that the difference between the rendered image and the rendered segmented image obtained by the adjusted rendering model and the initial image and the initial segmented image is reduced, and the object restoration in the rendered image is improved. Spend.
附图说明Description of drawings
图1为本申请实施例提供的图像渲染模型的训练方法的参数优化策略示意图。Figure 1 is a schematic diagram of the parameter optimization strategy of the training method of the image rendering model provided by the embodiment of the present application.
图2为本申请实施例提供的图像渲染模型的训练方法的场景示意图。Figure 2 is a schematic scene diagram of the training method of the image rendering model provided by the embodiment of the present application.
图3为本申请第一实施例提供的一种图像渲染模型的训练方法的流程图。FIG. 3 is a flow chart of an image rendering model training method provided by the first embodiment of the present application.
图4为本申请第二实施例提供的一种渲染方法的流程图。Figure 4 is a flow chart of a rendering method provided by the second embodiment of the present application.
图5为本申请第三实施例提供的一种图像渲染模型的训练装置的示意图。FIG. 5 is a schematic diagram of a training device for an image rendering model provided by the third embodiment of the present application.
图6为本申请第四实施例提供的一种渲染装置的示意图。Figure 6 is a schematic diagram of a rendering device provided by the fourth embodiment of the present application.
图7为本申请第五实施例中提供的一种电子设备的示意图。FIG. 7 is a schematic diagram of an electronic device provided in the fifth embodiment of the present application.
具体实施方式Detailed ways
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be implemented in many other ways different from those described here. Those skilled in the art can make similar extensions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.
本申请中使用的术语是仅仅出于对特定实施例描述的目的,而非旨在限制本申请。在本申请中和所附权利要求书中所使用的描述方式例如:“一种”、“第一”、和“第二”等,并非对数量上的限定或先后顺序上的限定,而是用来将同一类型的信息彼此区分。The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The descriptions used in this application and the appended claims, such as "a", "first", and "second", etc., are not intended to limit the quantity or sequence, but rather Used to distinguish information of the same type from each other.
首先,对本申请涉及的概念进行说明:First, let’s explain the concepts involved in this application:
可微渲染:传统图形学模型的渲染过程是不可微的,相较于传统图形学模型,可微渲染构建了一条渲染管线使得渲染过程中的各个环节可以被优化。Differentiable rendering: The rendering process of traditional graphics models is non-differentiable. Compared with traditional graphics models, differentiable rendering constructs a rendering pipeline so that all aspects of the rendering process can be optimized.
纹理贴图:将一个图像(纹理)映射到3D(three-dimensional,三维)渲染物体的表面的过程称为纹理贴图。纹理贴图给物体提供了丰富的细节,模拟出了物体复杂的外观。Texture mapping: The process of mapping an image (texture) to the surface of a 3D (three-dimensional, three-dimensional) rendering object is called texture mapping. Texture maps provide rich details to objects and simulate the complex appearance of objects.
纹理重建:通过图像对几何体进行贴图,在三维模型重建过程中恢复网格的纹理贴图数据,纹理映射是纹理重建的一种方法。Texture reconstruction: Map the geometry through images, and restore the texture map data of the mesh during the three-dimensional model reconstruction process. Texture mapping is a method of texture reconstruction.
渲染参数:渲染参数是指在整个渲染链路中涉及的相关数据,通过这些参数控制最终的渲染结果。这里的参数包括模型属性(如网格顶点、面片、UV坐标等),纹理属性(如颜色贴图、法线贴图等),光源配置(光源类型,光照贴图等),相机配置(相机位置,画面大小等),材质渲染参数等。Rendering parameters: Rendering parameters refer to the relevant data involved in the entire rendering link. These parameters control the final rendering result. The parameters here include model attributes (such as mesh vertices, patches, UV coordinates, etc.), texture attributes (such as color maps, normal maps, etc.), light source configuration (light source type, light map, etc.), camera configuration (camera position, screen size, etc.), material rendering parameters, etc.
网格优化:网格为由三角形面片构成的几何体,网格优化为对几何体的三角形的每个顶点进行微调,从而提升网格顶点的精度。Mesh optimization: The mesh is a geometry composed of triangular patches. Mesh optimization involves fine-tuning each vertex of the triangle of the geometry to improve the accuracy of the mesh vertices.
本申请实施例提供一种图像渲染模型的训练方法。本申请实施例还提供一种图像渲染模型的训练装置、电子设备及计算机存储介质。本申请实施例还提供一种渲染方法、装置、电子设备及计算机存储介质。在下面的实施例中逐一进行详细说明。An embodiment of the present application provides a training method for an image rendering model. Embodiments of the present application also provide an image rendering model training device, electronic equipment, and computer storage media. Embodiments of the present application also provide a rendering method, device, electronic equipment and computer storage medium. Detailed descriptions will be given one by one in the following embodiments.
为了便于理解本申请实施例提供的方法及装置,在介绍本申请实施例之前,先对本申请实施例的背景进行介绍。In order to facilitate understanding of the methods and devices provided by the embodiments of the present application, the background of the embodiments of the present application is first introduced before introducing the embodiments of the present application.
三维重建是与渲染相反的过程,渲染是给定物体或场景的三维信息,模拟相机拍摄二维图像。而三维重建是对三维物体建立适合计算机表示和处理的数学模型,具体是根据单视图或者多视图的图像重建三维信息,换言之,输入二维图像,推理三维结构。例如,线上服务平台显示的对象的三维建模信息,是根据实际对象的二维图像重建三维信息获得的对象三维几何图。对对象进行三维重建的过程包括物体分割、相机位姿估计、网格重建和纹理恢复等环节。3D reconstruction is the opposite process to rendering, which is the 3D information of a given object or scene, simulating a camera taking a 2D image. Three-dimensional reconstruction is to establish a mathematical model of a three-dimensional object that is suitable for computer representation and processing. Specifically, it is to reconstruct three-dimensional information based on single-view or multi-view images. In other words, input a two-dimensional image and infer the three-dimensional structure. For example, the three-dimensional modeling information of an object displayed on the online service platform is a three-dimensional geometric diagram of the object obtained by reconstructing the three-dimensional information from the two-dimensional image of the actual object. The process of 3D reconstruction of objects includes object segmentation, camera pose estimation, mesh reconstruction and texture recovery.
实际三维建模过程中获得的渲染图像中的对象还原度偏低,因此,如何提升三维建模获得的渲染图像中的对象还原度是需要解决的问题。The object restoration degree in the rendered image obtained during the actual three-dimensional modeling process is low. Therefore, how to improve the object restoration degree in the rendered image obtained by three-dimensional modeling is a problem that needs to be solved.
经过上述内容的背景介绍,本领域技术人员可以了解现有技术存在的问题,接下来对本申请的图像渲染模型的训练方法的应用场景进行详细说明。本申请提供的图像渲染模型的训练方法可以应用于各种线上服务平台为目标对象进行三维重建,获得目标对象的三维重建几何体的应用场景。例如,在线上购物平台中,为了增加用户对商品的全方位信息的了解,采用本申请提供的图像渲染模型的训练方法构建目标渲染模型。目标渲染模型根据商品的多个视角的二维图像,推理获得商品的三维几何体,以此,用户可以在线上购物平台的店铺中直观感受商品的立体视觉效果图,增加对商品的认知和了解,提升用户对商品的订购率。Through the background introduction of the above content, those skilled in the art can understand the problems existing in the existing technology. Next, the application scenarios of the image rendering model training method of the present application will be described in detail. The training method of the image rendering model provided by this application can be applied to various online service platforms to perform three-dimensional reconstruction of the target object and obtain the application scenario of the three-dimensional reconstructed geometry of the target object. For example, in an online shopping platform, in order to increase users' understanding of all-round information about products, the image rendering model training method provided by this application is used to build a target rendering model. The target rendering model infers and obtains the three-dimensional geometry of the product based on two-dimensional images from multiple perspectives of the product. With this, users can intuitively experience the three-dimensional visual renderings of the product in the store on the online shopping platform, and increase their awareness and understanding of the product. , to increase the user’s ordering rate for products.
本申请提供的图像渲染模型的训练方法对待训练渲染模型进行训练,获得目标渲染模型。在训练过程中,通过待训练渲染模型对目标对象的初始图像和初始分割图像进行渲染,获得初始图像的渲染图像和渲染分割图像。比较渲染图像和初始图像,以及比较初始分割图像和渲染分割图像,获得渲染图像以及渲染分割图像,和初始图像以及初始分割图像之间的差异。根据该差异,对所述待训练渲染模型进行训练;其中,所述对所述待训练渲染模型进行训练,包括:对所述待训练渲染模型的渲染参数进行调整。The training method of the image rendering model provided by this application trains the rendering model to be trained to obtain the target rendering model. During the training process, the initial image and the initial segmented image of the target object are rendered through the rendering model to be trained, and the rendered image and the rendered segmented image of the initial image are obtained. Compare the rendered image and the initial image, and compare the initial segmented image and the rendered segmented image, and obtain the difference between the rendered image, the rendered segmented image, and the initial image and the initial segmented image. According to the difference, the rendering model to be trained is trained; wherein the training of the rendering model to be trained includes: adjusting the rendering parameters of the rendering model to be trained.
上述对待训练渲染模型进行训练的过程中,根据渲染图像和初始图像之间差异,获得用于表征渲染图像和目标对象之间针对对象差异度的损失值。基于所述损失值,调整待训练渲染模型的渲染参数。渲染参数包括如下至少一种参数:纹理参数,位姿参数,网格参数,光照参数,材质渲染参数。因此,调整待训练渲染模型的渲染参数,可以是调整待训练渲染模型中的上述至少一种渲染参数,提升待训练渲染模型获得的渲染结果中目标对象的还原度。In the above process of training the rendering model to be trained, a loss value used to characterize the object difference between the rendered image and the target object is obtained based on the difference between the rendered image and the initial image. Based on the loss value, the rendering parameters of the rendering model to be trained are adjusted. Rendering parameters include at least one of the following parameters: texture parameters, pose parameters, mesh parameters, lighting parameters, and material rendering parameters. Therefore, adjusting the rendering parameters of the rendering model to be trained may be to adjust at least one of the above rendering parameters in the rendering model to be trained to improve the restoration degree of the target object in the rendering results obtained by the rendering model to be trained.
其中,基于损失值调整渲染参数的过程可以是一个迭代过程,例如,在第一次模型训练过程中,根据渲染图像和初始图像之间的差异,获得用于表征渲染图像和目标对象之间针对对象几何体差异度的第一损失值,根据第一损失值,调整待训练渲染模型的渲染参数,获得调整渲染参数后的渲染模型。Among them, the process of adjusting the rendering parameters based on the loss value can be an iterative process. For example, in the first model training process, based on the difference between the rendered image and the initial image, a parameter used to characterize the relationship between the rendered image and the target object is obtained. According to the first loss value of the object geometry difference, the rendering parameters of the rendering model to be trained are adjusted to obtain a rendering model after adjusting the rendering parameters.
之后,采用调整渲染参数后的渲染模型对初始图像进行分析处理,获得渲染图像和初始图像之间的第二次差异,基于第二次差异,确定用于表征渲染图像和目标对象之间针对对象几何体差异度的第一损失值。根据第一损失值,再次调整渲染模型的渲染参数。After that, the rendering model after adjusting the rendering parameters is used to analyze and process the initial image, and obtain the second difference between the rendered image and the initial image. Based on the second difference, determine the object used to characterize the relationship between the rendered image and the target object. The first loss value of geometry dissimilarity. According to the first loss value, the rendering parameters of the rendering model are adjusted again.
基于上述过程,对待训练渲染模型的渲染参数调整预设次数,获得对渲染参数调整预设次数后的目标渲染模型。目标渲染模型对初始图像分析获得的渲染图像以及渲染分割图像,与初始图像以及初始分割图像之间的差异得到被降低,提升了已完成训练的渲染模型获得的渲染结果中目标对象的对象还原度。Based on the above process, the rendering parameters of the rendering model to be trained are adjusted a preset number of times to obtain a target rendering model after adjusting the rendering parameters a preset number of times. The target rendering model reduces the difference between the rendered image and the rendered segmented image obtained by the initial image analysis and the initial image and the initial segmented image, which improves the object restoration degree of the target object in the rendering result obtained by the trained rendering model. .
请参考图1,其为本申请实施例提供的图像渲染模型的训练方法的参数优化策略示意图。Please refer to FIG. 1 , which is a schematic diagram of the parameter optimization strategy of the training method of the image rendering model provided by the embodiment of the present application.
在图1中,通过预设的参数优化顺序,调整待训练渲染模型的渲染参数,使得渲染结果与目标对象的初始图像之间的差异得到降低。例如,降低用于表征渲染图像与初始图像之间针对对象几何体的差异度的第一损失值,以及降低用于表征渲染图像与初始图像之间针对光照数据差异度的第二损失值。具体如下:In Figure 1, through the preset parameter optimization sequence, the rendering parameters of the rendering model to be trained are adjusted so that the difference between the rendering result and the initial image of the target object is reduced. For example, a first loss value characterizing the difference between the rendered image and the initial image for the object geometry is reduced, and a second loss value characterizing the difference between the rendered image and the initial image for the lighting data is reduced. details as follows:
首先为纹理优化,换言之,通过调整纹理参数,降低调整纹理参数后的渲染模型获得的渲染结果与目标对象的初始图像之间针对对象几何体的第一损失值。通过对待训练渲染模型调整预设次数的纹理参数,降低所述第一损失值,从而提升调整纹理参数后的渲染模型获得的渲染结果中目标对象的还原度。First, the texture is optimized. In other words, by adjusting the texture parameters, the first loss value for the object geometry between the rendering result obtained by the rendering model after adjusting the texture parameters and the initial image of the target object is reduced. By adjusting the texture parameters of the rendering model to be trained a preset number of times, the first loss value is reduced, thereby improving the restoration degree of the target object in the rendering result obtained by the rendering model after adjusting the texture parameters.
上述过程是对待训练渲染模型进行纹理优化的过程。通过调整待训练渲染模型的纹理参数,提升渲染模型获得的渲染结果中目标对象的还原度。其次,还可以是纹理、位姿优化,换言之,通过联合调整待训练渲染模型的纹理参数和位姿参数,以提升渲染结果中目标对象的还原度。The above process is the process of texture optimization for the rendering model to be trained. By adjusting the texture parameters of the rendering model to be trained, the restoration degree of the target object in the rendering results obtained by the rendering model is improved. Secondly, it can also be texture and pose optimization. In other words, the texture parameters and pose parameters of the rendering model to be trained are jointly adjusted to improve the restoration degree of the target object in the rendering results.
具体的,通过联合调整纹理参数和位姿参数,降低调整纹理参数和位姿参数后的渲染模型获得的渲染结果与目标对象的初始图像之间针对对象几何体的第一损失值。基于此,提升调整纹理参数和位姿参数后的渲染模型获得的渲染结果中目标对象的还原度。Specifically, by jointly adjusting the texture parameters and pose parameters, the first loss value for the object geometry between the rendering result obtained by the rendering model after adjusting the texture parameters and pose parameters and the initial image of the target object is reduced. Based on this, the restoration degree of the target object in the rendering result obtained by adjusting the texture parameters and pose parameters is improved.
上述过程是对待训练渲染模型进行纹理、位姿优化的过程。通过调整待训练渲染模型的纹理参数和位姿参数,提升渲染模型获得的渲染结果中目标对象的还原度。另外,还可以是纹理、位姿、网格联合优化,换言之,通过联合调整待训练渲染模型的纹理参数、位姿参数和网格参数,以提升渲染结果中目标对象的还原度。The above process is the process of optimizing the texture and pose of the rendering model to be trained. By adjusting the texture parameters and pose parameters of the rendering model to be trained, the restoration degree of the target object in the rendering results obtained by the rendering model is improved. In addition, the texture, pose, and mesh can also be jointly optimized. In other words, the texture parameters, pose parameters, and mesh parameters of the rendering model to be trained are jointly adjusted to improve the restoration degree of the target object in the rendering result.
具体的,同时调整纹理参数,位姿参数和网格参数,降低调整纹理参数,位姿参数和网格参数后的渲染模型获得的渲染结果与目标对象的初始图像之间针对对象几何体的第一损失值。基于此,提升调整纹理参数,位姿参数和网格参数后的渲染模型获得的渲染结果中目标对象的还原度。Specifically, the texture parameters, pose parameters and mesh parameters are adjusted simultaneously to reduce the first difference between the rendering result obtained by the rendering model after adjusting the texture parameters, pose parameters and mesh parameters and the initial image of the target object for the object geometry. loss value. Based on this, the restoration degree of the target object in the rendering result obtained by adjusting the texture parameters, pose parameters and mesh parameters of the rendering model is improved.
上述描述的三种调整待训练渲染模型的模型参数的过程,用于降低渲染模型获得的渲染结果与目标对象之间针对对象几何体的差异值。在此基础上,还可以是纹理、光照联合优化,换言之,通过同时调整纹理参数和光照参数,使得训练获得的目标渲染模型获得的渲染结果与目标对象相比,其纹理、网格和光照效果达到预定要求,保证了渲染结果中全局纹理光照的一致性。The three processes of adjusting model parameters of the rendering model to be trained described above are used to reduce the difference value between the rendering result obtained by the rendering model and the target object with respect to the object geometry. On this basis, texture and lighting can also be jointly optimized. In other words, by adjusting texture parameters and lighting parameters at the same time, the rendering results obtained by the target rendering model obtained through training can have better texture, grid and lighting effects than the target object. Meet the predetermined requirements and ensure the consistency of global texture lighting in the rendering results.
请参考图2,其为本申请实施例提供的图像渲染模型的训练方法的场景示意图。在图2中,以鞋子为例介绍对鞋子进行三维几何体重建的过程。Please refer to FIG. 2 , which is a schematic scene diagram of the training method of the image rendering model provided by the embodiment of the present application. In Figure 2, shoes are taken as an example to introduce the process of three-dimensional geometry reconstruction of shoes.
首先采集鞋子的原始图像(如图2中鞋子的物体图像),此处采集的原始图像可以是鞋子的多个视角的原始图像,以鞋子为中心,通过位于鞋子多个视角的图像采集工具获取各视角分别对应的图片。其次,对鞋子的原始图像进行分割处理,分离鞋子的原始图像对应的前景图像和背景图像,获得原始图像的分割图像(如图2中鞋子的物体分割)。然后,根据鞋子的原始图像,鞋子的分割图像,以及鞋子的各视角原始图像分别针对对象的相机位姿信息,构建鞋子的网格信息(如图2中鞋子的物体网格)。First, collect the original image of the shoe (the object image of the shoe in Figure 2). The original image collected here can be the original image of the shoe from multiple perspectives, centered on the shoe, and obtained through image acquisition tools located at multiple perspectives of the shoe. Pictures corresponding to each perspective. Secondly, perform segmentation processing on the original image of the shoes, separate the foreground image and background image corresponding to the original image of the shoes, and obtain the segmented image of the original image (sole object segmentation in Figure 2). Then, based on the original image of the shoe, the segmented image of the shoe, and the original image of the shoe from each perspective, the mesh information of the shoe is constructed based on the camera pose information of the object (the object mesh of the shoe in Figure 2).
将鞋子的原始图像提供给初始渲染模型,获得鞋子的渲染结果以及渲染结果对应的渲染分割图像。根据鞋子的原始图像与渲染结果的第一比较结果,以及鞋子的原始图像对应的原始分割图像与渲染结果的渲染分割图像之间的第二比较结果,确定鞋子的原始图像与渲染结果之间的针对鞋子几何体差异的第一损失值。根据第一损失值,调整初始渲染模型的渲染参数。通过调整初始渲染模型的渲染参数,降低调整渲染参数后的渲染模型获得的渲染结果与目标对象之间针对鞋子几何体的差异,提升调整渲染参数后的渲染模型获得渲染结果中目标对象的还原度。Provide the original image of the shoe to the initial rendering model to obtain the rendering result of the shoe and the rendered segmentation image corresponding to the rendering result. According to the first comparison result between the original image of the shoe and the rendering result, and the second comparison result between the original segmented image corresponding to the original image of the shoe and the rendered segmented image of the rendering result, determine the distance between the original image of the shoe and the rendering result. First loss value for differences in shoe geometry. According to the first loss value, the rendering parameters of the initial rendering model are adjusted. By adjusting the rendering parameters of the initial rendering model, the difference in the shoe geometry between the rendering results obtained by the rendering model after adjusting the rendering parameters and the target object is reduced, and the restoration degree of the target object in the rendering result obtained by the rendering model after adjusting the rendering parameters is improved.
上述通过调整渲染参数降低第一损失值。其中,渲染参数包括如下至少一种参数:纹理参数,位姿参数,网格参数,光照参数。因此,本申请可以通过调整纹理参数(如图2中的纹理优化),降低第一损失值。第一损失值的计算方式可以是根据渲染结果的纹理数据与目标对象的纹理数据之间的相似度,确定第一损失值。The first loss value is reduced by adjusting rendering parameters as described above. The rendering parameters include at least one of the following parameters: texture parameters, pose parameters, mesh parameters, and lighting parameters. Therefore, this application can reduce the first loss value by adjusting texture parameters (texture optimization in Figure 2). The calculation method of the first loss value may be to determine the first loss value based on the similarity between the texture data of the rendering result and the texture data of the target object.
本申请还可以通过对纹理参数和位姿参数进行联合调整的方式(如图2中的纹理优化和相机位姿优化的联合过程),降低第一损失值。此处计算第一损失值主要是通过根据纹理参数的损失值和位姿参数的损失值进行加权计算获得渲染结果与原始图像之间的相似度,确定第一损失值。This application can also reduce the first loss value by jointly adjusting the texture parameters and pose parameters (such as the joint process of texture optimization and camera pose optimization in Figure 2). The calculation of the first loss value here mainly involves weighted calculation based on the loss value of the texture parameter and the loss value of the pose parameter to obtain the similarity between the rendering result and the original image, and determine the first loss value.
此外,还可以通过联合调整纹理参数,位姿参数和网格参数的方式(如图2中的纹理优化,相机位姿优化和网格优化的联合过程),同步提升渲染结果与原始图像之间的相似度,降低第一损失值。此处第一损失值主要是根据纹理参数的损失值,位姿参数的损失值,和网格参数的损失值进行加权处理获得的。In addition, the relationship between the rendering results and the original image can be simultaneously improved by jointly adjusting the texture parameters, pose parameters and mesh parameters (such as the joint process of texture optimization, camera pose optimization and mesh optimization in Figure 2). similarity, reducing the first loss value. The first loss value here is mainly obtained by weighting the loss value of the texture parameter, the loss value of the pose parameter, and the loss value of the mesh parameter.
上述三种调整待训练渲染模型的模型参数,提升渲染结果中目标对象还原度的方法,主要是使得调整模型参数后的渲染模型获得的渲染结果与原始图像之间针对对象几何体的相似度得到提升。在此基础上,同步进行如图2中的纹理优化和光照优化,换言之,在初始渲染模型的位姿参数,网格参数已经优化到目标状态的前提下,通过调整初始渲染模型的纹理参数和光照参数,使得渲染结果与鞋子的原始图像相比,纹理和光照效果具有一致性。The above three methods of adjusting the model parameters of the rendering model to be trained and improving the restoration degree of the target object in the rendering results are mainly to improve the similarity of the object geometry between the rendering results obtained by the rendering model after adjusting the model parameters and the original image. . On this basis, texture optimization and lighting optimization as shown in Figure 2 are performed simultaneously. In other words, on the premise that the pose parameters and grid parameters of the initial rendering model have been optimized to the target state, by adjusting the texture parameters and Lighting parameters so that the rendering results have consistent texture and lighting effects compared to the original image of the shoe.
本申请实施例提供一种图像渲染模型的训练方法,包括:获得目标对象的初始图像和初始分割图像;利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像;基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练;其中,所述对所述待训练渲染模型进行训练,包括:对所述待训练渲染模型的渲染参数进行调整。Embodiments of the present application provide a training method for an image rendering model, which includes: obtaining an initial image and an initial segmented image of a target object; using a rendering model to be trained to render the initial image and the initial segmented image to obtain the initial The rendered image and the rendered segmented image of the image; based on the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image, the rendering model to be trained is trained; wherein, Training the rendering model to be trained includes: adjusting rendering parameters of the rendering model to be trained.
上述方法,根据渲染图像以及渲染分割图像,与初始图像以及初始分割图像之间的差异,对所述待训练渲染模型进行训练;其中,所述对所述待训练渲染模型进行训练,包括:对所述待训练渲染模型的渲染参数进行调整。该方法通过对待训练渲染模型的渲染参数进行调整,使得调整后的渲染模型获得的渲染图像以及渲染分割图像,与初始图像以及初始分割图像之间的差异得到降低,提升了渲染图像中的对象还原度。In the above method, the rendering model to be trained is trained according to the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image; wherein the training of the rendering model to be trained includes: The rendering parameters of the rendering model to be trained are adjusted. This method adjusts the rendering parameters of the rendering model to be trained, so that the difference between the rendered image and the rendered segmented image obtained by the adjusted rendering model and the initial image and the initial segmented image is reduced, and the object restoration in the rendered image is improved. Spend.
第一实施例First embodiment
图3为本申请第一实施例提供的一种图像渲染模型的训练方法的流程图,以下结合图3对本申请第一实施例提供的图像渲染模型的训练方法进行详细描述。FIG. 3 is a flow chart of a training method for an image rendering model provided by the first embodiment of the present application. The training method of the image rendering model provided by the first embodiment of the present application will be described in detail below with reference to FIG. 3 .
如图3所示,在步骤S301中,获得目标对象的初始图像和初始分割图像。As shown in Figure 3, in step S301, an initial image and an initial segmented image of the target object are obtained.
本步骤用于获得目标对象的初始图像和初始分割图像,初始图像和初始分割图像作为目标对象的样本图像和样本分割图像。采用初始图像和初始分割图像对待训练渲染模型进行训练,从而提升训练后的渲染模型根据初始图像进行渲染获得的渲染结果中目标对象与实际目标对象之间的相似度。This step is used to obtain the initial image and initial segmented image of the target object, and the initial image and initial segmented image are used as the sample image and sample segmented image of the target object. The initial image and the initial segmented image are used to train the rendering model to be trained, thereby improving the similarity between the target object and the actual target object in the rendering result obtained by rendering the trained rendering model based on the initial image.
此处,获取目标对象的初始图像可以包括获取目标对象多视角初始图像,例如,以目标对象为中心,通过目标对象的多个方位的图像采集工具采集目标对象的原始图片,作为目标对象的初始图像。Here, obtaining the initial image of the target object may include obtaining the multi-view initial image of the target object. For example, taking the target object as the center, collecting the original image of the target object through image acquisition tools in multiple directions of the target object as the initial image of the target object. image.
获取目标对象的初始图像后,对初始图像进行图片中的前景内容和背景内容的分割处理,获得初始图像的初始分割图像。After obtaining the initial image of the target object, segment the foreground content and background content in the image on the initial image to obtain an initial segmented image of the initial image.
如图3所示,在步骤S302中,利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像。As shown in Figure 3, in step S302, the initial image and the initial segmented image are rendered using a rendering model to be trained, and a rendered image and a rendered segmented image of the initial image are obtained.
本步骤用于通过待训练渲染模型对初始图像和初始分割图像进行渲染,获得初始图像的渲染图像和渲染分割图像。从而在后续步骤中,比较渲染图像和初始图像,以及比较渲染分割图像和初始分割图像,根据两者的比较结果,对待训练渲染模型的渲染参数进行调整。This step is used to render the initial image and the initial segmented image through the rendering model to be trained, and obtain the rendered image and the rendered segmented image of the initial image. Therefore, in subsequent steps, the rendered image is compared with the initial image, and the rendered segmented image is compared with the initial segmented image. Based on the comparison results between the two, the rendering parameters of the rendering model to be trained are adjusted.
如图3所示,在步骤S303中,基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练;其中,所述对所述待训练渲染模型进行训练,包括:对所述待训练渲染模型的渲染参数进行调整。As shown in Figure 3, in step S303, the rendering model to be trained is trained based on the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image; wherein , the training of the rendering model to be trained includes: adjusting the rendering parameters of the rendering model to be trained.
本步骤用于根据渲染图像以及渲染分割图像,与初始图像以及初始分割图像之间的差异,对待训练渲染模型进行模型参数调整,包括:对待训练渲染模型的渲染参数进行调整。从而使得调整渲染参数后的渲染模型获得的渲染结果与初始图像之间的差异得到降低,提升渲染结果与目标对象之间的相似度。This step is used to adjust the model parameters of the rendering model to be trained based on the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image, including: adjusting the rendering parameters of the rendering model to be trained. As a result, the difference between the rendering result obtained by the rendering model after adjusting the rendering parameters and the initial image is reduced, and the similarity between the rendering result and the target object is improved.
其中,对待训练渲染模型的渲染参数进行调整,包括第一种调节方式:Among them, the rendering parameters of the rendering model to be trained are adjusted, including the first adjustment method:
所述对所述待训练渲染模型的渲染参数进行调整,包括:对所述待训练渲染模型的纹理参数进行调整。The adjusting the rendering parameters of the rendering model to be trained includes: adjusting the texture parameters of the rendering model to be trained.
根据所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对待训练渲染模型的纹理参数进行调整。从而提升调整纹理参数后的渲染模型获得的渲染结果与目标对象之间针对对象几何体的相似度。According to the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image, the texture parameters of the rendering model to be trained are adjusted. This improves the similarity between the rendering results obtained by the rendering model after adjusting the texture parameters and the target object with respect to the object geometry.
其中,对待训练渲染模型的纹理参数进行调整,是基于待训练渲染模型获得的渲染图像和初始图像之间的纹理数据差异确定的。因此,还包括:获得所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的纹理数据差异;所述基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练,可以通过如下方式实现:Among them, the adjustment of the texture parameters of the rendering model to be trained is determined based on the texture data difference between the rendered image obtained by the rendering model to be trained and the initial image. Therefore, the method further includes: obtaining the texture data difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image; and based on the rendered image and the rendered segmented image, and Using the difference between the initial image and the initial segmented image to train the rendering model to be trained can be achieved in the following ways:
基于所述纹理数据差异,确定所述待训练渲染模型的损失值;基于所述待训练渲染模型的损失值,对所述待训练渲染模型的纹理参数进行调整。Based on the texture data difference, the loss value of the rendering model to be trained is determined; based on the loss value of the rendering model to be trained, the texture parameters of the rendering model to be trained are adjusted.
利用待训练渲染模型获得初始图像的渲染图像以及渲染分割图像。获取初始图像的纹理数据,以及渲染图像的纹理数据。根据初始图像的纹理数据和渲染图像的纹理数据之间的纹理数据差异,获得初始图像与渲染图像之间的损失值。Use the rendering model to be trained to obtain the rendered image of the initial image and the rendered segmented image. Get the texture data of the initial image, and the texture data of the rendered image. According to the texture data difference between the texture data of the initial image and the texture data of the rendered image, the loss value between the initial image and the rendered image is obtained.
其中,所述确定所述待训练渲染模型的损失值,包括:确定用于表征所述待训练渲染模型的渲染结果与所述目标对象之间针对对象几何体差异度的第一损失值。Wherein, determining the loss value of the rendering model to be trained includes: determining a first loss value used to characterize the difference in object geometry between the rendering result of the rendering model to be trained and the target object.
因此,根据初始图像的纹理数据和渲染图像的纹理数据之间的纹理数据差异,确定初始图像与渲染图像之间针对对象几何体的损失值,基于针对对象几何体的损失值,对待训练渲染模型的纹理参数进行调整。基于此,调整纹理参数后的渲染模型获得的渲染结果中的对象几何体与实际对象的对象几何体之间的相似度得到提升。Therefore, based on the texture data difference between the texture data of the initial image and the texture data of the rendered image, the loss value for the object geometry between the initial image and the rendered image is determined. Based on the loss value for the object geometry, the texture of the rendering model to be trained is Parameters are adjusted. Based on this, the similarity between the object geometry in the rendering result obtained by the rendering model after adjusting the texture parameters and the object geometry of the actual object is improved.
其中,上述对待训练渲染模型的纹理参数的调整过程可以是一个迭代过程。因此,本申请实施例提供的方法还包括:The above-mentioned adjustment process of the texture parameters of the rendering model to be trained may be an iterative process. Therefore, the method provided by the embodiment of this application also includes:
将调整后的纹理参数更新至所述待训练渲染模型,获得第一渲染模型,继续执行所述利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像的步骤。Update the adjusted texture parameters to the rendering model to be trained to obtain a first rendering model, continue to render the initial image and the initial segmented image using the rendering model to be trained, and obtain the initial image Steps to render an image and render a segmented image.
例如,对待训练渲染模型进行第一次纹理参数调整后,获得第一次调整纹理参数后的第一渲染模型,采用第一渲染模型对初始图像和初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像。For example, after the first texture parameter adjustment of the rendering model to be trained is performed, the first rendering model after the first adjustment of the texture parameters is obtained, the first rendering model is used to render the initial image and the initial segmented image, and the initial image is obtained. Render image and render split image.
然后,基于渲染图像和渲染分割图像,与初始图像和初始分割图像之间的纹理数据差异,确定第一渲染模型的损失值,基于该损失值,调整第一渲染模型的纹理参数。Then, based on the texture data difference between the rendered image, the rendered segmented image, and the initial image and the initial segmented image, a loss value of the first rendering model is determined, and based on the loss value, the texture parameters of the first rendering model are adjusted.
按照上述过程对第一渲染模型进行预设次数的纹理参数调整后,获得目标渲染模型。对第一渲染模型进行预设次数的纹理参数调整过程,逐步降低第一渲染模型获得的渲染结果与目标对象之间针对对象几何体的差异,提升渲染结果中目标对象的还原度。After adjusting the texture parameters for a preset number of times on the first rendering model according to the above process, the target rendering model is obtained. Perform a preset number of texture parameter adjustment processes on the first rendering model to gradually reduce the difference in object geometry between the rendering result obtained by the first rendering model and the target object, and improve the restoration degree of the target object in the rendering result.
以上描述的是通过调整待训练渲染模型的纹理参数,提升渲染结果中目标对象的还原度的第一种调节方式。The above description is the first adjustment method to improve the restoration degree of the target object in the rendering result by adjusting the texture parameters of the rendering model to be trained.
此外,对待训练渲染模型的渲染参数进行调整,还可以包括第二种调节方式:所述对所述待训练渲染模型的渲染参数进行调整,包括:对所述待训练渲染模型的纹理参数和位姿参数进行联合调整。In addition, adjusting the rendering parameters of the rendering model to be trained may also include a second adjustment method: adjusting the rendering parameters of the rendering model to be trained includes: adjusting the texture parameters and bits of the rendering model to be trained. The posture parameters are jointly adjusted.
通过对待训练渲染模型的纹理参数和位姿参数进行联合调整后,从而使得调整纹理参数和位姿参数后的渲染模型获得的渲染结果与初始图像之间针对对象几何体的差异得到降低,提升针对对象几何体的相似度。By jointly adjusting the texture parameters and pose parameters of the rendering model to be trained, the difference in object geometry between the rendering results obtained by the rendering model after adjusting the texture parameters and pose parameters and the initial image is reduced, and the object geometry is improved. Geometry similarity.
其中,对待训练渲染模型进行纹理参数和位姿参数的联合调整,是基于待训练渲染模型获得的渲染结果与目标对象之间的纹理数据差异和位姿数据差异,因此,还包括:获得所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的纹理数据差异和位姿数据差异;所述基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练,可以通过如下方式实现:Among them, the joint adjustment of texture parameters and pose parameters of the rendering model to be trained is based on the texture data difference and pose data difference between the rendering results obtained by the rendering model to be trained and the target object. Therefore, it also includes: obtaining the The texture data difference and pose data difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image; the difference between the rendered image and the rendered segmented image and the initial Using the difference between the image and the initial segmented image to train the rendering model to be trained can be achieved in the following ways:
基于所述纹理数据差异和位姿数据差异,确定所述待训练渲染模型的损失值;基于所述待训练渲染模型的损失值,对所述待训练渲染模型的纹理参数和位姿参数进行联合调整。Based on the texture data difference and pose data difference, determine the loss value of the rendering model to be trained; based on the loss value of the rendering model to be trained, combine the texture parameters and pose parameters of the rendering model to be trained Adjustment.
将目标对象的初始图像以及初始分割图像提供给待训练渲染模型,获得初始图像的渲染图像和渲染分割图像。获得渲染图像与初始图像之间的纹理数据差异和位姿数据差异,以及渲染分割图像与初始分割图像之间的纹理数据差异和位姿数据差异。The initial image and the initial segmented image of the target object are provided to the rendering model to be trained, and the rendered image and the rendered segmented image of the initial image are obtained. The texture data difference and pose data difference between the rendered image and the initial image are obtained, as well as the texture data difference and pose data difference between the rendered segmented image and the initial segmented image.
其中,所述确定所述待训练渲染模型的损失值,包括:确定用于表征所述待训练渲染模型的渲染结果与所述目标对象之间针对对象几何体差异度的第一损失值。Wherein, determining the loss value of the rendering model to be trained includes: determining a first loss value used to characterize the difference in object geometry between the rendering result of the rendering model to be trained and the target object.
基于上述纹理数据差异和位姿数据差异,确定待训练渲染模型获得的渲染结果与目标对象之间针对对象几何体的损失值,根据损失值,调整纹理参数和位姿参数。基于此,提升待训练渲染模型获得的渲染结果中目标对象的还原度。Based on the above differences in texture data and pose data, determine the loss value for the object geometry between the rendering result obtained by the rendering model to be trained and the target object, and adjust the texture parameters and pose parameters based on the loss value. Based on this, the restoration degree of the target object in the rendering results obtained by the rendering model to be trained is improved.
其中,对待训练渲染模型的纹理参数和位姿参数进行联合调整的过程可以是一个迭代过程。具体如下:Among them, the process of jointly adjusting the texture parameters and pose parameters of the rendering model to be trained may be an iterative process. details as follows:
对待训练渲染模型的纹理参数和位姿参数进行联合调整后,还包括:将调整后的纹理参数和位姿参数更新至所述待训练渲染模型,获得第二渲染模型,继续执行所述利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像的步骤。After jointly adjusting the texture parameters and pose parameters of the rendering model to be trained, the method further includes: updating the adjusted texture parameters and pose parameters to the rendering model to be trained, obtaining a second rendering model, and continuing to execute the use of the rendering model to be trained. The steps of training a rendering model to render the initial image and the initial segmented image, and obtaining a rendered image of the initial image and rendering the segmented image.
例如,对待训练渲染模型的纹理参数和位姿参数进行第一次双参数联合调整后,获得第一次双参数联合调整后的第二渲染模型。采用第二渲染模型对初始图像和初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像。For example, after the first two-parameter joint adjustment is performed on the texture parameters and pose parameters of the rendering model to be trained, a second rendering model after the first two-parameter joint adjustment is obtained. The second rendering model is used to render the initial image and the initial segmented image to obtain the rendered image and the rendered segmented image of the initial image.
然后,基于渲染图像和渲染分割图像,与初始图像和初始分割图像之间的纹理数据差异和位姿数据差异,确定第二渲染模型的针对对象几何体差异度的第一损失值,基于第一损失值,继续调整第二渲染模型的纹理参数和位姿参数。Then, based on the texture data difference and pose data difference between the rendered image and the rendered segmented image, and the initial image and the initial segmented image, determine a first loss value of the second rendering model for the object geometry difference, based on the first loss value, continue to adjust the texture parameters and pose parameters of the second rendering model.
按照上述过程对第二渲染模型进行预设次数的纹理参数和位姿参数的联合调整后,获得目标渲染模型。对第二渲染模型进行预设次数的纹理参数和位姿参数的联合调整过程,逐步降低第二渲染模型获得的渲染结果与目标对象之间针对对象几何体的差异,提升渲染结果中目标对象的还原度。After jointly adjusting the texture parameters and pose parameters for a preset number of times on the second rendering model according to the above process, the target rendering model is obtained. Perform a joint adjustment process of texture parameters and pose parameters for a preset number of times on the second rendering model, gradually reducing the difference in object geometry between the rendering results obtained by the second rendering model and the target object, and improving the restoration of the target object in the rendering results. Spend.
以上描述的是通过对待训练渲染模型的纹理参数和位姿参数进行联合调整,提升渲染结果中目标对象的还原度的第二种调节方式。What is described above is the second adjustment method to improve the restoration degree of the target object in the rendering result by jointly adjusting the texture parameters and pose parameters of the rendering model to be trained.
此外,对待训练渲染模型的渲染参数进行调整,还可以包括第三种调节方式:所述对所述待训练渲染模型的渲染参数进行调整,包括:对所述待训练渲染模型的纹理参数、位姿参数和网格参数进行联合调整。In addition, adjusting the rendering parameters of the rendering model to be trained may also include a third adjustment method: adjusting the rendering parameters of the rendering model to be trained includes: adjusting the texture parameters and bits of the rendering model to be trained. The pose parameters and mesh parameters are jointly adjusted.
通过对待训练渲染模型的纹理参数、位姿参数和网格参数进行联合调整后,使得调整纹理参数、位姿参数和网格参数后的渲染模型获得的渲染结果与初始图像之间针对对象几何体的差异得到降低,提升针对对象几何体的相似度。By jointly adjusting the texture parameters, pose parameters and mesh parameters of the rendering model to be trained, the rendering result obtained by the rendering model after adjusting the texture parameters, pose parameters and mesh parameters is compared with the initial image for the object geometry. Differences are reduced, improving similarity for object geometries.
其中,对待训练渲染模型进行纹理参数、位姿参数和网格参数的联合调整,是基于待训练渲染模型获得的渲染结果与目标对象之间的纹理数据差异,位姿数据差异以及网格数据差异。因此,还包括:获得所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的纹理数据差异和位姿数据差异、以及所述渲染图像和所述初始图像之间的网格数据差异;所述基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练,可以通过如下方式实现:Among them, the joint adjustment of texture parameters, pose parameters and mesh parameters of the rendering model to be trained is based on the difference in texture data, pose data and mesh data between the rendering results obtained by the rendering model to be trained and the target object. . Therefore, the method further includes: obtaining the rendered image and the rendered segmented image, the texture data difference and the pose data difference between the initial image and the initial segmented image, and the rendered image and the initial image. The mesh data difference between them; the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image is used to train the rendering model to be trained by This is achieved as follows:
基于所述纹理数据差异、位姿数据差异、以及网格数据差异,确定所述待训练渲染模型的损失值;基于所述待训练渲染模型的损失值,对所述待训练渲染模型的纹理参数、位姿参数和网格参数进行联合调整。Based on the texture data difference, pose data difference, and mesh data difference, determine the loss value of the rendering model to be trained; based on the loss value of the rendering model to be trained, texture parameters of the rendering model to be trained , pose parameters and grid parameters are jointly adjusted.
将目标对象的初始图像以及初始分割图像提供给待训练渲染模型,获得初始图像的渲染图像和渲染分割图像。获得渲染图像与初始图像之间的纹理数据差异,位姿数据差异和网格数据差异,以及渲染分割图像与初始分割图像之间的纹理数据差异,位姿数据差异和网格数据差异。The initial image and the initial segmented image of the target object are provided to the rendering model to be trained, and the rendered image and the rendered segmented image of the initial image are obtained. Obtain the texture data difference, pose data difference and mesh data difference between the rendered image and the initial image, as well as the texture data difference, pose data difference and mesh data difference between the rendered segmented image and the initial segmented image.
其中,所述确定所述待训练渲染模型的损失值,包括:确定用于表征所述待训练渲染模型的渲染结果与所述目标对象之间针对对象几何体差异度的第一损失值。Wherein, determining the loss value of the rendering model to be trained includes: determining a first loss value used to characterize the difference in object geometry between the rendering result of the rendering model to be trained and the target object.
基于上述纹理数据差异,位姿数据差异和网格数据差异,确定待训练渲染模型获得的渲染结果与目标对象之间针对对象几何体的第一损失值,根据第一损失值,对待训练渲染模型的纹理参数,位姿参数和网格参数进行联合调整。基于此,提升待训练渲染模型获得的渲染结果中目标对象的还原度。Based on the above differences in texture data, pose data and mesh data, determine the first loss value for the object geometry between the rendering result obtained by the rendering model to be trained and the target object. Based on the first loss value, the rendering result of the rendering model to be trained is determined. Texture parameters, pose parameters and mesh parameters are jointly adjusted. Based on this, the restoration degree of the target object in the rendering results obtained by the rendering model to be trained is improved.
上述过程中获得网格数据差异,是根据渲染图像的网格数据和目标对象的网格数据之间的网格数据差异获得的。因此,还包括:获取目标对象的网格数据;所述目标对象的网格数据通过如下方式获取:The mesh data difference obtained in the above process is obtained based on the mesh data difference between the mesh data of the rendered image and the mesh data of the target object. Therefore, the method also includes: obtaining the grid data of the target object; the grid data of the target object is obtained in the following manner:
获取所述目标对象的多视角初始图像,以及所述多视角初始图像分别对应的图像位姿数据;根据所述多视角初始图像、所述图像位姿数据以及所述初始分割图像,构建所述目标对象的网格数据。Obtain the multi-view initial image of the target object and the image pose data corresponding to the multi-view initial image; construct the multi-view initial image according to the multi-view initial image, the image pose data and the initial segmented image. The mesh data of the target object.
其中,对待训练渲染模型的纹理参数,位姿参数和网格参数进行联合调整的过程可以是一个迭代过程。具体如下:Among them, the process of jointly adjusting the texture parameters, pose parameters and mesh parameters of the rendering model to be trained can be an iterative process. details as follows:
对待训练渲染模型的纹理参数,位姿参数和网格参数进行联合调整后,还包括:将调整后的纹理参数、位姿参数和网格参数更新至所述待训练渲染模型,获得第三渲染模型,继续执行所述利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像的步骤。After jointly adjusting the texture parameters, pose parameters and grid parameters of the rendering model to be trained, it also includes: updating the adjusted texture parameters, pose parameters and grid parameters to the rendering model to be trained to obtain a third rendering model, continue to perform the step of rendering the initial image and the initial segmented image using the rendering model to be trained, and obtaining the rendered image and the rendered segmented image of the initial image.
例如,对待训练渲染模型的纹理参数,位姿参数和网格参数进行第一次三参数联合调整后,获得第一次三参数联合调整后的第三渲染模型。采用第三渲染模型对初始图像和初始分割图像进行渲染,获得初始图像的渲染图像和渲染分割图像。For example, after the first three-parameter joint adjustment is performed on the texture parameters, pose parameters and mesh parameters of the rendering model to be trained, a third rendering model after the first three-parameter joint adjustment is obtained. The third rendering model is used to render the initial image and the initial segmented image to obtain the rendered image and the rendered segmented image of the initial image.
然后,基于渲染图像和渲染分割图像,与初始图像以及初始分割图像之间的纹理数据差异,位姿数据差异和网格数据差异,确定第三渲染模型的针对对象几何体差异度的第一损失值。基于第一损失值,继续调整第三渲染模型的纹理参数,位姿参数和网格参数。Then, based on the texture data difference, pose data difference and mesh data difference between the rendered image and the rendered segmented image, and the initial image and the initial segmented image, determine the first loss value of the third rendering model for the object geometry difference. . Based on the first loss value, continue to adjust the texture parameters, pose parameters and mesh parameters of the third rendering model.
按照上述过程对第三渲染模型进行预设次数的纹理参数,位姿参数和网格参数的联合调整后,获得目标渲染模型。对第三渲染模型进行预设次数的纹理参数,位姿参数和网格参数的联合调整过程,逐步降低第三渲染模型获得的渲染结果与目标对象之间针对对象几何体的差异,提升渲染结果中针对对象几何体的还原度。According to the above process, the third rendering model is jointly adjusted for a preset number of texture parameters, pose parameters and grid parameters to obtain the target rendering model. The third rendering model performs a joint adjustment process of texture parameters, pose parameters and mesh parameters for a preset number of times, gradually reducing the difference in object geometry between the rendering results obtained by the third rendering model and the target object, and improving the accuracy of the rendering results. Degree of reduction for object geometry.
上述对待训练渲染模型的渲染参数进行调整的三个过程,是为了提升调整参数后的渲染模型获得的渲染结果与目标对象之间针对对象几何体的相似度。在此基础上,还可以继续调整待训练渲染模型的光照参数,以提升渲染模型获得渲染结果与目标对象之间针对光照数据的差异。The above three processes of adjusting the rendering parameters of the rendering model to be trained are to improve the similarity between the rendering results obtained by the adjusted parameters of the rendering model and the target object with respect to the object geometry. On this basis, you can continue to adjust the lighting parameters of the rendering model to be trained to improve the difference in lighting data between the rendering results obtained by the rendering model and the target object.
因此,本申请中对待训练渲染模型的渲染参数进行调整,还包括第四种调节方式:所述对所述待训练渲染模型的渲染参数进行调整,包括:对所述待训练渲染模型的纹理参数和光照参数进行联合调整。Therefore, the adjustment of the rendering parameters of the rendering model to be trained in this application also includes a fourth adjustment method: the adjustment of the rendering parameters of the rendering model to be trained includes: adjusting the texture parameters of the rendering model to be trained. and lighting parameters are jointly adjusted.
通过对待训练渲染模型的纹理参数和光照参数进行联合调整,使得调整纹理参数和光照参数后的渲染模型获得的渲染结果与初始图像之间针对对象几何体的差异以及针对光照数据的差异得到降低,提升渲染结果与目标对象之间对象几何体和光照数据的相似度。By jointly adjusting the texture parameters and lighting parameters of the rendering model to be trained, the differences in object geometry and lighting data between the rendering results obtained by the rendering model after adjusting the texture parameters and lighting parameters and the initial image are reduced and improved. The similarity of object geometry and lighting data between the rendering result and the target object.
其中,对待训练渲染模型进行纹理参数和光照参数进行联合调整,可以是基于待训练渲染模型的位姿参数和网格参数达到目标状态的情况下进行的调整。Among them, the joint adjustment of texture parameters and lighting parameters of the rendering model to be trained can be based on the adjustment of the pose parameters and grid parameters of the rendering model to be trained to reach the target state.
对待训练渲染模型进行纹理参数和光照参数的联合调整,是基于待训练渲染模型获得的渲染结果与目标对象之间的纹理数据差异和光照数据差异,因此,还包括:获得所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的纹理数据差异、以及所述渲染图像与所述初始图像之间的光照数据差异。The joint adjustment of texture parameters and lighting parameters of the rendering model to be trained is based on the difference in texture data and lighting data between the rendering results obtained by the rendering model to be trained and the target object. Therefore, it also includes: obtaining the rendering image and the The texture data difference between the rendered segmented image, the initial image and the initial segmented image, and the lighting data difference between the rendered image and the initial image.
所述基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练,可以通过如下方式实现:The training of the rendering model to be trained based on the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image can be implemented in the following manner:
基于所述纹理数据差异和所述光照数据差异,确定所述待训练渲染模型的损失值;基于所述待训练渲染模型的损失值,对所述待训练渲染模型的纹理参数和光照参数进行联合调整。Based on the texture data difference and the lighting data difference, determine the loss value of the rendering model to be trained; based on the loss value of the rendering model to be trained, combine the texture parameters and lighting parameters of the rendering model to be trained Adjustment.
将目标对象的初始图像以及初始分割图像提供给待训练渲染模型,获得初始图像的渲染图像和渲染分割图像。获得渲染图像与初始图像之间的纹理数据差异和光照数据差异。The initial image and the initial segmented image of the target object are provided to the rendering model to be trained, and the rendered image and the rendered segmented image of the initial image are obtained. Obtain the texture data difference and lighting data difference between the rendered image and the original image.
其中,所述基于所述纹理数据差异和所述光照数据差异,确定所述待训练渲染模型的损失值,包括:基于所述纹理数据差异,确定用于表征所述待训练渲染模型的渲染结果与所述目标对象之间针对对象几何体差异度的第一损失值;基于所述光照数据差异,确定用于表征所述待训练渲染模型的渲染结果与所述目标对象之间针对光照数据差异度的第二损失值。Wherein, determining the loss value of the rendering model to be trained based on the texture data difference and the lighting data difference includes: determining a rendering result used to characterize the rendering model to be trained based on the texture data difference. A first loss value for the object geometry difference between the target object and the target object; based on the lighting data difference, determine the lighting data difference between the rendering result used to characterize the rendering model to be trained and the target object. the second loss value.
基于上述纹理数据差异,确定待训练渲染模型获得的渲染结果与目标对象之间针对对象几何体的第一损失值,基于上述光照数据差异,确定用于表征所述待训练渲染模型的渲染结果与所述目标对象之间针对光照数据差异度的第二损失值。根据第一损失值,调整纹理参数,根据第二损失值,调整光照参数。基于此,提升待训练渲染模型获得的渲染结果中目标对象的还原度。Based on the above difference in texture data, determine the first loss value for the object geometry between the rendering result obtained by the rendering model to be trained and the target object, and based on the above difference in lighting data, determine the difference between the rendering result used to characterize the rendering model to be trained and the target object. The second loss value for the difference in lighting data between the target objects. According to the first loss value, the texture parameters are adjusted, and according to the second loss value, the lighting parameters are adjusted. Based on this, the restoration degree of the target object in the rendering results obtained by the rendering model to be trained is improved.
其中,对待训练渲染模型的纹理参数和光照参数进行联合调整的过程可以是一个迭代过程。具体如下:Among them, the process of jointly adjusting the texture parameters and lighting parameters of the rendering model to be trained may be an iterative process. details as follows:
对待训练渲染模型的纹理参数和光照参数进行联合调整后,还包括:将调整后的纹理参数和光照参数更新至所述待训练渲染模型,获得第四渲染模型,继续执行所述利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像的步骤。After jointly adjusting the texture parameters and lighting parameters of the rendering model to be trained, the method further includes: updating the adjusted texture parameters and lighting parameters to the rendering model to be trained, obtaining a fourth rendering model, and continuing to perform the rendering using the rendering model to be trained. The model renders the initial image and the initial segmented image, and obtains a rendered image of the initial image and a step of rendering the segmented image.
例如,对待训练渲染模型的纹理参数和光照参数进行第一次双参数联合调整后,获得第一次双参数联合调整后的第四渲染模型。采用第四渲染模型对初始图像和初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像。For example, after the first two-parameter joint adjustment is performed on the texture parameters and lighting parameters of the rendering model to be trained, a fourth rendering model after the first two-parameter joint adjustment is obtained. The fourth rendering model is used to render the initial image and the initial segmented image to obtain the rendered image and the rendered segmented image of the initial image.
然后,基于渲染图像和渲染分割图像,与初始图像和初始分割图像之间的纹理数据差异,确定第四渲染模型的针对对象几何体差异度的第一损失值。基于渲染图像和初始图像之间的光照数据差异,确定第四渲染模型的针对光照数据差异度的第二损失值。根据第一损失值和第二损失值,继续调整第四渲染模型的纹理参数和光照参数。Then, based on the texture data difference between the rendered image and the rendered segmented image, and the initial image and the initial segmented image, a first loss value for the object geometry difference degree of the fourth rendering model is determined. Based on the lighting data difference between the rendered image and the initial image, a second loss value for the lighting data difference of the fourth rendering model is determined. According to the first loss value and the second loss value, continue to adjust the texture parameters and lighting parameters of the fourth rendering model.
按照上述过程对第四渲染模型进行预设次数的纹理参数和光照参数的联合调整后,获得目标渲染模型。对第四渲染模型进行预设次数的纹理参数和光照参数的联合调整的过程,逐步降低第四渲染模型获得的渲染结果与目标对象之间的差异,提升渲染结果中目标对象的还原度。After jointly adjusting the texture parameters and lighting parameters for a preset number of times on the fourth rendering model according to the above process, the target rendering model is obtained. The process of jointly adjusting texture parameters and lighting parameters for a preset number of times on the fourth rendering model gradually reduces the difference between the rendering result obtained by the fourth rendering model and the target object, and improves the restoration degree of the target object in the rendering result.
以上描述的是通过对待训练渲染模型的纹理参数和光照参数进行联合调整,提升渲染结果中目标对象的还原度的第四调节方式。What is described above is the fourth adjustment method for improving the restoration degree of the target object in the rendering result by jointly adjusting the texture parameters and lighting parameters of the rendering model to be trained.
上述描述中获取渲染图像和初始图像之间的光照数据差异,是根据渲染图像的光照数据和初始图像的光照数据之间比较获得的光照数据差异。因此,还包括:获取所述待训练渲染模型获得的渲染结果的光照数据。The difference in lighting data obtained between the rendered image and the initial image in the above description is the lighting data difference obtained by comparing the lighting data of the rendered image and the lighting data of the initial image. Therefore, the method also includes: obtaining lighting data of the rendering result obtained by the rendering model to be trained.
所述获取所述待训练渲染模型获得的渲染结果的光照数据,可以通过如下方式实现:The acquisition of lighting data of the rendering results obtained by the rendering model to be trained can be achieved in the following manner:
初始化设置目标对象的可微纹理数据,可微位姿数据,可微网格数据;将所述目标对象的可微纹理数据,可微位姿数据,可微网格数据,输入光照模型中,获得所述渲染结果的光照数据。Initialize and set the differentiable texture data, differentiable pose data, and differentiable mesh data of the target object; input the differentiable texture data, differentiable pose data, and differentiable mesh data of the target object into the lighting model, Obtain the lighting data of the rendering result.
本申请实施例提供一种图像渲染模型的训练方法,包括:获得目标对象的初始图像和初始分割图像;利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像;基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异对所述待训练渲染模型进行训练;其中,所述对所述待训练渲染模型进行训练,包括:对所述待训练渲染模型的渲染参数进行调整。Embodiments of the present application provide a training method for an image rendering model, which includes: obtaining an initial image and an initial segmented image of a target object; using a rendering model to be trained to render the initial image and the initial segmented image to obtain the initial The rendering image and the rendered segmented image of the image; the rendering model to be trained is trained based on the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image; wherein, the Training the rendering model to be trained includes: adjusting rendering parameters of the rendering model to be trained.
上述方法,根据渲染图像以及渲染分割图像,与初始图像以及初始分割图像之间的差异,对所述待训练渲染模型进行训练;其中,所述对所述待训练渲染模型进行训练,包括:至少对所述待训练渲染模型的渲染参数进行调整。该方法通过至少对待训练渲染模型的渲染参数进行调整,使得调整后的渲染模型获得的渲染图像以及渲染分割图像,与初始图像以及初始分割图像之间的差异得到降低,提升了渲染图像中的对象还原度。In the above method, the rendering model to be trained is trained according to the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image; wherein the training of the rendering model to be trained includes: at least Adjust the rendering parameters of the rendering model to be trained. This method adjusts at least the rendering parameters of the rendering model to be trained, so that the difference between the rendered image and the rendered segmented image obtained by the adjusted rendering model and the initial image and the initial segmented image is reduced, thereby improving the objects in the rendered image. Reduction degree.
第二实施例Second embodiment
图4为本申请第二实施例提供的一种渲染方法的流程图。以下结合图4对本申请第二实施例提供的渲染方法进行详细描述。其中,第二实施例提供的渲染方法是根据第一实施例训练获得的目标渲染模型,根据目标对象的初始图像渲染得到目标对象的渲染结果。其具体描述过程可以参考上述场景实施例以及第一实施例的描述,此处不再赘述。Figure 4 is a flow chart of a rendering method provided by the second embodiment of the present application. The rendering method provided by the second embodiment of the present application will be described in detail below with reference to FIG. 4 . Among them, the rendering method provided by the second embodiment is based on the target rendering model obtained by training in the first embodiment, and the rendering result of the target object is obtained according to the initial image rendering of the target object. For the specific description process, reference may be made to the above scenario embodiment and the description of the first embodiment, and will not be described again here.
如图4所示,在步骤S401中,将目标对象的多视角初始图像提供给目标渲染模型,获得所述目标对象的初始分割图像,纹理数据,所述多视角初始图像分别对应的位姿数据以及所述目标对象的光照数据。As shown in Figure 4, in step S401, the multi-view initial image of the target object is provided to the target rendering model, and the initial segmented image, texture data, and pose data corresponding to the multi-view initial image of the target object are obtained. and lighting data of the target object.
本步骤用于目标渲染模型根据目标对象的多视角初始图像,确定目标对象的初始图像对应的初始分割图像,纹理参数,位姿参数以及目标对象的光照参数。上述获得的数据用于构建目标对象的三维几何体的基础数据。This step is used by the target rendering model to determine the initial segmentation image, texture parameters, pose parameters and lighting parameters of the target object corresponding to the initial image of the target object based on the multi-view initial image of the target object. The data obtained above are used to construct the basic data of the three-dimensional geometry of the target object.
如图4所示,在步骤S402中,根据所述多视角初始图像,所述目标对象的初始分割图像,纹理数据,以及所述多视角初始图像分别对应的位姿数据,确定所述目标对象的渲染网格。As shown in Figure 4, in step S402, the target object is determined based on the multi-view initial image, the initial segmented image of the target object, texture data, and the pose data corresponding to the multi-view initial image. The rendering grid.
本步骤用于构建目标对象的渲染网格信息,从而为后续步骤中在目标对象的渲染网格中进行纹理贴图处理。This step is used to construct the rendering grid information of the target object, so as to perform texture mapping processing in the rendering grid of the target object in subsequent steps.
如图4所示,在步骤S403中,根据所述纹理数据,对所述目标对象的渲染网格执行纹理贴图操作。As shown in Figure 4, in step S403, a texture mapping operation is performed on the rendering grid of the target object according to the texture data.
本步骤用于根据纹理参数在目标对象的渲染网格中进行纹理贴图操作。This step is used to perform texture mapping operations in the rendering grid of the target object based on texture parameters.
如图4所示,在步骤S404中,根据所述光照数据,对完成纹理贴图的渲染网格进行光照处理,获得渲染图像。As shown in Figure 4, in step S404, according to the lighting data, lighting processing is performed on the rendering grid that has completed texture mapping to obtain a rendering image.
本步骤用于在对目标对象的渲染网格进行纹理贴图处理后,进一步进行光光照贴图处理,使得最终获得的第一渲染图像与目标对象的初始图像相比,对象几何体的纹理效果和光照效果均达到一致性。This step is used to perform texture mapping processing on the rendering mesh of the target object, and then further perform light mapping processing, so that the finally obtained first rendered image has the texture effect and lighting effect of the object geometry compared with the initial image of the target object. All reached consistency.
本实施例中的渲染方法采用的是第一实施例采用图像渲染模型的训练方法获得的目标渲染模型,对目标对象的初始图像进行渲染处理,获得的渲染结果。在第一实施例获得的目标渲染模型是对初始渲染模型进行多层次渲染参数的联合优化处理后获得的模型。经过联合优化处理的模型能够达到获得的渲染结果与初始图像之间的损失函数值达到预定要求,提升了目标渲染模型获得的渲染结果中的对象还原度。The rendering method in this embodiment uses the target rendering model obtained by using the image rendering model training method in the first embodiment, and renders the initial image of the target object to obtain the rendering result. The target rendering model obtained in the first embodiment is a model obtained by performing joint optimization processing of multi-level rendering parameters on the initial rendering model. The model that has been jointly optimized can achieve the loss function value between the obtained rendering result and the initial image to meet the predetermined requirements, improving the degree of object restoration in the rendering result obtained by the target rendering model.
第三实施例Third embodiment
在第一实施例的基础上,本申请第三实施例提供了一种图像渲染模型的训练装置,请参考图5,其为本申请第三实施例提供的一种图像渲染模型的训练装置的示意图。图5所示的图像渲染模型的训练装置包括:On the basis of the first embodiment, the third embodiment of the present application provides a training device for an image rendering model. Please refer to Figure 5 , which is a diagram of a training device for an image rendering model provided by the third embodiment of the present application. Schematic diagram. The training device of the image rendering model shown in Figure 5 includes:
第一获得单元501,获得目标对象的初始图像和初始分割图像;The first obtaining unit 501 obtains the initial image and the initial segmented image of the target object;
渲染单元502,用于利用待训练渲染模型对所述初始图像和所述初始分割图像进行渲染,获得所述初始图像的渲染图像和渲染分割图像;Rendering unit 502, configured to render the initial image and the initial segmented image using a rendering model to be trained, and obtain a rendered image and a rendered segmented image of the initial image;
训练单元503,用于基于所述渲染图像以及所述渲染分割图像,与所述初始图像以及所述初始分割图像之间的差异,对所述待训练渲染模型进行训练;其中,所述对所述待训练渲染模型进行训练,包括:对所述待训练渲染模型的渲染参数进行调整。The training unit 503 is configured to train the rendering model to be trained based on the difference between the rendered image and the rendered segmented image and the initial image and the initial segmented image; wherein, the Training the rendering model to be trained includes: adjusting rendering parameters of the rendering model to be trained.
第四实施例Fourth embodiment
在第二实施例的基础上,本申请第四实施例提供了一种渲染装置,请参考图6,其为本申请第四实施例提供的一种渲染装置的示意图。图6所示的渲染装置包括:Based on the second embodiment, a fourth embodiment of the present application provides a rendering device. Please refer to FIG. 6 , which is a schematic diagram of a rendering device provided by the fourth embodiment of the present application. The rendering device shown in Figure 6 includes:
第二获得单元601,用于将目标对象的多视角初始图像提供给目标渲染模型,获得所述目标对象的初始分割图像,纹理数据,所述多视角初始图像分别对应的位姿数据以及所述目标对象的光照数据;The second obtaining unit 601 is used to provide the multi-view initial image of the target object to the target rendering model, and obtain the initial segmentation image of the target object, texture data, pose data corresponding to the multi-view initial image and the Lighting data of the target object;
第二确定单元602,用于根据所述多视角初始图像,所述目标对象的初始分割图像,纹理数据,以及所述多视角初始图像分别对应的位姿数据,确定所述目标对象的渲染网格;The second determination unit 602 is configured to determine the rendering network of the target object based on the multi-view initial image, the initial segmentation image of the target object, texture data, and the pose data corresponding to the multi-view initial image. grid;
执行单元603,用于根据所述纹理数据,对所述目标对象的渲染网格执行纹理贴图操作;Execution unit 603, configured to perform a texture mapping operation on the rendering grid of the target object according to the texture data;
第三获得单元604,用于根据所述光照数据,对完成纹理贴图的渲染网格进行光照处理,获得渲染图像。The third obtaining unit 604 is configured to perform illumination processing on the rendering grid with completed texture mapping according to the illumination data to obtain a rendering image.
第五实施例Fifth embodiment
与本申请第一实施例和第二实施例的方法相对应的,本申请第五实施例还提供一种电子设备。如图7所示,图7为本申请第五实施例中提供的一种电子设备的示意图。该电子设备,包括:至少一个处理器701,至少一个通信接口702,至少一个存储器703和至少一个通信总线704;可选的,通信接口702可以为通信模块的接口,如GSM模块的接口;处理器701可能是处理器CPU,或者是特定集成电路ASIC(Application Specific IntegratedCircuit),或者是被配置成实施本发明实施例的一个或多个集成电路。存储器703可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。其中,存储器703存储有程序,处理器701调用存储器703所存储的程序,以执行本发明第一实施例和第二实施例的方法。Corresponding to the methods of the first and second embodiments of the present application, a fifth embodiment of the present application further provides an electronic device. As shown in Figure 7, Figure 7 is a schematic diagram of an electronic device provided in the fifth embodiment of the present application. The electronic device includes: at least one processor 701, at least one communication interface 702, at least one memory 703 and at least one communication bus 704; optionally, the communication interface 702 can be an interface of a communication module, such as an interface of a GSM module; processing The processor 701 may be a processor CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The memory 703 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 703 stores programs, and the processor 701 calls the programs stored in the memory 703 to execute the methods of the first and second embodiments of the present invention.
第六实施例Sixth embodiment
与本申请第一实施例和第二实施例的方法相对应的,本申请第六实施例还提供一种计算机存储介质。所述计算机存储介质存储有计算机程序,该计算机程序被处理器运行,执行第一实施例和第二实施例的方法。Corresponding to the methods of the first and second embodiments of the present application, the sixth embodiment of the present application also provides a computer storage medium. The computer storage medium stores a computer program, and the computer program is run by the processor to perform the methods of the first and second embodiments.
本申请虽然以较佳实施例公开如上,但其并不是用来限定本申请,任何本领域技术人员在不脱离本申请的精神和范围内,都可以做出可能的变动和修改,因此本申请的保护范围应当以本申请权利要求所界定的范围为准。Although the present application is disclosed as above with preferred embodiments, it is not intended to limit the present application. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the present application The scope of protection shall be subject to the scope defined by the claims of this application.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-permanent storage in computer-readable media, random access memory (RAM), and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
1、计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(Transitory Media),如调制的数据信号和载波。1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory. (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include non-transitory computer-readable media (Transitory Media), such as modulated data signals and carrier waves.
2、本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
需要说明的是,本申请实施例中可能会涉及到对用户数据的使用,在实际应用中,可以在符合所在国的适用法律法规要求的情况下(例如,用户明确同意,对用户切实通知,等),在适用法律法规允许的范围内在本文描述的方案中使用用户特定的个人数据。It should be noted that the embodiments of this application may involve the use of user data. In actual applications, this can be done in compliance with the applicable laws and regulations of the country where the user is located (for example, the user explicitly agrees, the user is effectively notified, etc.), use user-specific personal data in the scenarios described herein to the extent permitted by applicable laws and regulations.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or reject.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310601759.4A CN116740245A (en) | 2023-05-25 | 2023-05-25 | Training method and rendering method of image rendering model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310601759.4A CN116740245A (en) | 2023-05-25 | 2023-05-25 | Training method and rendering method of image rendering model |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116740245A true CN116740245A (en) | 2023-09-12 |
Family
ID=87905406
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310601759.4A Pending CN116740245A (en) | 2023-05-25 | 2023-05-25 | Training method and rendering method of image rendering model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116740245A (en) |
-
2023
- 2023-05-25 CN CN202310601759.4A patent/CN116740245A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Sýkora et al. | Ink-and-ray: Bas-relief meshes for adding global illumination effects to hand-drawn characters | |
WO2020108610A1 (en) | Image processing method, apparatus, computer readable medium and electronic device | |
WO2021164150A1 (en) | Web terminal real-time hybrid rendering method and apparatus in combination with ray tracing, and computer device | |
CN110223370B (en) | Method for generating complete human texture map from single-view picture | |
CN114549723A (en) | Rendering method, device and device for lighting information in game scene | |
CN104574488A (en) | Method for optimizing three-dimensional model for mobile augmented reality browser | |
CN112508778B (en) | 3D face prop mapping method, terminal and storage medium | |
CN112950769A (en) | Three-dimensional human body reconstruction method, device, equipment and storage medium | |
JP2023029984A (en) | Method, device, electronic apparatus, and readable storage medium for generating virtual image | |
CN114782642B (en) | Method and device for placing virtual models | |
CN115131482A (en) | Rendering method, device and device for lighting information in game scene | |
CN116503577A (en) | Method and system for fast acquisition of 3D model of virtual simulation scene | |
CN114708374A (en) | Virtual image generation method, device, electronic device and storage medium | |
CN103116897B (en) | A kind of Three-Dimensional Dynamic data compression based on image space and smoothing method | |
CN116681831A (en) | A bottom-up single image panoramic reconstruction method, device and computer equipment | |
CN116843807A (en) | Virtual image generation method, virtual image model training method, virtual image generation device, virtual image model training device and electronic equipment | |
CN114972634A (en) | Multi-view 3D deformable face reconstruction method based on feature voxel fusion | |
CN110378948B (en) | 3D model reconstruction method and device and electronic equipment | |
CN118823245A (en) | A payload point cloud reconstruction system and method for ground comprehensive test scenarios | |
CN115965735B (en) | Texture map generation method and device | |
CN116740245A (en) | Training method and rendering method of image rendering model | |
WO2023221683A1 (en) | Image rendering method and apparatus, device, and medium | |
CN116912433A (en) | Three-dimensional model skeleton binding method, device, equipment and storage medium | |
CN116228986A (en) | Indoor scene illumination estimation method based on local-global completion strategy | |
CN114299253A (en) | Model interior rendering method and device, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |