Data synthesis method and device, equipment, storage medium and program product
By fusing the candidate model data in the three-dimensional model library and applying auxiliary information, a virtual character is generated, which solves the problems of low efficiency and poor effect of virtual character creation in the existing technology, and achieves a more efficient and better virtual character. Image generation.
Patent Information
- Application Number
- CN202410793808.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-10
AI Technical Summary
When creating virtual characters, the existing technology relies on real scene data collection, resulting in low model creation efficiency and difficulty in achieving user expectations.
By obtaining the candidate model data in the preset 3D model library, the model is fused and combined with expression control information, lighting control information and texture control information to generate a virtual character image that meets expectations.
It improves the efficiency and effect of creating virtual characters and can better meet the user's expectations for expressions and light and shadow effects.
Smart Images

Figure CN118628656A
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to computer technology, and more particularly to a data synthesis method, apparatus, device, storage medium, and program product. Background Art
[0002] With the development of computer vision, virtual characters, as three-dimensional models of target objects, have been widely used in scenarios such as model training, data enhancement or testing.
[0003] At present, the data of the target object is collected, and the virtual character image of the target object is generated based on the collected data using computer vision technology. However, the above virtual character image creation process requires collecting data of the target object in the real scene and generating the virtual character image based on the collected data, which consumes a long time, and the effect of the virtual character image is limited by the real scene, which is difficult to meet the user's expectations. Summary of the invention
[0004] The embodiments of the present disclosure provide a data synthesis method, apparatus, device, storage medium and program product, which can efficiently obtain a virtual character image that meets expectations.
[0005] In a first aspect, an embodiment of the present disclosure provides a data synthesis method, comprising:
[0006] Acquire model data of candidate models in a preset three-dimensional model library, wherein the preset three-dimensional model library includes model data of three-dimensional models of target objects;
[0007] Fusing the model data of the candidate models to obtain a fusion model;
[0008] Auxiliary information is obtained, where the auxiliary information includes at least one of expression control information, illumination control information, and texture control information, and the auxiliary information is fused into a fusion model to obtain a target model.
[0009] In a second aspect, an embodiment of the present disclosure further provides a data synthesis device, the device comprising:
[0010] A data acquisition module, used to acquire model data of candidate models in a preset three-dimensional model library, wherein the preset three-dimensional model library includes model data of a three-dimensional model of a target object;
[0011] A fusion model, used to fuse the model data of the candidate models to obtain a fusion model;
[0012] The model generation module is used to obtain auxiliary information, where the auxiliary information includes at least one of expression control information, illumination control information, and texture control information, and fuse the auxiliary information into a fusion model to obtain a target model.
[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0014] one or more processors;
[0015] a storage device for storing one or more programs,
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the data synthesis method as described in any embodiment of the present disclosure.
[0017] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the data synthesis method as described in any embodiment of the present disclosure.
[0018] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the data synthesis method as described in any embodiment of the present disclosure.
[0019] The disclosed embodiment provides a data synthesis method, which obtains a fusion model by fusing the model data of candidate models, and then fuses at least one of expression control information, illumination control information and texture information into the fusion model to obtain a target model. Since the fusion model is a three-dimensional model of the target object, the virtual three-dimensional model is generated by fusing the model data of the candidate models, which can solve the problem of low model creation efficiency caused by using the data of the target object in the real scene to create the model. Since the expression effect of the fusion model can be controlled by the expression control information, and the light and shadow effect of the fusion model can be controlled by the illumination control information, a target model with expression and light and shadow effects that meet expectations can be generated. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0021] Figure 1 A flowchart of a data synthesis method provided by an embodiment of the present disclosure;
[0022] Figure 2 A schematic diagram of model fusion provided by an embodiment of the present disclosure;
[0023] Figure 3 A flowchart of another data synthesis method provided by an embodiment of the present disclosure;
[0024] Figure 4 A flowchart of another data synthesis method provided by an embodiment of the present disclosure;
[0025] Figure 5 A schematic diagram of the structure of a data synthesis device provided by an embodiment of the present disclosure;
[0026] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0028] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0029] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0030] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0031] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0032] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0033] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0034] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0035] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0036] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0037] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0038] Figure 1 The present invention is a flowchart of a data synthesis method provided by an embodiment of the present invention. The present invention is applicable to the case of creating a virtual character image, for example, a scene of a virtual character image obtained by fusing multiple three-dimensional models of a target object in a real scene. The method can be executed by a digital synthesis device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server.
[0039] like Figure 1 As shown, the method includes:
[0040] S110: Acquire model data of candidate models in a preset three-dimensional model library, wherein the preset three-dimensional model library includes model data of three-dimensional models of target objects.
[0041] The target objects include human faces or animal faces.
[0042] In the disclosed embodiment, the candidate model represents a three-dimensional model used to synthesize a virtual character image. At least two three-dimensional models in a preset three-dimensional model library can be randomly selected as candidate models. The three-dimensional models in the preset three-dimensional model library can also be displayed for the user to select at least two three-dimensional models as candidate models.
[0043] The model data includes 3D point data information, including vertex coordinates of the mesh constituting the three-dimensional model, sight direction vector, expression description, and camera position and internal parameters. The expression description represents the fusion of multiple blend shapers (BlendShape).
[0044] The creation method of the preset three-dimensional model library includes: using a 3D scanner or a depth camera to scan a person in a real scene to collect person data. Perform three-dimensional reconstruction based on the person data to obtain a three-dimensional model such as a point cloud model or a mesh model of the person in the real scene. The model data of the three-dimensional model generated based on the person in the real scene is stored in the preset three-dimensional model library. For example, the preset three-dimensional model library can be expressed as (A1, A2, A3, ..., Ai, ... An), where Ai (i∈[1, n]) represents the model data of the i-th three-dimensional model in the preset three-dimensional model library.
[0045] Since it is necessary to fuse the 3D models of different target objects to obtain a new 3D model, it is necessary to select at least two candidate models from the preset 3D model library and obtain the model data of at least two candidate models in the preset 3D model library. For example, two 3D models in the preset 3D model library can be obtained as the parent model and the mother model respectively. In order to increase the mutation feature, at least one candidate model can also be obtained from the preset 3D model as a mutation model.
[0046] Exemplarily, the three-dimensional model in the preset three-dimensional model library is displayed; a configuration operation for the three-dimensional model is obtained, and the candidate model and role attributes are determined based on the configuration operation, wherein the role attributes characterize that the candidate model is a parent model, a mother model or a mutant model; and model data corresponding to the parent model, the mother model and the mutant model are respectively obtained from the preset three-dimensional model library.
[0047] Since the three-dimensional models in the preset three-dimensional model library are three-dimensional models of characters in real scenes, the three-dimensional models in the preset three-dimensional model library can be rendered to display each three-dimensional model. In response to the configuration operation for the three-dimensional model, multiple candidate models are determined from the preset three-dimensional model library, and the candidate models are designated as parent models, mother models or mutation models. Then, the model data corresponding to the parent model, mother model and mutation model are obtained from the predicted three-dimensional model respectively. Since at least one three-dimensional model is selected from the preset three-dimensional model library as a mutation model, more mutation features are introduced in the process of model fusion, so that the fused fusion model inherits the features of the parent model and the mother model, and also has mutation features, which is more in line with the genetic law of characters in real scenes.
[0048] Optionally, model data of multiple candidate models may be randomly obtained from a preset three-dimensional model library, and the role attributes of each candidate model may be randomly specified. For example, model data of three candidate models A2, A3, and A5 may be randomly obtained from a preset three-dimensional model library, and candidate model A2 may be randomly specified as a parent model, candidate model A3 may be randomly specified as a parent model, and candidate model A5 may be randomly specified as a mutant model. The disclosed embodiment does not specifically limit the method for obtaining the model data of the candidate models.
[0049] S120: Fusing the model data of the candidate models to obtain a fusion model.
[0050] Exemplarily, the fusion weight of the candidate model is obtained according to the role attribute of the candidate model; based on the fusion weight corresponding to the parent model and the fusion weight corresponding to the mother model, the model data corresponding to the parent model and the model data corresponding to the mother model are fused to obtain a child model; based on the fusion weight corresponding to the mutation model, the model data corresponding to the mutation model is fused to the child model to obtain a fused model.
[0051] Among them, the fusion weight represents the degree of influence of the model data of the candidate model on the fusion model during the fusion process. If the fusion weight of the model data is higher, the fusion model and the candidate model are more similar in the area corresponding to the model data. In some embodiments, if the fusion model needs to be more like the parent model, the fusion weight of the parent model is selected to be higher than the fusion weight of the mother model. If the fusion model needs to be more like the mother model, the fusion weight of the mother model is selected to be higher than the fusion weight of the parent model. The fusion weight of the parent model and the mother model is higher than the fusion weight of the mutation model.
[0052] The child model represents a three-dimensional model generated by fusing the model data of the parent model and the model data of the mother model. The fusion weights of the parent model, the mother model and the mutant model can be randomly selected from the weight value set according to the actual fusion requirements. Figure 2 A schematic diagram of a model fusion provided by an embodiment of the present disclosure. Figure 2As shown, based on the fusion weight corresponding to the parent model 210 and the fusion weight corresponding to the mother model 220, the model data corresponding to the parent model 210 and the model data corresponding to the mother model 220 are hybridized, backcrossed and self-crossed to obtain a child model (not shown). In the process of synthesizing the child model, the hybridization representation performs weighted fusion of the model data corresponding to the parent model 210 and the model data corresponding to the mother model 220. The backcross representation performs weighted fusion of the model data of the offspring with the model data corresponding to the parent model 210, wherein the offspring represents the offspring obtained by hybridization or the offspring obtained by backcrossing. The self-crossing representation performs weighted fusion of the model data of the offspring with the same genetic characteristics, wherein the offspring represents the offspring obtained by backcrossing or the offspring obtained by selfing.
[0053] Based on the fusion weight corresponding to the mutation model 230, the model data corresponding to the mutation model 230 and the model data corresponding to the sub-model are hybridized, backcrossed and self-crossed to obtain the fusion model 240. In the process of synthesizing the fusion model 240, the hybridization, backcrossing and self-crossing processes are similar to the synthesis process of the sub-model, except that the synthesis of the fusion model 240 requires hybridization, backcrossing and self-crossing of the model data corresponding to the mutation model 230 and the model data corresponding to the sub-model, which will not be repeated here.
[0054] S130, obtaining auxiliary information, where the auxiliary information includes at least one of expression control information, illumination control information, and texture control information, and fusing the auxiliary information into a fusion model to obtain a target model.
[0055] The auxiliary information represents the information for adjusting the effect of the fusion model. By fusing the auxiliary information into the fusion model, a target model that meets the expected effect can be obtained.
[0056] The expression control information represents the vertex displacement of the mesh related to the target expression when the fusion model is converted from the current expression to the target expression. The lighting control information represents the information of the lighting environment in which the target model is located. The lighting environment is used to simulate the light and shadow effects under real lighting conditions. The texture information represents the appearance of the target model. The texture information may include images corresponding to skin information, hair information, eye information, accessories information, and clothing information. Among them, the hair information includes eyebrows, beards, eyelashes, or hair. Different types of eyebrows can be generated based on the brow bone features of the standard face model. Different types of beards can also be generated based on the mouth features of the standard face model. Eyelashes with different makeup can also be generated based on the eye features of the standard face model. Hair of different hairstyles and colors can also be generated based on the head features of the standard face model. Optionally, the standard face model can be generated based on the features of different races.
[0057] Exemplarily, obtaining the auxiliary information includes: obtaining vertex displacements of a target mesh associated with the fusion model and the target expression; and obtaining a lighting environment map and a texture map in a preset material library.
[0058] Optionally, obtaining the auxiliary information may further include obtaining vertex displacements of a target mesh associated with the fusion model and the target expression.
[0059] Optionally, obtaining auxiliary information may also include obtaining a lighting environment map in a preset material library.
[0060] Optionally, obtaining auxiliary information may also include obtaining a texture map in a preset material library.
[0061] The target mesh associated with the target expression in the fusion model represents the mesh whose position changes during the process of transforming the fusion model from the current expression to the target expression. The illumination environment map is an image containing illumination information. The texture map is an image containing texture information.
[0062] Specifically, an expression controller of the fusion model is displayed, and the expression controller is bound to key points of parts such as eyebrows, eyes, nose or mouth. Through the expression controller, the eyebrows, eyes, nose or mouth can be controlled to present a specific state, so that the fusion model presents the corresponding expression. Optionally, an expression setting operation can be input to at least one expression controller to make the fusion model present a target expression. The duration of the expression setting operation is used as the adjustment time interval. For example, if the target expression is an expression of closing eyes and pouting, the expression controllers corresponding to the eyes and mouth need to be set. According to the expression setting operation, the target expression is determined, and the vertex displacement of the target mesh that changes position during the process of converting the fusion model from the current expression to the target expression is calculated. Specifically, in the process of adjusting the expression through the expression controller, the adjustment time interval is divided into N small intervals, and the position deviation of the vertex of the target mesh related to the target expression in the fusion model between the starting point and the end point of the small interval is determined in real time. The correlation coefficient of the vertex in the target mesh is obtained, wherein the correlation coefficient of the adjacent vertices is determined according to the distance of the vertex of the target mesh in the fusion model. According to the correlation coefficient of the vertex in the target mesh, the joint displacement of the moving distance of a vertex of a target mesh superimposed on other adjacent vertices is determined. The vertex displacement is determined based on the position deviation and associated displacement corresponding to the vertices of each target mesh. For example, the vertices of the target mesh include a, b, c, d, e, f, and g, where b, c, and d are adjacent vertices of a. When the position of a is adjusted, b, c, and d will be displaced. Therefore, when adjusting the position of b, the vertex position of b needs to be determined in combination with the position deviation and associated displacement corresponding to b.
[0063] Since the preset material library includes lighting environment maps under different lighting environments, the lighting environment maps can be displayed for the user to choose. In addition, the preset material library also includes different types of texture maps, which are displayed for the user to choose. For example, the texture map includes skin map, hair map, accessories map or clothing map.
[0064] Optionally, a skin image, a hair image, an accessories image, a clothing image, or a lighting environment image may be randomly selected from a preset material library.
[0065] Exemplarily, fusing the auxiliary information into a fusion model to obtain a target model includes: adjusting the vertex coordinates of a target mesh associated with a target expression in the fusion model according to the vertex displacement; and fusing the lighting environment map and the texture map into the vertex-adjusted fusion model to obtain the target model.
[0066] For example, after obtaining the vertex displacements corresponding to the target mesh and the cell, the vertex coordinates of the corresponding target mesh are adjusted according to the vertex displacements of the target mesh corresponding to the cell in the adjustment time interval, so as to gradually adjust the expression of the fusion model to avoid problems such as jagged arrangement of vertices that affect the expression control effect. The fusion model after vertex adjustment presents the target expression. Then, the skin map, hair map, lighting environment map, eye map, accessories map, and clothing map are fused to the fusion model after vertex adjustment to obtain the target model.
[0067] Optionally, fusing the auxiliary information into the fusion model to obtain the target model may further include: adjusting the vertex coordinates of the target mesh associated with the target expression in the fusion model according to the vertex displacement to obtain the target model. The disclosed embodiment adjusts the vertex coordinates of the target mesh through vertex displacement to obtain a target model with rich expressions.
[0068] Optionally, fusing the auxiliary information into a fusion model to obtain a target model may further include: fusing the lighting environment map into the fusion model to obtain a target model. The disclosed embodiment fuses the lighting environment map into the fusion model to obtain a target model with rich lighting effects.
[0069] Optionally, fusing the auxiliary information into the fusion model to obtain the target model may further include: fusing the texture map into the fusion model to obtain the target model. The disclosed embodiment fuses the texture map into the fusion model to obtain a target model with a different appearance.
[0070] The technical solution of the disclosed embodiment obtains a fusion model by fusing the model data of the candidate models, and then fuses at least one of the expression control information, illumination control information and texture information into the fusion model to obtain a target model. Since the fusion model is a three-dimensional model of the target object, the virtual three-dimensional model is generated by fusing the model data of the candidate models, which can solve the problem of low model creation efficiency caused by using the data of the target object in the real scene to create the model. Since the expression effect of the fusion model can be controlled by the expression control information, and the light and shadow effect of the fusion model can be controlled by the illumination control information, a target model with expression and light and shadow effects that meet expectations can be generated.
[0071] Figure 3 This is a flow chart of another data synthesis method provided by an embodiment of the present disclosure. Based on the above embodiments, the embodiment of the present disclosure additionally defines the model rendering step. Figure 3 As shown, the method includes:
[0072] S310: Acquire model data of candidate models in a preset three-dimensional model library, wherein the preset three-dimensional model library includes model data of three-dimensional models of target objects.
[0073] S320: Fusing the model data of the candidate models to obtain a fusion model.
[0074] S330, obtaining auxiliary information, where the auxiliary information includes at least one of expression control information, illumination control information, and texture control information, and fusing the auxiliary information into a fusion model to obtain a target model.
[0075] S340: Determine rendering parameters according to an expected rendering effect of the target model, render the target model according to the rendering parameters, and obtain a rendering effect diagram of the target model.
[0076] Among them, the rendering effect represents the orientation of the target model in the scene. Since different scenes have different requirements for the orientation of the target model, and it is usually not necessary to render all orientations of the target model, the camera parameters can be determined according to the orientation required by the scene. The rendering parameters include camera parameters. For example, the camera parameters include the camera position. After determining the rendering parameters, a rendering scene is constructed based on the rendering parameters, and the target model is rendered based on the rendering scene to obtain a rendering effect diagram of the target model.
[0077] S350: Input the rendering effect graph into a preset diffusion model to obtain a target effect graph generated by the preset diffusion model, wherein the target effect graph has a higher similarity to a target object in a real scene than the rendering effect graph.
[0078] The preset diffusion model is obtained by training based on pictures of target objects in real scenes.
[0079] Exemplarily, the rendering effect graph is input into a preset diffusion model, and the preset diffusion model is used to generate an image based on the rendering effect graph to obtain a target effect graph. Since the preset diffusion model is trained based on a three-dimensional face model in a real scene, the model learns the facial features in the real scene. Therefore, the target effect graph generated based on the preset diffusion model is more similar to the real face than the rendering effect graph. The target effect graph can be used in scenarios such as model training, data enhancement, privacy protection, new field exploration, cost reduction and testing. For model training scenarios, since target effect graphs with rich expressions and rich light and shadow can be generated, the training performance and accuracy can be improved by using the target effect graph training model.
[0080] S360, display the rendering effect of the target model.
[0081] Exemplarily, a rendering effect diagram of the target model is displayed through a display screen.
[0082] Figure 4 A flowchart of another data synthesis method provided by an embodiment of the present disclosure is shown as follows: Figure 4 As shown, the method includes: fusing the model data 401 of the parent model and the model data 402 of the mother model to obtain a child model 403. Fusing the model data 404 of the mutant model to the child model 403 to obtain a fused model 405. Fusing the expression control information to the fused model 405 to add a target expression 406 to the fused model 405. Fusing the skin map, eyebrow map, eyelash map, hair map, lighting environment map, eye map, accessories map and clothing map to the fused model after the expression is added by mapping. If it is a male, it is also necessary to fuse the beard map to the fused model after the expression is added to obtain a target model 407. Determine the camera parameters 408 according to the expected direction of the target model 407. Construct a rendering scene 409 based on the target model 407 and the camera parameters 408. Render the target model 407 based on the rendering scene 409 to obtain a rendering effect map 410. Input the rendering effect map 410 into the preset diffusion model 411 to obtain the target effect map 412 output by the preset diffusion model 411.
[0083] The technical solution of the disclosed embodiment determines rendering parameters for the expected rendering effect of the target model obtained by fusing the model data of the candidate model, and constructs a rendering scene based on the rendering parameters and the target model to perform rendering. Since the rendering operation is performed using the rendering parameters determined by the expected rendering effect, the effects that need to be rendered are reduced, and the waste of computing resources is avoided. In addition, after the rendering effect graph is generated, a target effect graph that is closer to the target object in the real scene is generated through a preset diffusion model, so that the controllability of the rendering effect graph is achieved and the realism of the image is increased.
[0084] Figure 5This is a schematic diagram of the structure of a data synthesis device provided in an embodiment of the present disclosure. The device can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server.
[0085] like Figure 5 As shown, the device includes: a data acquisition module 510, a fusion model 520 and a model generation module 530.
[0086] A data acquisition module 510 is used to acquire model data of a candidate model in a preset three-dimensional model library, wherein the preset three-dimensional model library includes model data of a three-dimensional model of a target object;
[0087] A fusion model 520, used to fuse the model data of the candidate models to obtain a fusion model;
[0088] The model generation module 530 is used to obtain auxiliary information, where the auxiliary information includes at least one of expression control information, illumination control information, and texture control information, and fuse the auxiliary information into a fusion model to obtain a target model.
[0089] Optionally, the data acquisition module 510 is specifically used for:
[0090] Displaying the three-dimensional model in the preset three-dimensional model library;
[0091] Acquire a configuration operation for the three-dimensional model, and determine the candidate model and a role attribute based on the configuration operation, wherein the role attribute indicates that the candidate model is a parent model, a mother model, or a mutant model;
[0092] The model data corresponding to the parent model, the mother model and the mutation model are respectively obtained from the preset three-dimensional model library.
[0093] Optionally, the fusion model 520 is specifically used for:
[0094] Acquire the fusion weight of the candidate model according to the role attribute of the candidate model;
[0095] Based on the fusion weight corresponding to the parent model and the fusion weight corresponding to the mother model, the model data corresponding to the parent model and the model data corresponding to the mother model are fused to obtain a child model;
[0096] Based on the fusion weight corresponding to the mutation model, the model data corresponding to the mutation model is fused to the sub-model to obtain a fusion model.
[0097] Optionally, the model generation module 530 includes:
[0098] An acquisition submodule, used to acquire vertex displacements of a target mesh associated with the fusion model and the target expression;
[0099] Get the lighting environment map and texture map in the preset material library.
[0100] Optionally, the model generation module 530 further includes:
[0101] The fusion submodule is used to adjust the vertex coordinates of the target mesh associated with the target expression in the fusion model according to the vertex displacement; and fuse the lighting environment map and the texture map into the vertex-adjusted fusion model to obtain the target model.
[0102] Optionally, the device further comprises
[0103] The model rendering module is used to determine rendering parameters according to the expected rendering effect of the target model after fusing the auxiliary information into the fusion model to obtain the target model, render the target model according to the rendering parameters, and display the rendering effect diagram of the target model.
[0104] Optionally, the device further comprises:
[0105] A generating module, used for inputting the rendering effect diagram of the target model into a preset diffusion model before displaying the rendering effect diagram, and obtaining a target rendering effect diagram generated by the preset diffusion model, wherein the target rendering effect diagram has a higher similarity to the target object in the real scene than the rendering effect diagram;
[0106] The preset diffusion model is obtained by training based on pictures of target objects in real scenes.
[0107] The data synthesis device provided in the embodiments of the present disclosure can execute the data synthesis method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0108] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0109] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 6 , which shows an electronic device (eg, Figure 6The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0110] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An edit / output (I / O) interface 605 is also connected to the bus 604.
[0111] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0112] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0113] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0114] The electronic device provided in the embodiment of the present disclosure and the data synthesis method provided in the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, reference can be made to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0115] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the data synthesis method provided by the above embodiments is implemented.
[0116] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0117] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0118] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0119] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0120] Acquire model data of candidate models in a preset three-dimensional model library, wherein the preset three-dimensional model library includes model data of three-dimensional models of target objects;
[0121] Fusing the model data of the candidate models to obtain a fusion model;
[0122] Auxiliary information is obtained, where the auxiliary information includes at least one of expression control information, illumination control information, and texture control information, and the auxiliary information is fused into a fusion model to obtain a target model.
[0123] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0124] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0125] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0126] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0127] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0128] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0129] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0130] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A data synthesis method, It is characterized in that include: Acquire model data of candidate models in a preset three-dimensional model library, wherein the preset three-dimensional model library includes model data of three-dimensional models of target objects; Fusing the model data of the candidate models to obtain a fusion model; Auxiliary information is obtained, where the auxiliary information includes at least one of expression control information, lighting control information, and texture information, and the auxiliary information is fused into a fusion model to obtain a target model.
2. The method according to claim 1, It is characterized in that The step of obtaining the model data of the candidate models in the preset three-dimensional model library includes: Displaying the three-dimensional model in the preset three-dimensional model library; Acquire a configuration operation for the three-dimensional model, and determine the candidate model and a role attribute based on the configuration operation, wherein the role attribute indicates that the candidate model is a parent model, a mother model, or a mutant model; The model data corresponding to the parent model, the mother model and the mutation model are respectively obtained from the preset three-dimensional model library.
3. The method according to claim 2, It is characterized in that The step of fusing the model data of the candidate models to obtain a fusion model includes: Acquire the fusion weight of the candidate model according to the role attribute of the candidate model; Based on the fusion weight corresponding to the parent model and the fusion weight corresponding to the mother model, the model data corresponding to the parent model and the model data corresponding to the mother model are fused to obtain a child model; Based on the fusion weight corresponding to the mutation model, the model data corresponding to the mutation model is fused to the sub-model to obtain a fusion model.
4. The method according to claim 1, It is characterized in that The obtaining of auxiliary information includes: Obtaining vertex displacements of a target mesh associated with the fusion model and a target expression; Get the lighting environment map and texture map in the preset material library.
5. The method according to claim 4, It is characterized in that The fusing the auxiliary information into the fusion model to obtain the target model includes: Adjusting vertex coordinates of a target mesh associated with a target expression in the fusion model according to the vertex displacement; The lighting environment map and the texture map are fused to the vertex-adjusted fusion model to obtain a target model.
6. The method according to claim 1, It is characterized in that After fusing the auxiliary information into the fusion model to obtain the target model, it also includes Determine rendering parameters according to the expected rendering effect of the target model, render the target model according to the rendering parameters, and display the rendering effect diagram of the target model.
7. The method according to claim 6, It is characterized in that Before showing the rendering of the target model, it also includes: Inputting the rendering effect graph into a preset diffusion model to obtain a target effect graph generated by the preset diffusion model, wherein the target effect graph has a higher similarity to a target object in a real scene than the rendering effect graph; The preset diffusion model is obtained by training based on pictures of target objects in real scenes.
8. A data synthesis device, It is characterized in that include: A data acquisition module, used to acquire model data of candidate models in a preset three-dimensional model library, wherein the preset three-dimensional model library includes model data of a three-dimensional model of a target object; A fusion model, used to fuse the model data of the candidate models to obtain a fusion model; The model generation module is used to obtain auxiliary information, where the auxiliary information includes at least one of expression control information, illumination control information, and texture control information, and fuse the auxiliary information into a fusion model to obtain a target model.
9. An electronic device, It is characterized in that The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the data synthesis method as described in any one of claims 1 to 7.
10. A storage medium containing computer executable instructions, It is characterized in that When the computer executable instructions are executed by a computer processor, they are used to perform the data synthesis method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the computer program implements the data synthesis method according to any one of claims 1 to 7.
