Multi-model cross-dimension image generation method
By integrating multiple plug-in models, the image generation method solves the problems of long time consumption and lack of diversity of traditional image generation methods, achieving fast and efficient personalized image generation and reducing costs.
Patent Information
- Application Number
- CN202410958325.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional image generation methods rely on manual design by professional designers, which is time-consuming and difficult to quickly respond to changes in demand. The generated images lack diversity and personalization and cannot meet the needs of users for specific styles and elements, resulting in low efficiency and high costs.
Using a multi-model cross-dimensional image generation method, by obtaining the user demand description, calling the Stable Diffusion optimization model integrating DreamBooth, Textual Inversion, LoRA, Hypernetwork, ControlNet and other plug-ins, combined with the Clip multi-modal model, the input text is converted into a vector language. Generate images and calculate coding similarity to form a recommendation list to meet user needs.
It improves the richness and quality of image generation, reduces dependence on professional designers, reduces the cost of corporate promotional content production, and achieves fast and efficient personalized image generation.
Smart Images

Figure CN118568286A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image generation, and in particular to a multi-model cross-dimensional image generation method. Background Art
[0002] In some application scenarios, taking various exhibition activities as an example, it is usually necessary to produce a large number of promotional posters according to the content of the activities. If the traditional design and drawing method is adopted, professional designers need to spend a lot of time and energy on poster design and drawing. Once any situation changes, the drawing needs to be revised again in a short time. The process is complicated and consumes a lot of manpower and time costs. There are many shortcomings in the image generation process of traditional methods. They rely on professional designers to manually design and draw images, which takes a long time and is difficult to respond quickly to changes in demand. The generated images lack diversity and personalization, and cannot meet users' needs for specific styles and elements. In addition, the process of adjusting and modifying images is complicated and inefficient, and it is impossible to quickly adapt to dynamically changing market demands. These shortcomings limit the widespread application of personalized image generation, and make image generation inefficient and costly, which needs to be optimized and improved. Summary of the invention
[0003] The purpose of the present invention is to solve the technical problems raised in the above background technology.
[0004] The present invention adopts the following technical solution: a multi-model cross-dimensional image generation method, the method comprising the following steps: S1: Obtain user image generation requirement description; S2: Confirm the type and style of the image to be generated; S3: Call the StableDiffuSion optimization model to generate images; S4: Calculate the encoding similarity between the generated image and the required text to form a recommendation list; S5: Display the generated results according to the quantity required by the user and archive them.
[0005] Preferably, the S1 includes the user describing the image content to be generated in natural language, describing in detail the specific requirements for image generation, and improving the accuracy of image generation. Here, the system can more accurately understand and execute the user's intention, ensuring that the generated image highly meets the user's needs.
[0006] Preferably, S2 includes information on the type and style of the image selected by the user, wherein the image type includes but is not limited to general design and character design, and the image style includes but is not limited to personalized design options such as watercolor, oil painting, ink painting, style modification (such as virtual engine, CG rendering, steam wave), etc. Here, the generated image can meet the needs of various scenes and uses, greatly enriching the diversity and personalization of the image.
[0007] Preferably, S3 includes using the Clip multimodal model to convert the input text into a vector language that the model can recognize, and calling the noise map to generate the image in combination with the image type and personalized information selected by the user. Here, in combination with the image type and personalized information selected by the user, the system can generate the image more efficiently and achieve higher generation speed and quality.
[0008] Preferably, in the process of calling the Stable Diffusion optimization model in S3, a variety of training and control plug-in models including DreamBooth, Textual Inversion, LoRA, Hypernetwork, and ControlNet are integrated. Here, the Stable Diffusion optimization model has stronger adaptability and flexibility when generating images, and can be efficiently fine-tuned and optimized according to different needs.
[0009] Preferably, the DreamBooth plug-in adjusts the model output result by directly modifying the entire original model, and the training content includes the "concept" to be trained and the keywords associated with the "concept". Here, the original model is directly modified to ensure that the generated image contains the required specific concept. For example, if the "concept" to be trained is "Corgi", the system can generate an image containing Corgi elements, thereby improving the personalization and accuracy of image generation.
[0010] Preferably, the Textual Inversion plug-in generates a specific element or style image by fine-tuning a parameter vector portion, which is converted from an input instruction, without modifying the original Diffusion model. Here, the original Diffusion model is not modified, making the model more lightweight and easy to adjust, meeting the personalized needs of users.
[0011] Preferably, the LoRA plug-in affects image generation by inserting a new data processing layer into the original model, avoiding modification of the original model parameters and optimizing the parameter amount of the inserted layer. Here, modification of the original model parameters is avoided, while optimizing the parameter amount of the inserted layer, achieving efficient image generation control and reducing resource usage.
[0012] Preferably, the ControlNet plug-in clones the weights in the large image diffusion model into "trainable copies" and "locked copies", trains for specific data sets to learn conditional control, and thus generates high-quality images. Here, fine control and adjustment can be performed according to different tasks and conditions to generate images that better meet specific needs.
[0013] Compared with the prior art, the advantages and positive effects of the present invention are: In the present invention, by setting and integrating DreamBooth, Textual Inversion, LoRA, Hypernetwork, ControlNet and other training and control plug-in models, the Stable Diffusion model is optimized to effectively improve the richness and quality of image generation. The advantages of each plug-in model are that the DreamBooth plug-in generates high-quality personalized images by training a small number of images, the Textual Inversion plug-in fine-tunes the parameter vector lightweight model, the LoRA plug-in performs efficient image generation by inserting a data processing layer, the Hypernetwork plug-in performs image style training through a separate neural network model, and the ControlNet plug-in generates high-quality images through weight cloning and conditional control. This integrated method can combine multiple technical advantages, improve the accuracy and diversity of image generation, reduce dependence on professional designers, and reduce the cost of corporate promotional content production. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A schematic diagram of the overall process of a multi-model cross-dimensional image generation method is proposed for the present invention. DETAILED DESCRIPTION
[0015] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0016] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways than those described herein. Therefore, the present invention is not limited to the specific embodiments of the following disclosure.
[0017] Unless otherwise specified, the reagents, methods and equipment used in the present invention are conventional reagents, methods and equipment in the technical field. Example
[0018] The present invention provides a technical solution: a multi-model cross-dimensional image generation method. After the user describes the image generation requirements such as activity theme, tone and style in detail through natural language, the system confirms the type of image (such as general design or character design) and style (such as watercolor, oil painting, vapor wave, etc.) according to the information input by the user, and records the personalized selection of the user. Then, the system calls the Stable Diffusion optimization model that integrates multiple plug-in models (DreamBooth, Textual Inversion, LoRA, Hypernetwork, ControlNet), converts the input text into a vector language that can be recognized by the model through the Clip multimodal model, and generates an image in combination with the image type and personalized information selected by the user. After the image is generated, the system calculates the encoding similarity between the image vector and the text vector through the Clip model to form a recommendation list. Finally, the system displays the generated image according to the quantity requirements preset by the user, and archives it for the user to retrieve and use at any time. Through the above steps, the system can quickly and efficiently generate high-quality advertising images that meet user needs, significantly reducing the time and cost of manual design. Example
[0019] A multi-model cross-dimensional image generation method. After the user inputs specific requirements such as project content, visual effects, and image size, the system confirms the image type (such as general design or character design) and style modification (such as virtual engine, CG rendering, high-definition image quality, etc.) based on the information entered by the user. Then, the system uses the Clip multimodal model to convert the input text into vector language, and combines the image type and personalized information selected by the user to call the Stable Diffusion optimization model that integrates DreamBooth, TextualInversion, LoRA, Hypernetwork, ControlNet and other plug-ins for image generation. After the image is generated, the system calculates the encoding similarity between the image vector and the text vector to form a recommendation list. Finally, the system displays the generated images according to the user's preset quantity requirements and archives them for users to use in project presentations and reports. Through this system, companies can quickly generate high-quality personalized images, improve project presentation effects, and reduce dependence on designers. Example
[0020] A multi-model cross-dimensional image generation method. After the user describes the image generation requirements such as activity theme, tone and style in detail through natural language, the system confirms the type of image (such as general design or character design) and style (such as watercolor, oil painting, vaporwave, etc.) according to the information input by the user, and records the user's personalized selection. Then, the system calls the Stable Diffusion optimization model that integrates multiple plug-in models (DreamBooth, Textual Inversion, LoRA, Hypernetwork, ControlNet), converts the input text into a vector language that the model can recognize through the Clip multimodal model, and generates an image in combination with the image type and personalized information selected by the user. After the image is generated, the system calculates the encoding similarity between the image vector and the text vector through the Clip model to form a recommendation list. In the specific implementation, for example, if the user needs to generate a promotional image with the theme of Corgi, the system will train the concept of Corgi through the DreamBooth plug-in to ensure that the generated image contains elements of Corgi. Finally, the system displays the generated images according to the user's preset quantity requirements and archives them for users to retrieve at any time. Through the above steps, the system can quickly and efficiently generate high-quality advertising images that meet user needs, significantly reducing the time and cost of manual design.
[0021] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A multi-model cross-dimensional image generation method, characterized by: The method comprises the following steps: S1: Obtain user image generation requirement description; S2: Confirm the type and style of the image to be generated; S3: Call the StableDiffuSion optimization model to generate images; S4: Calculate the encoding similarity between the generated image and the required text to form a recommendation list; S5: Display the generated results according to the quantity required by the user and archive them.
2. The multi-model cross-dimensional image generation method according to claim 1, characterized in that: The S1 includes the user describing the image content that he wants to generate in natural language, describing in detail the specific requirements for image generation, and improving the accuracy of image generation.
3. The multi-model cross-dimensional image generation method according to claim 1, characterized in that: The S2 includes information on the image type and style selected by the user, wherein the image type includes but is not limited to general design and character design, and the image style includes but is not limited to watercolor, oil painting, ink painting, style modification (such as virtual engine, CG rendering, vapor wave) and other personalized design options.
4. The multi-model cross-dimensional image generation method according to claim 1, characterized in that: The S3 includes using the Clip multimodal model to convert the input text into a vector language that can be recognized by the model, and calling the noise map to generate the image in combination with the image type and personalized information selected by the user.
5. The multi-model cross-dimensional image generation method according to claim 1, characterized in that: In the process of calling the Stable Diffusion optimization model in S3, a variety of training and control plug-in models including DreamBooth, Textual Inversion, LoRA, Hypernetwork, and ControlNet are integrated.
6. The multi-model cross-dimensional image generation method according to claim 5, characterized in that: The DreamBooth plug-in adjusts the model output results by directly modifying the entire original model. The training content includes the "concept" that needs to be trained and the keywords associated with the "concept".
7. The multi-model cross-dimensional image generation method according to claim 5, characterized in that: The TextualInversion plug-in generates a specific element or style image by fine-tuning a parameter vector portion, which is converted from an input instruction without modifying the original Diffusion model.
8. The multi-model cross-dimensional image generation method according to claim 5, characterized in that: The LoRA plug-in affects image generation by inserting a new data processing layer into the original model, avoiding modification of the original model parameters and optimizing the parameter amount of the inserted layer.
9. The multi-model cross-dimensional image generation method according to claim 5, characterized in that: The ControlNet plugin clones the weights from a large image diffusion model into “trainable copies” and “locked copies”, trained on a specific dataset to learn conditional controls to generate high-quality images.
