Patent information
IP India · live recordAbstract
Abstract A control unit for generating multiple scene images using a large language model (LLM). The control unit 10 receives a text prompt for a scene image and a set of attributes 14(a) defined for the scene image and maps each of the attribute value to a corresponding predefined range of values listed in a mapping table, before providing it as an input to the LLM 12, such that, each attribute value is mapped to a predefined value. The control unit 10 extracts an information for specific attributes 14(a) present in the text prompt 12 and captures the values of the specific attributes 14(a) from the mapping table for generating the plurality of scene image variations. The control unit 10 converts the scene image variations into plurality of JSON files and transmit the converted plurality of JSON files to an image generation module 16. The control unit 10 then, generates multiple scene images from the received plurality of JSON files using a rendering technique in the image generation module 16.
Applicants
2Inventors
3Specification
Show full textCollapse
Description:Complete Specification:
The following specification describes and ascertains the nature of this invention and the manner in which it is to be performed. Field of the invention
[0001] The invention is related to a control unit for generating multiple scene image generations using a large language model (LLM) and the method thereof.
Background of the invention
[0002]An image of a particular scene of interest is synthesized by various traditional rendering tools such as Blender, Unreal Engine, Unity by creating virtual scene and rendering an image out of it. Same image generation can be semi-automated by describing the scene variations in a mark-up language, so that one can have more than one variation of the same scene. An image of a scene can be generated by manually writing scene descriptions in JSON (Java script Object Notation) format that acts as input to in-house proprietary tool containing specific key-value pairs for the image and being fed to the tool. The scene image generation can be automated using the vision-language models like DALL-E, CLIP by giving text prompts of the image .
Brief description of the accompanying drawings
[0003] Figure 1 illustrates a control unit for generating multiple scene images using a large language model (LLM), , in accordance with an embodiment of the invention; and
[0004] Figure 2 illustrates a flowchart of a method of generating multiple scene images using a large language model (LLM) in a control unit in accordance with the present invention.
Detailed description of the embodiments
[0005] Figure 1 illustrates a control unit for generating multiple scene images using a large language model (LLM) according to one embodiment of the invention. The control unit 10 receives a text prompt for a scene image and a set of attributes 14(a) defined for the scene image and maps each of the attribute value to a corresponding predefined range of values listed in a mapping table, before providing it as an input to the LLM 12, such that, each attribute value is mapped to a predefined value.
[0006] The control unit 10 extracts an information for specific attributes 14(a)present in the text prompt 14 and captures the values of the specific attributes 14(a) from the mapping table for generating the plurality of scene image variations. The control unit 10 converts the scene image variations into plurality of JSON (java script object notation) files and transmit the converted plurality of JSON files to an image generation module 16. The control unit 10 then, generates multiple scene images from the received plurality of JSON files using a rendering technique in the image generation module 16. The Image generation module 16 receives generated/produced JSON files from control unit 10 that comprises a three -dimensional (3D) scene arrangment and this scene is varied based on received JSON files. The image generation module 16 finally renders the scene and send back the images for each JSON variety.
[0007] Further the construction of the control unit 10 and the components involved in the control unit 10 during the scene image generation. The control unit 10 is an operating device that is used to process and to store the information received from atleast one source. The control unit 10 is chosen from a group of control units comprising microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuitries, one or more microchips or integrated circuits interconnected using a parent board, hardwired logic, software stored by a memory device and executed by a microprocessor, firmware, an application specific integrated circuit (ASIC), and/or a field programmable gate array(FPGA), and/or any component that operates on signals based on operational instructions. It is to be noted that, the control unit can be of any other kind, but not limited to the above-mentioned devices which are known to a person skilled in the art.
[0008] The control unit 10 receives multiple elements as input, one being the text prompt 12, other being the set of attributes 14(a) related to the text prompt 12 and yet another being a structure of a JSON file. These inputs are provided by the user, wherein the user herein is an original equipment manufacturer (OEM). The OEM provides the structure 14(b) of an output JSON file as an input along with the text prompt 14 and the set of attributes 14(a). For instance, the text prompt 14 can be “A white female with straight hair with a backpack” and the set of attributes 14(a) related to the text prompt 14 can be Gender,BodyShape,HeadIndex,SkinTextureIndex,SkinTextureModifierIndex,HairIndex,EyebrowIndex,Beard,HairColor,OutfitIndex,PatternOption,PatternColor, Accessory Index, ScaleFactor. However, it is to be understood that, the attributes in the set can be different based on the requirement from the user.
[0009]Each of the attribute 14(a) has given a value and a pre-defined range , which is stored in a memory 18 of the control unit 10. All the attributes 14(a) and their pre-defined ranges are referred as the mapping table according to the present invention. For instance, the structure provided by the user is in the form of the below format, having a defined attribute value and the corresponding predefined range.
{ "Gender": "A", // Options: A, B "Body Shape": "Overweight", // Options: Overweight, Underweight, Normal weight "Head Index": 0, // Range: 0 to 5 "SkinTextureIndex": 0, // Range: 0 to 5 "SkinTextureModifierIndex": 0,// Range: 0 to 35 "HairIndex": 0, // Range: 0 to 4 "EyebrowIndex": 0, // Range: 0 to 5 "Beard": 0, // Range: 0 to 2 "HairColor": 0, // Range: 0 to 7 "OutfitIndex": 0, // Range: 0 to 10 "PatternOption": 0, // Range: 0 to 15 "PatternColor": 0, // Range: 0 to 3 "AccessoryIndex": 1, // Range: 1 to 11 "ScaleFactor": 0 // Range: 0 to 3 }.
[0010] The structure 14(b) comprising the attributes and the corresponding values, and their pre-defined ranges are represented in the form of a JSON file. The structure of the output JSON file comprises multiple attribute names and the corresponding predefined range of values for each of the attribute 14(a) . After this, for each of these attribute value numbers, the corresponding mappings are taken as the input to the LLM 12 to make the LLM 12 understand each number maps to their corresponding values.
[0011]For instance, the control unit maps the attributes and their values like below : Mapping : Gender:{A: Male ,B: Female}
For Gender: A – {HairIndex: {0: curly mid hair, 1: long straight hair, 2: short hair……} AccessoryIndex:{1: sip cup, 2: Phone, 3: Backpack ….}
For Gender: B – {HairIndex: {0: short pixie curly, 1: short pixie straight hair, 2: short ponytail straight hair….} AccessoryIndex:{1: sip cup, 2: phone, 3: brown backpack, 4: black backpack….}
[0012]The control unit 10 generates the plurality of scene image variations from a single text prompt 14 using the chain-of-thought prompt with the LLM 12 and wherein for the attributes that are not related to the text prompt 14, are varied according to the corresponding pre-defined range provided in the large language model 12. The control unit 10 then develops a dynamic sequential chain-of-thought prompt for the LLM 12 where the input attribute values are taken dynamically from a user. The control unit 10 adds, removes, and alters the attributes based on the requirement and corresponding scene images are generated in the LLM 12. It is to be understood that, the LLM 12 can also be an intelligence model that is known in the state of the art.
[0013]The plurality of JSON files are created by converting the attribute values into the pre-defined value numbers according to the mapping table and the attribute set. And the created plurality of JSON files have the same structure 14(b) of attributes 14(a) and attribute values within the specified ranges (pre-defined ranges) .
[0014]Figure 2 illustrates a flowchart of a method of generating multiple scene images using a large language model (LLM) 12 in a control unit 10 in accordance with the present invention. In step S1, a text prompt 14 for a scene image and a set of attributes 14(a) defined for the scene image have been received as an input. In step S2, each of the attribute value to a corresponding predefined range of values listed in a mapping table are mapped, before providing it as an input to the LLM 12, such that, each attribute value is mapped to a predefined value.
[0015]In step S3, an information for specific attributes 14(a) are extracted present in the text prompt 14 and the values of the specific attributes 14(a) from the mapping table for generating the plurality of scene image variations are captured. In step S4, the scene image variations are converted into plurality of JSON (java script object notation) files and the converted plurality of JSON files are transmitted to an image generation module 16. In step S5,the multiple scene images are generated from the received plurality of JSON files using a rendering technique in the image generation module 16.
[0016]The method is explained in detail. In the conventional scene image generation methods that are present in the market were either manual or doesn’t generate physics based correct images. When unreal engine module/image generation module 16 is used to generate images, the corresponding JSON data files has to be written manually. For thousands of images, it is a very tedious and time-consuming work to perform. To mitigate this, when vision language models 12 are used to automate the image generation using only text prompts 14, the output images from these models are not physics based and introduces noise and deformities in the images. Also, for one text prompt 14, only a small number of images can be generated. Hence, these methods do not work in production-based settings. The present invention provides one such solution by providing number of scene image variations by altering the attributes along with their values and via the multiple JSON files developed/created by these attribute alteration.
[0017]The control unit 10 receives a text prompt, the set of attributes, their values, and the pre-defined ranges of the attributes 14(a) an input from the user. In addition to the above, the control unit 10 receives the atleast one JSON structure having these attributes and their values along with the predefined ranges from the user. Then the control unit 10 maps the attributes and their values based on the text prompt 14 received. Using the chain-of-thought prompt and with the large language model 12, based on the input textual prompt 14, the information is extracted for the specific attributes 14(a) mentioned in the prompt. For the extracted information, attribute values are captured from the mapping table.
[0018]For all the other attributes 14(a), for which there is no mention in the text prompt, the attribute values are being varied according to the ranges provided for each of them. Thus,” N” number of scene variations are generated from a single textual prompt 14 using chain-of-thought prompting with the LLM 12. Here, apart from variation, the control unit 10 adds, removes, or changes the attributes 14(a) for the scene images and corresponding scenes can be generated in the LLM chain 12.
[0019]The control unit 10 then generates the JSON data files using the LLM 12. The “N” number of scene variations generated in the previous step is taken and converted into N JSON data files by converting the values to value numbers according to the mapping table and attribute set 14(a). Now, N JSON files have the same structure 14(b) of attributes 14(a) and values within the specified ranges that will be taken by the image generation module 16 and generation of scene images will be started by the control unit 10. One such image generation module 16 is an Unreal engine module 16 that are used to generate N number of scene images. It is to be noted that, the image generation module 16 can be of any other type that is known in the state of the art , which uses these text prompts 14 and set of attributes 14(a) related to the text prompt 14.
[0020]This complete process of textual prompt to JSON generation is done using a novel dynamic input based sequential chain-of-thought prompting using large language model 12. The chain-of-thought prompting method is where , the control unit 10 creates a few individual chains with dynamic inputs and outputs and then connected them all to generate the sequential chain-of-thought. The control unit 10 generates N number of JSONs from the received text prompt 14 The JSON files are passed to the API server (not shown) running with the Unreal Engine module (image generation module 16) as a HTTP request, where the images will be generated. The API server running the Unreal Engine module 16 has a virtual scene setup with lighting, cameras, and corresponding attributes 14(a) for the scene images.
[0021] Whenever the server receives a request from the LLM 12 side containing the generated JSON data files, the JSON files are fed to the virtual scene setup one-by-one. The control unit 10 changes the character’s appearance and corresponding attributes based on description, values of the attributes of the corresponding JSON file and final renders are saved in database as various scene images.
[0022]Given a textual prompt 14 descripting an image, the above disclosed novel method using dynamic chain-of-thought prompting using large language models 12 uses the prompt 14 and generates the N number of variations, where N is a dynamic input taken from the user. The N number of JSON data files generated are compatible for the physics-based image generation software, from the variations using large language models 12. The automatic transfer of such JSON data files into the Image Generation module 16 using a custom API to generate physics-based images from the JSON data files is new and provides multiple scene images when compared to the conventional methods.
[0023] It should be understood that embodiments explained in the description above are only illustrative and do not limit the scope of this invention. Many such embodiments and other modifications and changes in the embodiment explained in the description are envisaged. The scope of the invention is only limited by the scope of the claims. , Claims:We Claim: 1. A control unit (10) for generating multiple scene images using a large language model (LLM) (12), said control unit (10) adapted to : - receive a text prompt (14) for a scene image and a set of attributes (14(a)) defined for the scene image; - map each of the attribute value to a corresponding predefined range of values listed in a mapping table, before providing it as an input to the LLM (12), such that, each attribute value is mapped to a predefined value; - extract an information for specific attributes present in the text prompt (14) and capture the values of the specific attributes from the mapping table for generating the plurality of scene image variations; - convert the scene image variations into plurality of JSON (java script object notation) files and transmit the converted plurality of JSON files to an image generation module(16) ; - generate multiple scene images from the received plurality of JSON files using a rendering technique in the image generation module (16).
2. The control unit (10) as claimed in claim 1, wherein the control unit (10) receives a structure (14(b)) of an output JSON file as an input along with the text prompt and the set of attributes.
3. The control unit (10) as claimed in claim 2, wherein the structure (14(b)) of the output JSON file comprises multiple attribute names and the corresponding predefined range of values for each of the attribute .
4. The control unit (10) as claimed in claim 1, wherein the control unit (10) the plurality of scene image variations from a single text prompt (14) using a chain-of-thought prompt with the LLM (12).
5. The control unit (10) as claimed in claim 1, wherein for the attributes (14(a)) that are not related to the text prompt (14), are varied according to the corresponding pre-defined range provided in the large language model (12).
6. The control unit (10) as claimed in claim 1, wherein the control unit (10) develops a dynamic sequential chain-of-thought prompt for the LLM (12) where the input attribute values are taken dynamically from a user.
7. The control unit (10) as claimed in claim 1, wherein the attributes (14(a)) are added, removed, and altered based on the requirement and corresponding scene images are generated in the LLM (12).
8. The control unit (10) as claimed in claim 1, wherein the plurality of JSON files are created by converting the attribute values into the pre-defined value numbers according to the mapping table and the attribute set (14(a)).
9. The control unit (10) as claimed in claims 2 & 8, wherein the created plurality of JSON files have the same structure of attributes (14(a)) and attribute values within the specified ranges (pre-defined ranges) .
10. A method of generating multiple scene images using a large language model (LLM) (12) in a control unit (10) , said method comprising the steps of : - receiving a text prompt (14) for a scene image and a set of attributes (14(a)) defined for the scene image; - mapping each of the attribute value to a corresponding predefined range of values listed in a mapping table, before providing it as an input to the LLM (12), such that, each attribute value is mapped to a predefined value; - extracting an information for specific attributes present in the text prompt (12) and capture the values of the specific attributes from the mapping table for generating the plurality of scene image variations; - converting the scene image variations into plurality of JSON (java script object notation) files and transmit the converted plurality of JSON files to an image generation module (16); - generating multiple scene images from the received plurality of JSON files using a rendering technique in the image generation module (16).