Data generation method, device, storage medium and electronic device
By renaming the original attribute parameter identifier in the DCC software to the new attribute parameter identifier and setting different parameter values for it, the problems of difficulty and high technical threshold in the existing technology are solved, and more efficient data generation is achieved.
Patent Information
- Application Number
- CN202111320539.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2041-11-09
AI Technical Summary
In the prior art, it is difficult to generate synthetic data by creating digital content DCC software, with high technical thresholds and low efficiency, and relevant personnel need to be familiar with complex script programming.
By rename the original attribute parameter identifier of the target project to the new attribute parameter identifier, set different parameter values for it, write to the specified format file, and send it to the rendering platform for rendering processing to generate diversified data.
It reduces the dependence on DCC software script programming, lowers the technical threshold, and allows relevant personnel to generate synthetic data easily and conveniently, improving the efficiency of data generation.
Smart Images

Figure CN114020254B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a data generation method, a data generation device, and a computer-readable storage medium and an electronic device for implementing the data generation method. Background Art
[0002] With the development of artificial intelligence (AI) technology, it is necessary to rely on diverse training data when training models in deep learning. However, it is extremely difficult to obtain the required training data from the real world. Therefore, synthetic data is currently used to generate training data.
[0003] In the related art, training data can usually be generated by using digital content creation (DCC) software to generate diverse synthetic data. Currently, DCC software usually generates diverse synthetic data based on scripts, which requires relevant personnel to be very familiar with the script programming of DCC software. The technical threshold is high, the synthetic data generation is difficult, and the efficiency is low. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a data generation method, a data generation device, and a computer-readable storage medium and an electronic device for implementing the data generation method.
[0005] In a first aspect, an embodiment of the present disclosure provides a data generation method, comprising:
[0006] renaming the original attribute parameter identifier of the target project to the corresponding new attribute parameter identifier; wherein the target project is a content creation project established in the digital content creation software;
[0007] Setting a plurality of different parameter values for the new attribute parameter identifier, and writing the new attribute parameter identifier and the corresponding plurality of parameter values into a first specified format file;
[0008] The first specified format file is sent to a rendering platform, so that the rendering platform generates corresponding multiple rendering result data based on the multiple parameter values.
[0009] Optionally, in an embodiment of the present disclosure, renaming the original attribute parameter identifier of the target project to the corresponding new attribute parameter identifier includes:
[0010] Displaying a parameter naming interface in a user interface of the digital content creation software;
[0011] Displaying the original attribute parameter identifier in the parameter naming interface;
[0012] In response to an input operation in the parameter naming interface, the original attribute parameter identifier is renamed to a corresponding new attribute parameter identifier.
[0013] Optionally, in one embodiment of the present disclosure, the parameter naming interface includes a first input area, a second input area, and a write control;
[0014] The displaying of the original attribute parameter identifier in the parameter naming interface includes:
[0015] In response to a selection operation on the original attribute parameter identifier displayed in the user interface, displaying the original attribute parameter identifier in the first input area;
[0016] The step of renaming the original attribute parameter identifier to a corresponding new attribute parameter identifier in response to an input operation in the parameter naming interface includes:
[0017] Receive a new attribute parameter identifier input from the second input area;
[0018] In response to an input operation on the write control, the original attribute parameter identifier is renamed as the new attribute parameter identifier.
[0019] Optionally, in one embodiment of the present disclosure, the method further includes:
[0020] Detecting whether the input information in the first input area and the second input area is empty;
[0021] If so, a prompt message is displayed, instructing to re-enter the attribute parameter identifier.
[0022] Optionally, in an embodiment of the present disclosure, before setting a plurality of different parameter values for the new attribute parameter identifier, the method further includes:
[0023] Mapping and associating the original attribute parameter identifier with the new attribute parameter identifier and writing them into a second specified format file;
[0024] The step of setting different multiple parameter values for the new attribute parameter identifier and writing the new attribute parameter identifier and the corresponding multiple parameter values into a first specified format file includes:
[0025] executing a specified program to read the new attribute parameter identifier from the second specified format file, set multiple different parameter values for the new attribute parameter identifier, and write the new attribute parameter identifier and the corresponding multiple parameter values into the first specified format file;
[0026] The specified program is a program written in a programming language capable of outputting data in a first specified format.
[0027] Optionally, in an embodiment of the present disclosure, the first specified format file and the second specified format file are both JSON format files, and the first specified format includes the JSON format.
[0028] Optionally, in one embodiment of the present disclosure, the method further includes:
[0029] Display the data submission interface;
[0030] In response to an input operation in the data submission interface, determining a rendering platform parameter and a rendering object parameter, wherein the rendering object parameter is a rendering parameter of a target object in the content corresponding to the target project;
[0031] Generate a rendering project file based on the rendering object parameters and the first specified format file;
[0032] The rendering project file is sent to the rendering platform indicated by the rendering platform parameter, so that the rendering platform indicated by the rendering platform parameter generates rendering result data based on the rendering project file.
[0033] Optionally, in an embodiment of the present disclosure, the rendering object parameters include rendering start frame image parameters of the target object, and the generating of the rendering project file based on the rendering object parameters and the first specified format file includes:
[0034] Obtain multiple parameter values corresponding to the new attribute parameter identifier in the first specified format file;
[0035] Based on the rendering start frame image parameters, obtaining corresponding multiple frame images;
[0036] One of the parameter values is configured for each frame of the image to generate a rendering project file.
[0037] Optionally, in an embodiment of the present disclosure, the original attribute parameter identifier includes one or more corresponding parameter identifiers of the camera, the light, and the attributes of the target object.
[0038] Optionally, in one embodiment of the present disclosure, the method further includes:
[0039] Acquire the rendering result data from the rendering platform;
[0040] The rendering result data is stored in a local file.
[0041] In a second aspect, an embodiment of the present disclosure provides a data generating device, including:
[0042] A naming module, used to rename the original attribute parameter identifier of the target project to the corresponding new attribute parameter identifier; wherein the target project is a content creation project established in the digital content creation software;
[0043] A setting module, used for setting different multiple parameter values for the new attribute parameter identifier, and writing the new attribute parameter identifier and the corresponding multiple parameter values into a first specified format file;
[0044] The sending module is used to send the first specified format file to the rendering platform, so that the rendering platform generates corresponding multiple rendering result data based on the multiple parameter values.
[0045] In a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the data generation method described in any of the above embodiments.
[0046] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including:
[0047] Processor; and
[0048] Memory for storing computer programs;
[0049] The processor is configured to execute the steps of the data generation method described in any of the above embodiments by executing the computer program.
[0050] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0051] The data generation method, device, medium and electronic device provided by the disclosed embodiment rename the original attribute parameter identifier of the target project to the corresponding new attribute parameter identifier, and the target project is a content creation project established in the digital content creation software; set different multiple parameter values for the new attribute parameter identifier, and write the new attribute parameter identifier and the corresponding multiple parameter values into a first specified format file, and send the first specified format file to the rendering platform, so that the rendering platform generates corresponding multiple rendering result data based on the multiple parameter values. In this way, in this embodiment, the obscure original attribute parameter identifier of the target project established in the digital content creation DCC software is renamed to the corresponding new attribute parameter identifier, and then different multiple parameter values are set for the new attribute parameter identifier and written into the specified format file and submitted to the rendering platform for rendering processing to generate diversified data. In this way, relevant personnel no longer need to be familiar with the script programming of the DCC software, that is, there is no need to realize data generation through the script programming of the difficult DCC software, and data generation can be realized based on other general programming technologies, so the technical threshold is reduced, and relevant personnel can simply and conveniently generate synthetic data, which improves the efficiency of synthetic data generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0054] Figure 1 This is a flow chart of the data generation method according to an embodiment of the present disclosure;
[0055] Figure 2 This is a flow chart of a data generation method according to another embodiment of the present disclosure;
[0056] Figure 3 A schematic diagram of a user interface of a digital content creation software according to an embodiment of the present disclosure;
[0057] Figure 4 This is a flow chart of a data generation method according to another embodiment of the present disclosure;
[0058] Figure 5 This is a flow chart of a data generation method according to another embodiment of the present disclosure;
[0059] Figure 6 This is a schematic diagram of the data submission interface of the embodiment of the present disclosure;
[0060] Figure 7 This is a schematic diagram of a data generating device according to an embodiment of the present disclosure;
[0061] Figure 8 A schematic diagram of an electronic device for implementing a data generation method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0062] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0063] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0064] It should be understood that, in the following, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0065] Figure 1 The data generation method of the embodiment of the present disclosure is a flow chart. The data generation method can be executed by an electronic device such as a computer, and includes the following steps:
[0066] Step S101: renaming the original attribute parameter identifier of the target project into the corresponding new attribute parameter identifier; wherein the target project is a content creation project established in the digital content creation software;
[0067] Exemplarily, digital content creation DCC software may include but is not limited to Maya, Blender, Houdini, 3dsMax, UE4, C4D, etc. The application scope of DCC software includes but is not limited to two-dimensional / three-dimensional animation, audio / video editing and synthesis, DVD creation, dynamic / interactive content creation, etc. The target project may be a content creation project established by DCC software, such as an animation content creation project. Taking Maya software as an example, the original attribute parameter identifier may be the original attribute parameter name of the target project. By configuring the parameter value corresponding to an original attribute parameter name, the corresponding animation content, such as changing the size of the mouth opening of the animated character, the size of the eyes, the pitch angle of the head, the left and right rotation angle of the head, the material, texture, brightness of the face, and the color of the hair, etc., can be understood with reference to the prior art.
[0068] For example, the original attribute parameter name such as "Genesis8FemaleEyelashesFBXASC046Shape_FACS_51.mouthUpperUp Left" is a real attribute name in Maya, which is generally obscure and difficult to understand. In this embodiment, for example, the above-mentioned real original attribute parameter name in Maya is renamed to the corresponding new attribute parameter identifier, such as the new attribute parameter name is "noseSneer_R_eyelashes".
[0069] It is understandable that in this embodiment, one or more different original attribute parameter identifiers such as parameter names of the target project can be renamed to corresponding new attribute parameter identifiers such as parameter names. The new attribute parameter names corresponding to each original attribute parameter name can be different, and the new attribute parameter names can be customized, without limitation.
[0070] Step S102: setting a plurality of different parameter values for the new attribute parameter identifier, and writing the new attribute parameter identifier and the corresponding plurality of parameter values into a first specified format file.
[0071] For example, for the new attribute parameter name "noseSneer_R_eyelashes", different multiple parameter values such as X1 to X n , X1~X n Then set the new attribute parameter name "noseSneer_R_eyelashes" and the corresponding multiple parameter values such as X1~X n Write a first specified format file. Exemplarily, the first specified format file may be a JSON format file, but is not limited thereto.
[0072] Step S103: sending the first specified format file to a rendering platform, so that the rendering platform generates corresponding multiple rendering result data based on the multiple parameter values.
[0073] Exemplarily, the rendering platform can be a local rendering platform, that is, a self-built rendering platform, or an external rendering platform, that is, a third-party rendering platform such as a render farm. The rendering platform can be specifically understood by referring to the prior art, and is not limited in this embodiment. After the first specified format file is sent to the rendering platform, the rendering platform performs rendering processing to obtain rendering result data, such as each parameter value such as X1~X n A corresponding rendered image is obtained.
[0074] By giving an alias to the attribute parameter name of the target project in the DCC software, that is, setting a new attribute parameter name, and then writing a parameter file such as a JSON file with the new attribute parameter name and corresponding different parameter values, and then rendering and processing to generate a variety of rendering data corresponding to an attribute parameter name of the target project, a more general way of writing a JSON file can be used to achieve the purpose of controlling parameter diversification, thereby obtaining diversified generated data, which greatly reduces the technical threshold for data generation and production.
[0075] In this embodiment, the obscure original attribute parameter identifier of the target project established in the DCC software is renamed to a corresponding new attribute parameter identifier, and then different multiple parameter values are set for the new attribute parameter identifier and written into a specified format file and submitted to the rendering platform for rendering processing to generate diversified data. In this way, relevant personnel no longer need to be familiar with the script programming of the DCC software, that is, there is no need to realize data generation through the script programming of the difficult DCC software, and data generation can be realized based on other general programming technologies. Therefore, the technical threshold is lowered, and relevant personnel can simply and conveniently generate synthetic data, thereby improving the efficiency of synthetic data generation.
[0076] Optionally, based on the above embodiment, in one embodiment of the present disclosure, Figure 2 As shown, in step S101, the original attribute parameter identifier of the target project is renamed to the corresponding new attribute parameter identifier, which may specifically include the following steps:
[0077] Step S201: displaying a parameter naming interface in the user interface of the digital content creation software.
[0078] Exemplary, combined Figure 3As shown in the figure, the parameter naming interface 31 is displayed in the DCC software user interface 32. In one example, the parameter naming interface 31 is displayed in response to a trigger operation of the user, and the trigger operation may be clicking a specified control (not shown) configured in the DCC software user interface 32, or inputting preset information such as instruction information, etc., which is not limited.
[0079] Step S202: displaying the original attribute parameter identifier in the parameter naming interface.
[0080] Exemplarily, the parameter naming interface 31 may include a first input area 311, a second input area 312, and a write control 313. The first input area 311 and the second input area 312 may be text input boxes, but are not limited thereto. Accordingly, step S202 may specifically include: in response to a selection operation such as a click operation of a cursor 321 on an original attribute parameter identifier such as "attribute parameter name A" displayed in the DCC software user interface 32, displaying the original attribute parameter identifier such as "attribute parameter name A" in the first input area 311.
[0081] Step S203: in response to the input operation in the parameter naming interface, rename the original attribute parameter identifier to a corresponding new attribute parameter identifier.
[0082] In one example, a new attribute parameter identifier such as "attribute parameter name a" is received from the second input area 312, and in response to an input operation on the write control 313 such as a click operation after the cursor 321 moves to the write control 313, the original attribute parameter identifier such as "attribute parameter name A" is renamed to a new attribute parameter identifier such as "attribute parameter name a". Steps S102 and S103 are continued after step S203.
[0083] In this embodiment, the original attribute parameter identifier is renamed in a visual way through the parameter naming interface, which can facilitate the operation of relevant personnel and reduce the technical threshold, so that relevant personnel can generate synthetic data simply and conveniently, thereby improving the efficiency of synthetic data generation.
[0084] Optionally, based on the above embodiment, Figure 3 As shown, in one embodiment of the present disclosure, the method may further include the following steps:
[0085] Step a): Detect whether the input information in the first input area 311 and the second input area 312 is empty.
[0086] Exemplarily, it is to detect whether the attribute parameter name is actually entered in the first input area 311 and the second input area 312, such as whether "attribute parameter name A" is actually entered in the first input area 311, and whether "attribute parameter name a" is actually entered in the second input area 312. The first input area 311 and the second input area 312 cannot be empty.
[0087] Step b): If yes, a prompt message is displayed, wherein the prompt message instructs the user to re-enter the attribute parameter identifier.
[0088] Exemplarily, the prompt information may be text prompt information, but is not limited thereto. When the input information in the first input area 311 and the second input area 312 is empty, prompt information such as text prompt information is displayed to instruct the user to re-enter the corresponding attribute parameter name.
[0089] Optionally, based on any of the above embodiments, in one embodiment of the present disclosure, Figure 4 As shown in , before setting different multiple parameter values for the new attribute parameter identifier in the above step S102, the method may further include the following steps:
[0090] Step S401: mapping and associating the original attribute parameter identifier with the new attribute parameter identifier and writing them into a second specified format file.
[0091] Exemplarily, the original attribute parameter name is mapped and associated with the renamed new attribute parameter name and then written into a second specified format file such as a second JSON format file. For example, the JSON format file is named paraMap.json, which stores the mapping relationship of the renamed and modified parameter names, such as "noseSneer_R_eyelashes" is the new attribute parameter name exposed externally, and "Genesis8FemaleEyelashesFBXASC046Shape_FACS_51.mouthUpperU pLeft" is the corresponding original attribute parameter name in Maya.
[0092] Step S102 may specifically include step S102': executing a specified program to read the new attribute parameter identifier from the second specified format file, setting different multiple parameter values for the new attribute parameter identifier, and writing the new attribute parameter identifier and the corresponding multiple parameter values into the first specified format file; wherein the specified program is a program written in a programming language that can output data in the first specified format.
[0093] Exemplarily, both the first specified format file and the second specified format file are JSON format files, and the first specified format includes JSON format. The specified program may be, but is not limited to, a program written in Python, and any programming language that can output data in JSON format. Execute a specified program such as a program written in Python to read a new attribute parameter name from the second JSON format file, set different multiple parameter values for the new attribute parameter name, such as multiple parameter values at different times, and write the new attribute parameter name and the corresponding multiple parameter values into the first JSON format file. After step S102, continue to execute step S103.
[0094] Python is currently widely used and has a lower technical threshold. A program written in Python reads the new attribute parameter name from the second JSON format file, sets different multiple parameter values for the new attribute parameter name, and writes the new attribute parameter name and the corresponding multiple parameter values into the first JSON format file. This can further lower the technical threshold, and relevant personnel can generate synthetic data more simply and conveniently, further improving the efficiency of synthetic data generation.
[0095] Optionally, based on any of the above embodiments, in one embodiment of the present disclosure, Figure 5 As shown in , the method may also include the following steps:
[0096] Step S501: Display the data submission interface.
[0097] In one example, before step S103, after step S102 or step S102′, the following may be displayed: Figure 6 The data submission interface 60 is schematically shown in FIG. Figure 6 As shown, the data submission interface 60 may include a data generation project display area 611, in which data generation projects such as "AI makeup", "virtual expression" and "hair highlighting" are displayed. When the area "hair highlighting" is selected, such as when the cursor 621 clicks, the display image corresponding to the currently selected data generation project such as "hair highlighting" is displayed in the preview area 612.
[0098] Step S502: In response to the input operation in the data submission interface, determining rendering platform parameters and rendering object parameters, wherein the rendering object parameters are rendering parameters of the target object in the content corresponding to the target project.
[0099] Exemplarily, the data submission interface 60 may also include a first input box 615, a second input box 616, and a check box 619 for setting rendering platform parameters. The rendering platform parameters may include the region parameter of the rendering platform, the type parameter of the renderer, and whether to use an external rendering platform such as a rendering farm. Among them, the region parameter of the rendering platform is input by the first input box 615, for example, input "Shenzhen", indicating that the rendering platform is located in Shenzhen. The type parameter of the renderer is input by the second input box 616, for example, input "Arnold", indicating that the Arnold renderer is selected, or input "Redshift", indicating that the Redshift renderer is selected, etc. When an external rendering platform such as a rendering farm needs to be used, it can be checked in the check box 619.
[0100] The data submission interface 60 may also include a third input box 613 and a fourth input box 614 for setting rendering object parameters. The rendering object parameters are rendering parameters of the target object such as the hair of a person in the content corresponding to the target project, such as the animation content, for example, rendering parameters of highlighted hair. Exemplarily, the rendering object parameters may include but are not limited to the rendering start frame image parameters of the target object such as the hair of a person. For example, if the content corresponding to the target project, such as the 1st to 50th frames of the animation content, is to be rendered, the rendering start frame image parameters are 1 and 50, where 1 is input into the third input box 613 and 50 is input into the fourth input box 614.
[0101] In addition, after the above rendering platform parameters and rendering object parameters are input and confirmed, the storage location where the first specified format file, such as the first JOSN format file, is previously stored is found by clicking the "browse" control 618, and the storage path information corresponding to the storage location is automatically input into the fifth input box 617. Afterwards, the above parameters are submitted by clicking the "submit" control 620.
[0102] Step S503: generating a rendering project file based on the rendering object parameters and the first specified format file.
[0103] Exemplarily, the rendering object parameters such as the rendering start frame image parameters are 1 and 50, and the first specified format file such as the first JOSN format file is pulled through the storage path information in the fifth input box 617. Then, a rendering project file is generated based on the rendering object parameters and the first JOSN format file.
[0104] Optionally, in an embodiment of the present disclosure, generating a rendering project file based on the rendering object parameters and a first specified format file such as a first JOSN format file in step S503 may specifically include the following steps:
[0105] Step i): Acquire multiple parameter values corresponding to the new attribute parameter identifier in the first specified format file. Exemplarily, for example, read multiple parameter values corresponding to a new attribute parameter name in the first JOSN format file.
[0106] Step ii): Based on the rendering start frame image parameters, corresponding multiple frames of images are obtained. For example, the 1st to 50th frames of images are obtained.
[0107] Step iii): configuring one of the parameter values for each frame of the image to generate a rendering engineering file.
[0108] In a specific example, if the original attribute parameter name corresponding to the new attribute parameter name is "camera", a parameter value is configured for each frame image according to multiple parameter values corresponding to the new attribute parameter name corresponding to "camera" to generate a rendering project file.
[0109] As an example, in the above-mentioned 1st to 50th frames of images, a parameter value is configured for each frame, and different parameter values represent the camera position of a frame of image. For example, the parameter values of the first frame of image, such as the camera position information, are as follows: {"yaw":50,"pitch":60,"roll":70}, then in the first frame of image, the camera is placed at a position where the yaw value is 50, the pich value is 60, and the roll value is 70. Among them, yaw represents rotation around the Y axis, pitch represents rotation around the X axis, and roll represents rotation around the Z axis. Through this setting, the camera position corresponding to each frame of image is different, that is, the pitch and left and right rotation angles of each frame of image are different.
[0110] It is understandable that, in addition to the camera, corresponding settings can also be made for other original attribute parameter names such as lighting, target object attributes (such as hair style, color, etc.), and target object attributes such as facial expressions, so as to generate corresponding other rendering project files.
[0111] Step S504: sending the rendering project file to the rendering platform indicated by the rendering platform parameter, so that the rendering platform indicated by the rendering platform parameter generates rendering result data based on the rendering project file.
[0112] Exemplarily, after obtaining the rendering engineering file corresponding to the camera, the rendering engineering file is sent to the rendering platform indicated by the rendering platform parameter previously determined through the data submission interface 60, such as a rendering farm. Different rendering platform parameters correspond to different rendering platforms, such as different types of renderers on the rendering platform, different regions where the rendering platform is located, etc. These can be set according to the needs of the rendering task, and this is not limited in this embodiment. The rendering platform, such as a rendering farm, then performs rendering processing to generate rendering result data, such as a rendered image corresponding to each frame of the image.
[0113] It should be noted that the current rendering farms are all provided by third parties, that is, external rendering platforms, such as RenderBus, Xuanyun, Play Home, RenderG, ThinkBox Deadline, etc. The current rendering farms cannot interact directly with DCC software. It is necessary to install the client corresponding to the rendering farm and submit the above-mentioned rendering project files based on the client, which causes some inconvenience. Therefore, in some embodiments, a specified application programming interface API (Application Programming Interface) can be configured on the external rendering platform to achieve interaction with the DCC software, so that the above-mentioned rendering project files can be directly submitted to the external rendering platform in the DCC software, simplifying the operation.
[0114] Optionally, based on any of the above embodiments, in another embodiment of the present disclosure, the method may further include: acquiring the rendering result data from the rendering platform; and storing the rendering result data in a local file.
[0115] Exemplarily, a data acquisition request can be generated through user operation in the DCC software, the data acquisition request can be sent to an external rendering platform such as a rendering farm, the rendering result data sent by the external rendering platform in response to the data acquisition request can be received, and written into a local file for standby use.
[0116] It should be noted that, although the steps of the method in the present disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc. In addition, it is also easy to understand that these steps may be, for example, executed synchronously or asynchronously in multiple modules / processes / threads.
[0117] The present disclosure also provides a data generating device, such as Figure 7 The data generating device shown comprises:
[0118] A naming module 701 is used to rename the original attribute parameter identifier of the target project to a corresponding new attribute parameter identifier; wherein the target project is a content creation project established in the digital content creation software;
[0119] A setting module 702, configured to set different multiple parameter values for the new attribute parameter identifier, and write the new attribute parameter identifier and the corresponding multiple parameter values into a first specified format file;
[0120] The sending module 703 is used to send the first specified format file to the rendering platform, so that the rendering platform generates corresponding multiple rendering result data based on the multiple parameter values.
[0121] Optionally, in one embodiment of the present disclosure, the naming module 701 is used to: display a parameter naming interface in the user interface of the digital content creation software; display the original attribute parameter identifier in the parameter naming interface; and rename the original attribute parameter identifier to a corresponding new attribute parameter identifier in response to an input operation in the parameter naming interface.
[0122] Optionally, in an embodiment of the present disclosure, the parameter naming interface includes a first input area, a second input area, and a write control. The naming module 701 is used to, in response to a selection operation on the original attribute parameter identifier displayed in the user interface, display the original attribute parameter identifier in the first input area; receive a new attribute parameter identifier input in the second input area; and in response to an input operation on the write control, rename the original attribute parameter identifier to the new attribute parameter identifier.
[0123] Optionally, in an embodiment of the present disclosure, the naming module 701 is further used to detect whether the input information in the first input area and the second input area is empty; if so, a prompt message is displayed, and the prompt message indicates to re-enter the attribute parameter identifier.
[0124] Optionally, in one embodiment of the present disclosure, the device may further include a writing module, which is used to write the mapping association between the original attribute parameter identifier and the new attribute parameter identifier into a second specified format file before the setting module 702 sets different multiple parameter values for the new attribute parameter identifier. Accordingly, the setting module 702 is used to: execute a specified program to read the new attribute parameter identifier from the second specified format file, set different multiple parameter values for the new attribute parameter identifier, and write the new attribute parameter identifier and the corresponding multiple parameter values into the first specified format file. The specified program is a program written in a programming language capable of outputting data in the first specified format.
[0125] Optionally, in an embodiment of the present disclosure, the first specified format file and the second specified format file are both JSON format files, and the first specified format includes the JSON format.
[0126] Optionally, in one embodiment of the present disclosure, the device may further include a data submission module and a data processing module, wherein the data submission module is used to display a data submission interface; in response to an input operation in the data submission interface, the rendering platform parameters and the rendering object parameters are determined, and the rendering object parameters are the rendering parameters of the target object in the content corresponding to the target project. The data processing module is used to generate a rendering project file based on the rendering object parameters and the first specified format file. The sending module 703 is also used to send the rendering project file to the rendering platform indicated by the rendering platform parameters, so that the rendering platform indicated by the rendering platform parameters generates rendering result data based on the rendering of the rendering project file.
[0127] Optionally, in one embodiment of the present disclosure, the rendering object parameters include the rendering start frame image parameters of the target object, and the data processing module is used to: obtain multiple parameter values corresponding to the new attribute parameter identifier in the first specified format file; based on the rendering start frame image parameters, obtain the corresponding multiple frames of images; configure one of the parameter values for each frame of the image to generate a rendering project file.
[0128] Optionally, in an embodiment of the present disclosure, the original attribute parameter identifier includes one or more corresponding parameter identifiers of the camera, the light, and the attributes of the target object.
[0129] Optionally, in an embodiment of the present disclosure, the device may further include a data acquisition module, configured to acquire the rendering result data from the rendering platform; and store the rendering result data in a local file.
[0130] Regarding the device in the above embodiment, the specific manner in which each module performs operations and the corresponding technical effects brought about have been described in detail in the embodiment of the method, and will not be elaborated here.
[0131] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units for concretization. The components displayed as modules or units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed scheme. Those of ordinary skill in the art can understand and implement it without paying creative work.
[0132] The embodiments of the present disclosure further provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the data generating method described in any one of the above embodiments are implemented.
[0133] Exemplarily, the 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 thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable 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 thereof.
[0134] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a 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 readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0135] The present disclosure also provides an electronic device, such as Figure 8 The electronic device shown includes a processor 801 and a memory 802, wherein the memory 802 is used to store a computer program. The processor 801 is configured to execute the steps of the data generation method in any of the above embodiments by executing the computer program.
[0136] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above data generation method according to the implementation of the present disclosure.
[0137] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0138] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data generation method, characterized in that: The method comprises: renaming the original attribute parameter identifier of the target project to the corresponding new attribute parameter identifier; wherein the target project is a content creation project established in the digital content creation software; Setting different multiple parameter values for the new attribute parameter identifier, and writing the new attribute parameter identifier and the corresponding multiple parameter values into a first specified format file; the first specified format file includes a JSON format file; Sending the first specified format file to a rendering platform, so that the rendering platform generates corresponding multiple rendering result data based on the multiple parameter values; The renaming of the original attribute parameter identifier of the target project to the corresponding new attribute parameter identifier includes: Displaying a parameter naming interface in a user interface of the digital content creation software; Displaying the original attribute parameter identifier in the parameter naming interface; In response to an input operation in the parameter naming interface, the original attribute parameter identifier is renamed to a corresponding new attribute parameter identifier.
2. The method according to claim 1, characterized in that The parameter naming interface includes a first input area, a second input area and a write control; The displaying of the original attribute parameter identifier in the parameter naming interface includes: In response to a selection operation on the original attribute parameter identifier displayed in the user interface, displaying the original attribute parameter identifier in the first input area; The step of renaming the original attribute parameter identifier to a corresponding new attribute parameter identifier in response to an input operation in the parameter naming interface includes: Receive a new attribute parameter identifier input from the second input area; In response to an input operation on the write control, the original attribute parameter identifier is renamed as the new attribute parameter identifier.
3. The method according to claim 2, characterized in that The method further comprises: Detecting whether the input information in the first input area and the second input area is empty; If so, a prompt message is displayed, instructing to re-enter the attribute parameter identifier.
4. The method according to claim 1, characterized in that: Before setting a plurality of different parameter values for the new attribute parameter identifier, the method further includes: Mapping and associating the original attribute parameter identifier with the new attribute parameter identifier and writing them into a second specified format file; The step of setting different multiple parameter values for the new attribute parameter identifier and writing the new attribute parameter identifier and the corresponding multiple parameter values into a first specified format file includes: executing a specified program to read the new attribute parameter identifier from the second specified format file, set multiple different parameter values for the new attribute parameter identifier, and write the new attribute parameter identifier and the corresponding multiple parameter values into the first specified format file; The specified program is a program written in a programming language capable of outputting data in a first specified format.
5. The method according to claim 4, characterized in that The first specified format file and the second specified format file are both JSON format files, and the first specified format includes the JSON format.
6. The method according to claim 1, characterized in that The method further comprises: Display the data submission interface; In response to an input operation in the data submission interface, determining a rendering platform parameter and a rendering object parameter, wherein the rendering object parameter is a rendering parameter of a target object in the content corresponding to the target project; Generate a rendering project file based on the rendering object parameters and the first specified format file; The rendering project file is sent to the rendering platform indicated by the rendering platform parameter, so that the rendering platform indicated by the rendering platform parameter generates rendering result data based on the rendering project file.
7. The method according to claim 6, characterized in that The rendering object parameters include rendering start frame image parameters of the target object, and the generating of the rendering project file based on the rendering object parameters and the first specified format file includes: Obtain multiple parameter values corresponding to the new attribute parameter identifier in the first specified format file; Based on the rendering start frame image parameters, obtaining corresponding multiple frame images; One of the parameter values is configured for each frame of the image to generate a rendering project file.
8. The method according to claim 6 or 7, characterized in that: The original attribute parameter identifier includes one or more corresponding parameter identifiers of the camera, the light, and the attributes of the target object.
9. The method according to claim 6 or 7, characterized in that: The method further comprises: Acquire the rendering result data from the rendering platform; The rendering result data is stored in a local file.
10. A data generating device, characterized in that: include: A naming module, used to rename the original attribute parameter identifier of the target project to the corresponding new attribute parameter identifier; wherein the target project is a content creation project established in the digital content creation software; A setting module, used for setting different multiple parameter values for the new attribute parameter identifier, and writing the new attribute parameter identifier and the corresponding multiple parameter values into a first specified format file; the first specified format file includes a JSON format file; A sending module, used for sending the first specified format file to a rendering platform, so that the rendering platform generates corresponding multiple rendering result data based on the multiple parameter values; The renaming of the original attribute parameter identifier of the target project to the corresponding new attribute parameter identifier includes: Displaying a parameter naming interface in a user interface of the digital content creation software; Displaying the original attribute parameter identifier in the parameter naming interface; In response to an input operation in the parameter naming interface, the original attribute parameter identifier is renamed to a corresponding new attribute parameter identifier.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data generation method according to any one of claims 1 to 9 are implemented.
12. An electronic device, characterized in that: include: processor; as well as Memory for storing computer programs; Wherein, the processor is configured to perform the steps of the data generation method according to any one of claims 1 to 9 by executing the computer program.
Citation Information
Patent Citations
Component-based page rendering method and device, computer equipment and storage medium
CN111443912A
Page rendering method and device, electronic equipment and storage medium
CN113051015A