A planning intention graph generation method and system based on image generation model

Through the planning intention diagram generation method based on the image generation model, the problem of high manual drawing cost and low efficiency in planning and design is solved, intelligent high-quality intention diagram generation and rapid modification are realized, and the design efficiency is improved.

CN118570567BActive Publication Date: 2024-10-15ZHEJIANG PROVINCIAL INST OF LAND & SPACE PLANNING +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411052908.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-15
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

In planning and design work, the production of renderings and general floor plans requires a large amount of manual drawing and modeling, which results in high cost and low efficiency. It is difficult to intelligently generate high-quality planning intentions and affects the efficiency of the review and reporting process.

Method used

The planning intention map generation method based on the image generation model is used to obtain feature labels and sample pictures for preprocessing, and diffusion models such as DreamBooth and LoRA are used to adjust and accept the basic model to generate rendering renderings that meet the planning intention. It supports multiple This input condition allows partial redrawing of the image.

Benefits of technology

It reduces the workload of manual drawing and modeling, reduces the number of design drawing modifications and production costs, improves planning quality and work efficiency, realizes intelligent intention diagram generation and quick response modification, and generates high-quality and diverse pictures. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570567B_ABST
    Figure CN118570567B_ABST
Patent Text Reader

Abstract

The present invention proposes a planning intention map generation method and system based on an image generation model, which relates to the field of image generation technology, and obtains feature labels and sample images, pre-processes the sample images, and obtains processed feature labels; adjusts and accepts a preset basic model, calculates the fitting convergence coefficient of a CheckPoint model, adjusts the training parameters of the model, adjusts the obtained standard CheckPoint model, obtains a LoRA model, performs acceptance tests and weighted screen tests on the LoRA model through a preset chart script, adjusts the training parameters of the LoRA model, and obtains a standard LoRA model; generates images through an image generation interface, and partially redraws the images through a variety of input conditions to obtain a target image. The present invention reduces the workload of manual drawing and modeling, reduces the number of modifications and production costs, and after the plan is completed, quickly responds to modifications and rendering through intelligent generation applications, thereby improving the efficiency of the review and reporting process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention proposes a planning intention graph generation method and system based on an image generation model, and relates to the technical field of image generation. Background Art

[0002] In planning and design work, the production of planning renderings and master plans requires a lot of manual drawing and modeling, and is accompanied by frequent modifications, which leads to increased costs and low efficiency. It is difficult to intelligently generate high-quality planning intention maps, which affects the efficiency of the review and reporting process. At the same time, the production of renderings also has similar problems, requiring communication and negotiation with multiple stakeholders, which is time-consuming and costly. Summary of the invention

[0003] The present invention provides a planning intention graph generation method and system based on an image generation model to solve the above problems:

[0004] The present invention proposes a method and system for generating a planning intention graph based on an image generation model, the method comprising:

[0005] S1. Obtain feature labels and sample images, preprocess the sample images, label the preprocessed sample images using feature labels, delete redundant label information, obtain processed feature labels, and generate a sample library;

[0006] S2. Adjust and accept the preset basic model through the diffusion model to obtain the CheckPoint model and the first test data, calculate the fitting convergence coefficient of the CheckPoint model, and adjust the training parameters of the model according to the fitting convergence coefficient until the CheckPoint model meets the preset fitting convergence conditions to obtain the standard CheckPoint model;

[0007] S3. The standard CheckPoint model is adjusted by the LoRA method to obtain a LoRA model, and an acceptance test and a weight screen test are performed on the LoRA model by a preset chart script to obtain second test data, and the training parameters of the LoRA model are adjusted according to the second test data until the LoRA model meets the preset fitting convergence conditions to obtain a standard LoRA model;

[0008] S4. Generate an image through an image generation interface, perform partial redrawing of the image through a variety of input conditions, and obtain a target image.

[0009] Furthermore, the S1 includes:

[0010] Obtain business demand information, classify business demand information according to subject types, and obtain a variety of demand classification information;

[0011] Generate corresponding trigger feature labels for each demand classification information;

[0012] Obtain sample materials from a sample material library, and filter the sample materials according to preset conditions to obtain sample images;

[0013] Performing image preprocessing on the sample image to obtain a preprocessed sample image;

[0014] Label the preprocessed sample images by triggering feature labels and generate corresponding label description files;

[0015] The feature labels that do not meet the preset association strength threshold in the label description file are deleted through the association analysis method to obtain the feature labels that meet the preset association strength threshold, which are the standard feature labels.

[0016] Further, the S2 includes:

[0017] Get the preset basic model, input the sample library into LDM and Text Encoder, and fine-tune the preset basic model through the stable-diffusion-webui repository of AUTOMATIC1111;

[0018] Get a CheckPoint model file ending with .ckpt or .safetensor after fine-tuning;

[0019] Using the Prompt matrix script provided by stable-diffusion-webui, the screen data generated by the CheckPoint model under different preset prompt word matrices are tested to obtain first test data;

[0020] A fitting convergence coefficient of the CheckPoint model is calculated according to the first test data, and whether the CheckPoint model meets a preset fitting convergence condition is determined according to the fitting convergence coefficient to obtain a judgment result. The training parameters of the CheckPoint model are adjusted according to the judgment result until the first test data of the CheckPoint model meets the preset fitting convergence condition to obtain a standard CheckPoint model.

[0021] Further, the S3 includes:

[0022] Adjust the standard CheckPoint model through the training script provided by kohya_ss of the LoRA method to obtain the LoRA model file ending with .ckpt or .safetensor;

[0023] Through the X / Y / Z chart script provided by stable-diffusion-webui, the picture data generated by the LoRA model under different preset prompt word matrices and the picture data generated by the LoRA model under different preset weights are tested respectively to obtain the second test data;

[0024] The fitting convergence coefficient of the LoRA model is calculated according to the second test data, and whether the LoRA model meets the preset fitting convergence condition is judged according to the fitting convergence coefficient of the LoRA model to obtain a judgment result, and the training parameters of the LoRA model are adjusted according to the judgment result until the second test data of the LoRA model meets the preset fitting convergence condition to obtain a standard LoRA model.

[0025] Further, the S4 includes:

[0026] Get the image generation API, call the corresponding model through HTTP to generate the image, and get the generated image;

[0027] Generate and return the corresponding theme image through the feature tag in the prompt parameter of the generate picture interface;

[0028] Select multiple input conditions to input into the image generation model, perform black and white mask operation on the part of the image that needs to be modified, and generate and return the partially redrawn target image through the image generation interface.

[0029] Furthermore, the system comprises:

[0030] The image label generation module is used to obtain feature labels and sample images, preprocess the sample images, label the preprocessed sample images with feature labels, delete redundant label information, obtain processed feature labels, and generate a sample library;

[0031] A first model test adjustment module is used to adjust and accept the preset basic model through the diffusion model, obtain the CheckPoint model and the first test data, calculate the fitting convergence coefficient of the CheckPoint model, and adjust the training parameters of the model according to the fitting convergence coefficient until the CheckPoint model meets the preset fitting convergence condition, thereby obtaining the standard CheckPoint model;

[0032] The second model test adjustment module is used to adjust the standard CheckPoint model through the LoRA method to obtain the LoRA model, perform acceptance test and weight screen test on the LoRA model through a preset chart script to obtain second test data, and adjust the training parameters of the LoRA model according to the second test data until the LoRA model meets the preset fitting convergence conditions to obtain the standard LoRA model;

[0033] The local modification module is used to generate images through the image generation interface, and to redraw the local part of the image through various input conditions to obtain the target image.

[0034] Furthermore, the image tag generation module includes:

[0035] The label generation module is used to obtain business demand information, classify the business demand information according to the subject type, and obtain a variety of demand classification information;

[0036] Generate corresponding trigger feature labels for each demand classification information;

[0037] The image screening module is used to obtain sample materials from the sample material library, screen the sample materials according to preset conditions, and obtain sample images;

[0038] Performing image preprocessing on the sample image to obtain a preprocessed sample image;

[0039] Label the preprocessed sample images by triggering feature labels and generate corresponding label description files;

[0040] The redundant deletion module is used to delete the feature tags that do not meet the preset association strength threshold in the tag description file through the association analysis method, and obtain the feature tags that meet the preset association strength threshold, which are the standard feature tags.

[0041] Furthermore, the first model test adjustment module includes:

[0042] The first fine-tuning module is used to obtain the preset basic model, input the sample library into LDM and Text Encoder, and the diffusion model fine-tunes the preset basic model through the stable-diffusion-webui warehouse of AUTOMATIC1111;

[0043] Get a CheckPoint model file ending with .ckpt or .safetensor after fine-tuning;

[0044] The first test module is used to test the screen data generated by the CheckPoint model under different preset prompt word matrices through the Prompt matrix script provided by stable-diffusion-webui to obtain first test data;

[0045] The first calculation and adjustment module is used to calculate the fitting convergence coefficient of the CheckPoint model according to the first test data, judge whether the CheckPoint model meets the preset fitting convergence condition according to the fitting convergence coefficient, obtain a judgment result, and adjust the training parameters of the CheckPoint model according to the judgment result until the first test data of the CheckPoint model meets the preset fitting convergence condition, so as to obtain a standard CheckPoint model.

[0046] Furthermore, the second model test adjustment module includes:

[0047] The second fine-tuning module is used to adjust the standard CheckPoint model through the training script provided by kohya_ss of the LoRA method to obtain the LoRA model file ending with .ckpt or .safetensor;

[0048] The second test module is used to test the picture data generated by the LoRA model under different preset prompt word matrices and the picture data generated by the LoRA model under different preset weights through the X / Y / Z chart script provided by stable-diffusion-webui to obtain second test data;

[0049] The second calculation and adjustment module is used to calculate the fitting convergence coefficient of the LoRA model according to the second test data, judge whether the LoRA model meets the preset fitting convergence condition according to the fitting convergence coefficient of the LoRA model, obtain a judgment result, and adjust the training parameters of the LoRA model according to the judgment result until the second test data of the LoRA model meets the preset fitting convergence condition to obtain a standard LoRA model.

[0050] Furthermore, the local modification module includes:

[0051] The image generation module is used to obtain the image generation interface, call the corresponding model through HTTP to generate the image, and obtain the generated image;

[0052] Generate and return the corresponding theme image through the feature tag in the prompt parameter of the generate picture interface;

[0053] The image modification module is used to select multiple input conditions to input into the image generation model, perform black and white mask operations on the parts of the image that need to be modified, and generate and return the partially redrawn target image through the image generation interface.

[0054] Beneficial effects of the invention: The invention provides a method for generating a planning intention map based on an image generation model. The image generation model is used to intelligently generate a rendering effect map that meets the planning intention according to the conditions such as the planned building type, appearance, rendering style, etc. The user can input information in a variety of ways, including description of planning ideas, sketching, three-dimensional white film, hand-drawn line draft, modeling pictures and current status photos, etc., to control the image generation model to automatically output an intention map that meets the requirements. Its goal is to provide intelligent tools for planning and design staff to quickly generate intention maps, local adjustments to design drawings, etc., thereby reducing the number of design drawing modifications, production costs and production cycles. This innovation is intended to assist planning and design work, improve planning quality and increase work efficiency. The invention reduces the workload of manual drawing and modeling, reduces the number of modifications and production costs, and at the same time, after the plan is completed, it quickly responds to modifications and rendering through intelligent generation applications, thereby improving the efficiency of the review and reporting process. Through advanced diffusion model adjustment methods such as DreamBooth and LoRA, the model can learn the characteristics and label information of sample images, thereby generating high-quality and diverse images. At the same time, by adjusting and optimizing the training parameters of the model, the accuracy and authenticity of the generated images can be further improved. By deleting redundant label information, the interference of redundant data is reduced and the data processing efficiency is improved. In addition, the use of automated model adjustment and testing methods reduces the need for manual intervention and further improves the efficiency of the entire process. By redrawing parts of the image under multiple input conditions, users can modify and optimize the generated images according to their own needs, so as to obtain target images that better meet their expectations. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram of a planning intention graph generation method based on an image generation model;

[0056] Figure 2 Generate process flow diagrams for planning intent diagrams. DETAILED DESCRIPTION

[0057] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0058] In one embodiment of the present invention, a method and system for generating a planning intention graph based on an image generation model are proposed by the present invention, and the method comprises:

[0059] S1. Obtain feature labels and sample images, preprocess the sample images, label the preprocessed sample images using feature labels, delete redundant label information, obtain processed feature labels, and generate a sample library;

[0060] S2. Adjust and accept the preset basic model through the diffusion model, i.e., DreamBooth method, to obtain the CheckPoint model and the first test data, calculate the fitting convergence coefficient of the CheckPoint model, and adjust the training parameters of the model according to the fitting convergence coefficient until the CheckPoint model meets the preset fitting convergence conditions, thereby obtaining the standard CheckPoint model;

[0061] S3. The standard CheckPoint model is adjusted by the LoRA method to obtain a LoRA model, and an acceptance test and a weight screen test are performed on the LoRA model by a preset chart script to obtain second test data, and the training parameters of the LoRA model are adjusted according to the second test data until the LoRA model meets the preset fitting convergence conditions to obtain a standard LoRA model;

[0062] S4. Generate an image through an image generation interface, perform partial redrawing of the image through a variety of input conditions, and obtain a target image.

[0063] The working principle of the above technical solution is: label the sample images and assign corresponding feature labels to each sample image. Redundancy is removed from these label annotation information, that is, repeated, irrelevant or redundant labels are removed to ensure that each feature label is unique and meaningful. The processed feature labels are obtained for subsequent model training and image generation. The preset basic model is adjusted using the DreamBooth method. DreamBooth is a diffusion model that can learn the ability to generate new images based on a small number of given sample images and labels. During the adjustment process, the model gradually improves the accuracy and diversity of the generated images by continuously learning the features and label information of the sample images. After the adjustment is completed, an acceptance test is performed to calculate the fitting convergence coefficient of the CheckPoint model. Based on this coefficient, it can be determined whether to adjust the training parameters of the model to further optimize the performance of the model. When the CheckPoint model meets the preset fitting convergence conditions, that is, the model can stably and accurately generate images similar to the sample images, and a standard CheckPoint model is obtained. On the basis of obtaining the standard CheckPoint model, the LoRA (Low-Rank Adaptation) method is further used for adjustment. LoRA is a lightweight model adjustment method that can improve performance by adjusting certain parameters of the model without changing the main structure of the model. After adjustment by the LoRA method, the LoRA model is obtained. Subsequently, the LoRA model is subjected to acceptance testing and weighted screen testing using a preset chart script. These tests are designed to verify the generation capability, stability, and visualization effect of the model. Based on the test data, the training parameters of the LoRA model can be adjusted to further optimize its performance. When the LoRA model meets the preset fitting convergence conditions, that is, the model performs well in generating pictures, a standard LoRA model is obtained. Through the picture generation interface, pictures are generated using the standard LoRA model. Users can control the content and style of the generated pictures through a variety of input conditions (such as text descriptions, keywords, etc.). In addition, the generated pictures can be partially modified and optimized through the picture local redrawing function to obtain target pictures that better meet user needs. According to the actual planning, business needs are compiled, and feature tags that need to be triggered are made according to different themes, and image materials with high pixels and rich picture details are found. Avoid blurring, large watermarks, large amounts of text, distortion, etc. in the material pictures, as these will directly affect the quality of the pictures.The pixels of the sample material should not be too low or too high. The size and pixels of the sample images are unified through preprocessing (512 x 512 is used in this technical solution, and the sample images are proportionally scaled to 512 in height and width) to avoid non-convergence results due to different buckets during training. Here, image-to-text models such as wota WD14 and Clip can be used to generate corresponding label description files (captions) for the preprocessed sample images, check the automatically generated label content, delete irrelevant or weakly relevant labels, and delete feature labels that need to be retained.

[0064] The technical effect of the above technical solution is: through advanced diffusion model adjustment methods such as DreamBooth and LoRA, the model can learn the characteristics and label information of sample images, thereby generating high-quality and diverse images. At the same time, by adjusting and optimizing the training parameters of the model, the accuracy and authenticity of the generated images can be further improved. By redundantly deleting label annotation information, the interference of redundant data is reduced and the data processing efficiency is improved. In addition, the use of automated model adjustment and testing methods reduces the need for manual intervention and further improves the efficiency of the entire process. By redrawing parts of the image under a variety of input conditions, users can personalize and optimize the generated images according to their needs, so as to obtain target images that are more in line with their expectations.

[0065] In one embodiment of the present invention, the S1 includes:

[0066] Obtain business demand information, classify business demand information according to subject types, and obtain a variety of demand classification information;

[0067] Generate corresponding trigger feature labels for each demand classification information;

[0068] Obtain sample materials from a sample material library, and filter the sample materials according to preset conditions to obtain sample images;

[0069] Performing image preprocessing on the sample image to obtain a preprocessed sample image;

[0070] Label the preprocessed sample images by triggering feature labels and generate corresponding label description files;

[0071] The feature labels that do not meet the preset association strength threshold in the label description file are deleted through the association analysis method to obtain the feature labels that meet the preset association strength threshold, which are the standard feature labels.

[0072] The working principle of the above technical solution is: obtain business demand information, classify the business demand information according to the subject type, and obtain a variety of demand classification information; generate corresponding trigger feature tags for each demand classification information; obtain sample materials in the sample material library, screen the sample materials according to preset conditions, and obtain sample images; the preset conditions are preset pixel qualified range, presence or absence of watermarks and text distortion and other conditions; perform image preprocessing on the sample images to obtain preprocessed sample images; the image preprocessing includes unifying the size and pixels of the sample images according to preset conditions; label the preprocessed sample images through trigger feature tags to generate corresponding label description files; delete the feature tags that do not meet the preset association strength threshold in the label description file through the association analysis method, and obtain feature tags that meet the preset association strength threshold, that is, standard feature tags, and generate a sample library through the above content.

[0073] The technical effect of the above technical solution is: by classifying the business demand information and generating the corresponding trigger feature tags, it is ensured that the subsequent image processing and annotation process is closely integrated with the business demand, and the pertinence and practicality of the image samples are improved. This precise correspondence helps to ensure that the generated sample library can meet the needs of specific business scenarios and improve the effective utilization of resources. The sample materials are screened according to preset conditions (such as pixel qualified range, watermark and text distortion, etc.) to ensure the quality and availability of the sample images. This step effectively eliminates low-quality and non-compliant images, providing a high-quality material basis for subsequent image processing and annotation work. By preprocessing the sample images, such as unifying the size and pixels, the normalization and standardization of image processing are achieved. This helps to eliminate differences between images and improve the consistency and accuracy of subsequent label annotation. At the same time, the normalization processing also simplifies the subsequent data processing process and improves work efficiency. Using trigger feature tags to label the preprocessed sample images can quickly and accurately assign corresponding labels to the images. This business demand-based labeling method improves the pertinence and practicality of labels and provides strong support for subsequent data analysis and application. The characteristic tags in the tag description file are screened and optimized through the association analysis method to ensure the quality and accuracy of the tags. The characteristic tags that do not meet the preset association strength threshold are deleted to effectively avoid the redundancy and irrelevance of the tags and improve the purity and effectiveness of the tag library. The sample library generated by the above process is not only highly practical and targeted, but also has good scalability. With the changes in business needs and the addition of new data resources, the sample library can be easily updated and expanded.

[0074] In one embodiment of the present invention, S2 includes:

[0075] Get the preset basic model, input the sample library into LDM and Text Encoder, and fine-tune the preset basic model through the stable-diffusion-webui repository of AUTOMATIC1111;

[0076] Get a CheckPoint model file ending with .ckpt or .safetensor after fine-tuning;

[0077] Using the Prompt matrix script provided by stable-diffusion-webui, the screen data generated by the CheckPoint model under different preset prompt word matrices are tested to obtain first test data;

[0078] A fitting convergence coefficient of the CheckPoint model is calculated according to the first test data, and whether the CheckPoint model meets a preset fitting convergence condition is determined according to the fitting convergence coefficient to obtain a judgment result. The training parameters of the CheckPoint model are adjusted according to the judgment result until the first test data of the CheckPoint model meets the preset fitting convergence condition to obtain a standard CheckPoint model.

[0079] The working principle of the above technical solution is as follows: obtain the preset basic model, input the sample library into LDM and TextEncoder, and the diffusion model, i.e., the DreamBooth method, fine-tunes the preset basic model through the stable-diffusion-webui repository of AUTOMATIC1111;

[0080] After fine-tuning, obtain a CheckPoint model file ending with .ckpt or .safetensor (size is 2-4G);

[0081] Using the Prompt matrix script provided by stable-diffusion-webui, the screen data generated by the CheckPoint model under different preset prompt word matrices are tested to obtain first test data;

[0082] The fitting convergence coefficient of the CheckPoint model is calculated according to the first test data, and whether the CheckPoint model meets the preset fitting convergence condition is determined according to the fitting convergence coefficient to obtain a judgment result. The training parameters of the CheckPoint model are adjusted according to the judgment result until the first test data of the CheckPoint model meets the preset fitting convergence condition to obtain a standard CheckPoint model. When the fitting convergence coefficient meets the convergence threshold and fitting range threshold of the preset fitting convergence condition, it is determined that the model meets the preset fitting convergence condition and the training parameters are not adjusted. When the fitting convergence coefficient does not meet the convergence threshold or fitting range threshold of the preset fitting convergence condition, it is determined that the model does not meet the preset fitting convergence condition and the training parameters are adjusted. The training parameters include learning rate, batch size, number of iterations, regularization parameter, momentum, weight initialization, etc.

[0083] The calculation formula of the fitting convergence coefficient is:

[0084]

[0085] in, is the fitting convergence coefficient, y is the total number of model training samples, is the actual generated data for the test data of the i-th sample of the model, is the preset generated data for the test data of the i-th sample of the model, n is the total number of model iteration steps, is the loss function value of the a-th iteration step of the model, is the loss function value of the model at the a-1th iteration step, and is the weight value, .

[0086] The technical effect of the above technical solution is: by using LDM and Text Encoder as input interfaces and combining the DreamBooth method, the preset basic model can be effectively fine-tuned according to the specific images and label information in the sample library. This fine-tuning process is not only efficient, but also ensures that the model is accurately adjusted for specific business needs, thereby improving the accuracy and relevance of the model-generated images. During the fine-tuning process, the operation is performed through the stable-diffusion-webui warehouse of AUTOMATIC1111, ensuring the stability and reliability of the entire fine-tuning process. At the same time, the generated CheckPoint model file ends with .ckpt or .safetensor. This standardized format makes the model file easy to store, transfer and load. Testing the CheckPoint model through the Prompt matrix script can comprehensively evaluate the performance of the model under different preset prompt word matrices. This testing method helps to discover potential problems of the model. The introduction of the fitting convergence coefficient provides a quantitative indicator for judging whether the model meets the preset fitting convergence conditions. By calculating the fitting convergence coefficient and comparing it with the preset convergence threshold and fitting range threshold, the state of the model can be accurately judged and the training parameters can be adjusted accordingly. This data-based decision-making method ensures the accuracy and effectiveness of model adjustment. Based on the judgment results, training parameters such as learning rate, batch size, number of iterations, etc. can be flexibly adjusted to optimize the performance of the model. This flexible adjustment mechanism enables the model to adapt to different business needs and data characteristics, improving the generalization ability and practicality of the model.

[0087] In one embodiment of the present invention, S3 includes:

[0088] Adjust the standard CheckPoint model through the training script provided by kohya_ss of the LoRA method to obtain the LoRA model file ending with .ckpt or .safetensor;

[0089] Through the X / Y / Z chart script provided by stable-diffusion-webui, the picture data generated by the LoRA model under different preset prompt word matrices and the picture data generated by the LoRA model under different preset weights are tested respectively to obtain the second test data;

[0090] The fitting convergence coefficient of the LoRA model is calculated according to the second test data, and whether the LoRA model meets the preset fitting convergence condition is judged according to the fitting convergence coefficient of the LoRA model to obtain a judgment result, and the training parameters of the LoRA model are adjusted according to the judgment result until the second test data of the LoRA model meets the preset fitting convergence condition to obtain a standard LoRA model.

[0091] The working principle of the above technical solution is: adjust the standard CheckPoint model through the training script provided by kohya_ss of the LoRA method to obtain a set of LoRA model files ending with .ckpt or .safetensor for specific topics (size is 16~144MB); through the X / Y / Z chart script provided by stable-diffusion-webui, test the screen data generated by the LoRA model under different preset prompt word matrices and the screen data generated by the LoRA model under different preset weights to obtain second test data; calculate the fitting convergence coefficient of the LoRA model according to the second test data, judge whether the LoRA model meets the preset fitting convergence condition according to the fitting convergence coefficient of the LoRA model, obtain a judgment result, adjust the training parameters of the LoRA model according to the judgment result, until the second test data of the LoRA model meets the preset fitting convergence condition, and obtain a standard LoRA model.

[0092] The technical effect of the above technical solution is: by adjusting the standard CheckPoint model using the LoRA method, a set of LoRA model files for specific topics can be obtained. Compared with the standard model, the LoRA model file has a smaller size (16~144MB), which makes the model more efficient and convenient in terms of storage, transmission and deployment. At the same time, the LoRA method can significantly reduce the number of model parameters while maintaining the model performance, thus achieving the lightweight of the model. Through the X / Y / Z chart script provided by stable-diffusion-webui, the performance of the LoRA model under different preset prompt word matrices and different preset weights can be fully tested. This test method can reveal the performance differences of the model under different conditions and provide accurate data support for subsequent parameter adjustment. By fine-tuning the model parameters, the generation quality and diversity of the LoRA model under specific topics can be further improved. When calculating the fitting convergence coefficient of the LoRA model, an evaluation method similar to that of the standard CheckPoint model is adopted. The introduction of this indicator makes the evaluation of model performance more objective and quantitative. By comparing the fitting convergence coefficient with the convergence threshold and fitting range threshold of the preset fitting convergence condition, the state of the LoRA model can be accurately judged, thereby guiding the direction and amplitude of parameter adjustment. According to the judgment results of the second test data and the fitting convergence coefficient, the training parameters of the LoRA model, such as learning rate, weight, etc., can be flexibly adjusted. This flexible adjustment mechanism helps to find the best model configuration and further improve the generation ability and generalization performance of the LoRA model under specific topics.

[0093] In one embodiment of the present invention, the S4 includes:

[0094] Get the image generation API, call the corresponding model through HTTP to generate the image, and get the generated image;

[0095] Generate and return the corresponding theme image through the feature tag in the prompt parameter of the generate picture interface;

[0096] Select multiple input conditions to input into the image generation model, perform black and white mask operation on the part of the image that needs to be modified, and generate and return the partially redrawn target image through the image generation interface.

[0097] The working principle of the above technical solution is: obtain a picture generation interface, the picture generation interface includes a RESTful API interface for text-generated pictures and picture-generated pictures, generate pictures through HTTP calls to the corresponding model, and obtain generated pictures; generate and return corresponding subject images through the feature tags existing in the prompt parameter of the picture generation interface; select multiple input conditions to input the image generation model, perform black and white mask operations on the parts of the picture that need to be modified, and generate and return the partially redrawn target picture through the picture generation interface.

[0098] The above contents specifically include:

[0099] Deploy the model:

[0100] Use stable-diffusion-webui to deploy the LoRA model and the fine-tuned CheckPoint model, and develop RESTful API interfaces for text-to-image generation and image-to-image generation, so that the client can call the model to generate images through HTTP requests.

[0101] Basic planning intention map generation function is realized:

[0102] Using the generate image interface, the model will generate and return images of different themes based on different feature tags. When the prompt parameter of the interface contains feature tags related to the rendering, the image of the rendering theme will be returned. When the prompt parameter of the interface contains feature tags related to the master plan, the image of the master plan theme will be returned.

[0103] Multiple input conditions: including prompt words, base map, reference map, using ControlNet technology and additional additional networks, so that planning idea description (text), sketches, 3D white film, hand-drawn line drafts, modeling pictures and current status photos can all be used as input for the image generation model.

[0104] Local modification and redrawing function implementation:

[0105] Perform a black and white mask operation on the part of the target image that you want to modify, use the image generation interface, and describe the generated content of the mask part in the prompt word, then generate and return the partially redrawn target image.

[0106] The technical effect of the above technical solution is: providing a RESTful API interface for text-generated images and image-generated images, so that users can easily call the corresponding model through HTTP to generate images. This interface design not only improves the user experience, but also makes the interface highly flexible and can adapt to image generation tasks under different scenarios and requirements. Through the feature tags in the prompt parameter of the generated image interface, the corresponding theme image can be generated and returned. This feature tag-based generation method allows users to accurately control the generated content and style of the image, thereby meeting the image requirements under different themes. By selecting a variety of input conditions to input the image generation model, the black and white mask operation is performed on the part of the image that needs to be modified, and then the partially redrawn target image is generated and returned through the generated image interface. This function enables users to make refined modifications and redraws to specific areas while retaining most of the original image content, thereby improving the efficiency and accuracy of image editing. By calling the corresponding model through HTTP to generate images, an efficient and real-time image generation process can be achieved. Whether it is text-based feature tag generation or image-based partial redrawing, it can be completed in a short time.

[0107] In one embodiment of the present invention, the system comprises:

[0108] The image label generation module is used to obtain feature labels and sample images, preprocess the sample images, label the preprocessed sample images with feature labels, delete redundant label information, obtain processed feature labels, and generate a sample library;

[0109] The first model test adjustment module is used to adjust and accept the preset basic model through the diffusion model, namely the DreamBooth method, to obtain the CheckPoint model and the first test data, to calculate the fitting convergence coefficient of the CheckPoint model, and to adjust the training parameters of the model according to the fitting convergence coefficient until the CheckPoint model meets the preset fitting convergence conditions, thereby obtaining the standard CheckPoint model;

[0110] The second model test adjustment module is used to adjust the standard CheckPoint model through the LoRA method to obtain the LoRA model, perform acceptance test and weight screen test on the LoRA model through a preset chart script to obtain second test data, and adjust the training parameters of the LoRA model according to the second test data until the LoRA model meets the preset fitting convergence conditions to obtain the standard LoRA model;

[0111] The local modification module is used to generate images through the image generation interface, and to redraw the local part of the image through various input conditions to obtain the target image.

[0112] The working principle of the above technical solution is as follows: the image label generation module labels the sample images and assigns corresponding feature labels to each sample image. Redundancy is deleted for these label annotation information, that is, repeated, irrelevant or redundant labels are removed to ensure that each feature label is unique and meaningful. The first model test adjustment module obtains the processed feature labels for subsequent model training and image generation. The preset basic model is adjusted using the DreamBooth method. DreamBooth is a diffusion model that can learn the ability to generate new images based on a small number of given sample images and labels. During the adjustment process, the model gradually improves the accuracy and diversity of the generated images by continuously learning the features and label information of the sample images. After the adjustment is completed, an acceptance test is performed to calculate the fitting convergence coefficient of the CheckPoint model. Based on this coefficient, it can be determined whether to adjust the training parameters of the model to further optimize the performance of the model. When the CheckPoint model meets the preset fitting convergence conditions, that is, the model can stably and accurately generate images similar to the sample images, and a standard CheckPoint model is obtained. On the basis of obtaining the standard CheckPoint model, the second model test adjustment module further uses the LoRA (Low-Rank Adaptation) method for adjustment. LoRA is a lightweight model adjustment method that can improve performance by adjusting certain parameters of the model without changing the main structure of the model. After adjustment by the LoRA method, the LoRA model is obtained. Subsequently, the LoRA model is subjected to acceptance testing and weighted screen testing using a preset chart script. These tests are designed to verify the generation capability, stability, and visualization of the model. Based on the test data, the training parameters of the LoRA model can be adjusted to further optimize its performance. When the LoRA model meets the preset fitting convergence conditions, that is, the model performs well in generating pictures, a standard LoRA model is obtained. Through the picture generation interface, pictures are generated using the standard LoRA model. Local modification module Users can control the content and style of the generated pictures through a variety of input conditions (such as text descriptions, keywords, etc.). In addition, the generated pictures can be partially modified and optimized through the local redrawing function to obtain target pictures that better meet user needs.

[0113] The technical effect of the above technical solution is: through advanced diffusion model adjustment methods such as DreamBooth and LoRA, the model can learn the characteristics and label information of sample images, thereby generating high-quality and diverse images. At the same time, by adjusting and optimizing the training parameters of the model, the accuracy and authenticity of the generated images can be further improved. By redundantly deleting label annotation information, the interference of redundant data is reduced and the data processing efficiency is improved. In addition, the use of automated model adjustment and testing methods reduces the need for manual intervention and further improves the efficiency of the entire process. By redrawing parts of the image under a variety of input conditions, users can personalize and optimize the generated images according to their needs, so as to obtain target images that are more in line with their expectations.

[0114] In one embodiment of the present invention, the image tag generation module includes:

[0115] The label generation module is used to obtain business demand information, classify the business demand information according to the subject type, and obtain a variety of demand classification information;

[0116] Generate corresponding trigger feature labels for each demand classification information;

[0117] The image screening module is used to obtain sample materials from the sample material library, screen the sample materials according to preset conditions, and obtain sample images;

[0118] Performing image preprocessing on the sample image to obtain a preprocessed sample image;

[0119] Label the preprocessed sample images by triggering feature labels and generate corresponding label description files;

[0120] The redundant deletion module is used to delete the feature tags that do not meet the preset association strength threshold in the tag description file through the association analysis method, and obtain the feature tags that meet the preset association strength threshold, which are the standard feature tags.

[0121] The working principle of the above technical solution is: the label generation module obtains business demand information, classifies the business demand information according to the subject type, and obtains a variety of demand classification information; generates corresponding trigger feature labels for each demand classification information; the image screening module obtains sample materials in the sample material library, screens the sample materials according to preset conditions, and obtains sample images; the preset conditions are preset pixel qualified range, presence or absence of watermarks and text distortion, etc.; the sample images are preprocessed to obtain preprocessed sample images; the image preprocessing includes unifying the size and pixels of the sample images according to preset conditions; the preprocessed sample images are labeled by trigger feature labels to generate corresponding label description files; the redundant deletion module deletes the feature labels that do not meet the preset association strength threshold in the label description file through the association analysis method, and obtains feature labels that meet the preset association strength threshold, that is, standard feature labels, and a sample library is generated through the above content.

[0122] The technical effect of the above technical solution is: by classifying the business demand information and generating the corresponding trigger feature tags, it is ensured that the subsequent image processing and annotation process is closely integrated with the business demand, and the pertinence and practicality of the image samples are improved. This precise correspondence helps to ensure that the generated sample library can meet the needs of specific business scenarios and improve the effective utilization of resources. The sample materials are screened according to preset conditions (such as pixel qualified range, watermark and text distortion, etc.) to ensure the quality and availability of the sample images. This step effectively eliminates low-quality and non-compliant images, providing a high-quality material basis for subsequent image processing and annotation work. By preprocessing the sample images, such as unifying the size and pixels, the normalization and standardization of image processing are achieved. This helps to eliminate differences between images and improve the consistency and accuracy of subsequent label annotation. At the same time, the normalization processing also simplifies the subsequent data processing process and improves work efficiency. Using trigger feature tags to label the preprocessed sample images can quickly and accurately assign corresponding labels to the images. This business demand-based labeling method improves the pertinence and practicality of labels and provides strong support for subsequent data analysis and application. The characteristic tags in the tag description file are screened and optimized through the association analysis method to ensure the quality and accuracy of the tags. The characteristic tags that do not meet the preset association strength threshold are deleted to effectively avoid the redundancy and irrelevance of the tags and improve the purity and effectiveness of the tag library. The sample library generated by the above process is not only highly practical and targeted, but also has good scalability. With the changes in business needs and the addition of new data resources, the sample library can be easily updated and expanded.

[0123] In one embodiment of the present invention, the first model test adjustment module includes:

[0124] The first fine-tuning module is used to obtain the preset basic model, input the sample library into LDM and Text Encoder, and the diffusion model fine-tunes the preset basic model through the stable-diffusion-webui warehouse of AUTOMATIC1111;

[0125] Get a CheckPoint model file ending with .ckpt or .safetensor after fine-tuning;

[0126] The first test module is used to test the screen data generated by the CheckPoint model under different preset prompt word matrices through the Prompt matrix script provided by stable-diffusion-webui to obtain first test data;

[0127] The first calculation and adjustment module is used to calculate the fitting convergence coefficient of the CheckPoint model according to the first test data, judge whether the CheckPoint model meets the preset fitting convergence condition according to the fitting convergence coefficient, obtain a judgment result, and adjust the training parameters of the CheckPoint model according to the judgment result until the first test data of the CheckPoint model meets the preset fitting convergence condition, so as to obtain a standard CheckPoint model.

[0128] The working principle of the above technical solution is as follows: the first fine-tuning module is used to obtain the preset basic model, input the sample library into LDM and Text Encoder, and the diffusion model, namely the DreamBooth method, fine-tunes the preset basic model through the stable-diffusion-webui warehouse of AUTOMATIC1111;

[0129] After fine-tuning, obtain a CheckPoint model file ending with .ckpt or .safetensor (size is 2-4G);

[0130] The first test module is used to test the screen data generated by the CheckPoint model under different preset prompt word matrices through the Prompt matrix script provided by stable-diffusion-webui to obtain first test data;

[0131] The first calculation and adjustment module is used to calculate the fitting convergence coefficient of the CheckPoint model according to the first test data, judge whether the CheckPoint model meets the preset fitting convergence condition according to the fitting convergence coefficient, obtain a judgment result, and adjust the training parameters of the CheckPoint model according to the judgment result until the first test data of the CheckPoint model meets the preset fitting convergence condition to obtain a standard CheckPoint model. When the fitting convergence coefficient meets the convergence threshold and fitting range threshold of the preset fitting convergence condition, it is judged that the model meets the preset fitting convergence condition and the training parameters are not adjusted. When the fitting convergence coefficient does not meet the convergence threshold or fitting range threshold of the preset fitting convergence condition, it is judged that the model does not meet the preset fitting convergence condition and the training parameters are adjusted. The training parameters include learning rate, batch size, number of iterations, regularization parameter, momentum, weight initialization, etc.

[0132] The calculation formula of the fitting convergence coefficient is:

[0133]

[0134] in, is the fitting convergence coefficient, y is the total number of model training samples, is the actual generated data for the test data of the i-th sample of the model, is the preset generated data for the test data of the i-th sample of the model, n is the total number of model iteration steps, is the loss function value of the a-th iteration step of the model, is the loss function value of the model at the a-1th iteration step, and is the weight value, .

[0135] The technical effect of the above technical solution is: by using LDM and Text Encoder as input interfaces and combining the DreamBooth method, the preset basic model can be effectively fine-tuned according to the specific images and label information in the sample library. This fine-tuning process is not only efficient, but also ensures that the model is accurately adjusted for specific business needs, thereby improving the accuracy and relevance of the model-generated images. During the fine-tuning process, the operation is performed through the stable-diffusion-webui warehouse of AUTOMATIC1111, ensuring the stability and reliability of the entire fine-tuning process. At the same time, the generated CheckPoint model file ends with .ckpt or .safetensor. This standardized format makes the model file easy to store, transfer and load. Testing the CheckPoint model through the Prompt matrix script can comprehensively evaluate the performance of the model under different preset prompt word matrices. This testing method helps to discover potential problems of the model. The introduction of the fitting convergence coefficient provides a quantitative indicator for judging whether the model meets the preset fitting convergence conditions. By calculating the fitting convergence coefficient and comparing it with the preset convergence threshold and fitting range threshold, the state of the model can be accurately judged and the training parameters can be adjusted accordingly. This data-based decision-making method ensures the accuracy and effectiveness of model adjustment. Based on the judgment results, training parameters such as learning rate, batch size, number of iterations, etc. can be flexibly adjusted to optimize the performance of the model. This flexible adjustment mechanism enables the model to adapt to different business needs and data characteristics, improving the generalization ability and practicality of the model.

[0136] In one embodiment of the present invention, the second model test adjustment module includes:

[0137] The second fine-tuning module is used to adjust the standard CheckPoint model through the training script provided by kohya_ss of the LoRA method to obtain the LoRA model file ending with .ckpt or .safetensor;

[0138] The second test module is used to test the picture data generated by the LoRA model under different preset prompt word matrices and the picture data generated by the LoRA model under different preset weights through the X / Y / Z chart script provided by stable-diffusion-webui to obtain second test data;

[0139] The second calculation and adjustment module is used to calculate the fitting convergence coefficient of the LoRA model according to the second test data, judge whether the LoRA model meets the preset fitting convergence condition according to the fitting convergence coefficient of the LoRA model, obtain a judgment result, and adjust the training parameters of the LoRA model according to the judgment result until the second test data of the LoRA model meets the preset fitting convergence condition to obtain a standard LoRA model.

[0140] The working principle of the above technical solution is as follows: the second fine-tuning module is used to adjust the standard CheckPoint model through the training script provided by kohya_ss of the LoRA method to obtain a set of LoRA model files ending with .ckpt or .safetensor for a specific topic (size is between 16 and 144 MB); the second test module is used to test the screen data generated by the LoRA model under different preset prompt word matrices and the screen data generated by the LoRA model under different preset weights through the X / Y / Z chart script provided by stable-diffusion-webui to obtain the second test data; the second calculation and adjustment module is used to calculate the fitting convergence coefficient of the LoRA model according to the second test data, judge whether the LoRA model meets the preset fitting convergence condition according to the fitting convergence coefficient of the LoRA model, obtain the judgment result, and adjust the training parameters of the LoRA model according to the judgment result until the second test data of the LoRA model meets the preset fitting convergence condition to obtain the standard LoRA model.

[0141] The technical effect of the above technical solution is: by adjusting the standard CheckPoint model using the LoRA method, a set of LoRA model files for specific topics can be obtained. Compared with the standard model, the LoRA model file has a smaller size (16~144MB), which makes the model more efficient and convenient in terms of storage, transmission and deployment. At the same time, the LoRA method can significantly reduce the number of model parameters while maintaining the model performance, thus achieving the lightweight of the model. Through the X / Y / Z chart script provided by stable-diffusion-webui, the performance of the LoRA model under different preset prompt word matrices and different preset weights can be fully tested. This test method can reveal the performance differences of the model under different conditions and provide accurate data support for subsequent parameter adjustment. By fine-tuning the model parameters, the generation quality and diversity of the LoRA model under specific topics can be further improved. When calculating the fitting convergence coefficient of the LoRA model, an evaluation method similar to that of the standard CheckPoint model is adopted. The introduction of this indicator makes the evaluation of model performance more objective and quantitative. By comparing the fitting convergence coefficient with the convergence threshold and fitting range threshold of the preset fitting convergence condition, the state of the LoRA model can be accurately judged, thereby guiding the direction and amplitude of parameter adjustment. According to the judgment results of the second test data and the fitting convergence coefficient, the training parameters of the LoRA model, such as learning rate, weight, etc., can be flexibly adjusted. This flexible adjustment mechanism helps to find the best model configuration and further improve the generation ability and generalization performance of the LoRA model under specific topics.

[0142] In one embodiment of the present invention, the local modification module includes:

[0143] The image generation module is used to obtain the image generation interface, call the corresponding model through HTTP to generate the image, and obtain the generated image;

[0144] Generate and return the corresponding theme image through the feature tag in the prompt parameter of the generate picture interface;

[0145] The image modification module is used to select multiple input conditions to input into the image generation model, perform black and white mask operations on the parts of the image that need to be modified, and generate and return the partially redrawn target image through the image generation interface.

[0146] The working principle of the above technical solution is: the picture generation module is used to obtain the picture generation interface, the picture generation interface includes a RESTful API interface for text-generated pictures and picture-generated pictures, and the corresponding model is called through HTTP to generate the picture to obtain the generated picture; the corresponding subject image is generated and returned through the feature tag existing in the prompt parameter of the picture generation interface; the picture modification module is used to select a variety of input conditions to input the image generation model, perform black and white mask operations on the part of the picture that needs to be modified, and generate and return a partially redrawn target picture through the picture generation interface.

[0147] The technical effect of the above technical solution is: providing a RESTful API interface for text-generated images and image-generated images, so that users can easily call the corresponding model through HTTP to generate images. This interface design not only improves the user experience, but also makes the interface highly flexible and can adapt to image generation tasks under different scenarios and requirements. Through the feature tags in the prompt parameter of the generated image interface, the corresponding theme image can be generated and returned. This feature tag-based generation method allows users to accurately control the generated content and style of the image, thereby meeting the image requirements under different themes. By selecting a variety of input conditions to input the image generation model, the black and white mask operation is performed on the part of the image that needs to be modified, and then the partially redrawn target image is generated and returned through the generated image interface. This function enables users to make refined modifications and redraws to specific areas while retaining most of the original image content, thereby improving the efficiency and accuracy of image editing. By calling the corresponding model through HTTP to generate images, an efficient and real-time image generation process can be achieved. Whether it is text-based feature tag generation or image-based partial redrawing, it can be completed in a short time.

[0148] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A planning intention graph generation method based on an image generation model, characterized in that: The method comprises: S1. Obtain feature labels and sample images, preprocess the sample images, label the preprocessed sample images using feature labels, delete redundant label information, obtain processed feature labels, and generate a sample library; S2. Adjust and accept the preset basic model through the diffusion model to obtain the CheckPoint model and the first test data, calculate the fitting convergence coefficient of the CheckPoint model, and adjust the training parameters of the model according to the fitting convergence coefficient until the CheckPoint model meets the preset fitting convergence conditions to obtain the standard CheckPoint model; Wherein, the S2 includes: Get the preset basic model, input the sample library into LDM and Text Encoder, and fine-tune the preset basic model through the stable-diffusion-webui repository of AUTOMATIC1111; Get a CheckPoint model file ending with .ckpt or .safetensor after fine-tuning; Using the Prompt matrix script provided by stable-diffusion-webui, the screen data generated by the CheckPoint model under different preset prompt word matrices are tested to obtain first test data; Calculating a fitting convergence coefficient of the CheckPoint model according to the first test data, judging whether the CheckPoint model meets a preset fitting convergence condition according to the fitting convergence coefficient, obtaining a judgment result, and adjusting a training parameter of the CheckPoint model according to the judgment result until the first test data of the CheckPoint model meets the preset fitting convergence condition, thereby obtaining a standard CheckPoint model; S3. The standard CheckPoint model is adjusted by the LoRA method to obtain a LoRA model, and an acceptance test and a weight screen test are performed on the LoRA model by a preset chart script to obtain second test data, and the training parameters of the LoRA model are adjusted according to the second test data until the LoRA model meets the preset fitting convergence conditions to obtain a standard LoRA model; Wherein, the S3 includes: Adjust the standard CheckPoint model through the training script provided by kohya_ss of the LoRA method to obtain the LoRA model file ending with .ckpt or .safetensor; Through the X / Y / Z chart script provided by stable-diffusion-webui, the picture data generated by the LoRA model under different preset prompt word matrices and the picture data generated by the LoRA model under different preset weights are tested respectively to obtain the second test data; Calculate the fitting convergence coefficient of the LoRA model according to the second test data, judge whether the LoRA model meets the preset fitting convergence condition according to the fitting convergence coefficient of the LoRA model, obtain a judgment result, and adjust the training parameters of the LoRA model according to the judgment result until the second test data of the LoRA model meets the preset fitting convergence condition, and obtain a standard LoRA model; S4. Generate an image through an image generation interface, perform partial redrawing of the image through a variety of input conditions, and obtain a target image.

2. According to claim 1, a planning intention graph generation method based on an image generation model is characterized in that: The S1 includes: Obtain business demand information, classify business demand information according to subject types, and obtain a variety of demand classification information; Generate corresponding trigger feature labels for each demand classification information; Obtain sample materials from a sample material library, and filter the sample materials according to preset conditions to obtain sample images; Performing image preprocessing on the sample image to obtain a preprocessed sample image; Label the preprocessed sample images by triggering feature labels and generate corresponding label description files; The feature labels that do not meet the preset association strength threshold in the label description file are deleted through the association analysis method to obtain the feature labels that meet the preset association strength threshold, which are the standard feature labels.

3. According to claim 1, a planning intention graph generation method based on an image generation model is characterized in that: The S4 includes: Get the image generation API, call the corresponding model through HTTP to generate the image, and get the generated image; Generate and return the corresponding theme image through the feature tag in the prompt parameter of the generate picture interface; Select multiple input conditions to input into the image generation model, perform black and white mask operation on the part of the image that needs to be modified, and generate and return the partially redrawn target image through the image generation interface.

4. A planning intention graph generation system based on an image generation model, characterized in that: The system comprises: The image label generation module is used to obtain feature labels and sample images, preprocess the sample images, label the preprocessed sample images with feature labels, delete redundant label information, obtain processed feature labels, and generate a sample library; A first model test adjustment module is used to adjust and accept the preset basic model through the diffusion model, obtain the CheckPoint model and the first test data, calculate the fitting convergence coefficient of the CheckPoint model, and adjust the training parameters of the model according to the fitting convergence coefficient until the CheckPoint model meets the preset fitting convergence condition, thereby obtaining the standard CheckPoint model; Wherein, the first model test adjustment module includes: The first fine-tuning module is used to obtain the preset basic model, input the sample library into LDM and Text Encoder, and the diffusion model, and fine-tune the preset basic model through the stable-diffusion-webui warehouse of AUTOMATIC1111; Get a CheckPoint model file ending with .ckpt or .safetensor after fine-tuning; The first test module is used to test the screen data generated by the CheckPoint model under different preset prompt word matrices through the Prompt matrix script provided by stable-diffusion-webui to obtain first test data; a first calculation and adjustment module, configured to calculate a fitting convergence coefficient of the CheckPoint model according to the first test data, determine whether the CheckPoint model satisfies a preset fitting convergence condition according to the fitting convergence coefficient, obtain a determination result, and adjust a training parameter of the CheckPoint model according to the determination result until the first test data of the CheckPoint model satisfies the preset fitting convergence condition, thereby obtaining a standard CheckPoint model; The second model test adjustment module is used to adjust the standard CheckPoint model through the LoRA method to obtain the LoRA model, perform acceptance test and weight screen test on the LoRA model through a preset chart script to obtain second test data, and adjust the training parameters of the LoRA model according to the second test data until the LoRA model meets the preset fitting convergence conditions to obtain the standard LoRA model; Wherein, the second model test adjustment module includes: The second fine-tuning module is used to adjust the standard CheckPoint model through the training script provided by kohya_ss of the LoRA method to obtain the LoRA model file ending with .ckpt or .safetensor; The second test module is used to test the picture data generated by the LoRA model under different preset prompt word matrices and the picture data generated by the LoRA model under different preset weights through the X / Y / Z chart script provided by stable-diffusion-webui to obtain second test data; A second calculation and adjustment module is used to calculate the fitting convergence coefficient of the LoRA model according to the second test data, judge whether the LoRA model meets the preset fitting convergence condition according to the fitting convergence coefficient of the LoRA model, obtain a judgment result, and adjust the training parameters of the LoRA model according to the judgment result until the second test data of the LoRA model meets the preset fitting convergence condition to obtain a standard LoRA model; The local modification module is used to generate images through the image generation interface, and to redraw the local part of the image through various input conditions to obtain the target image.

5. A planning intention graph generation system based on an image generation model according to claim 4, characterized in that: The image label generation module includes: The label generation module is used to obtain business demand information, classify the business demand information according to the subject type, and obtain a variety of demand classification information; Generate corresponding trigger feature labels for each demand classification information; The image screening module is used to obtain sample materials from the sample material library, screen the sample materials according to preset conditions, and obtain sample images; Performing image preprocessing on the sample image to obtain a preprocessed sample image; Label the preprocessed sample images by triggering feature labels and generate corresponding label description files; The redundant deletion module is used to delete the feature tags that do not meet the preset association strength threshold in the tag description file through the association analysis method, and obtain the feature tags that meet the preset association strength threshold, which are the standard feature tags.

6. A planning intention graph generation system based on an image generation model according to claim 4, characterized in that: The local modification module includes: The image generation module is used to obtain the image generation interface, call the corresponding model through HTTP to generate the image, and obtain the generated image; Generate and return the corresponding theme image through the feature tag in the prompt parameter of the generate picture interface; The image modification module is used to select multiple input conditions to input into the image generation model, perform black and white mask operations on the parts of the image that need to be modified, and generate and return the partially redrawn target image through the image generation interface.