title | app_file | sdk | sdk_version |
---|---|---|---|
prompt-r-gen-sd |
scripts/prompt_rg.py |
gradio |
3.40.1 |
This is a stable-diffusion-webui plug-in (extension), which is mainly used to generate random text prompt words. The original intention of doing this is that I am too lazy to write prompt words, but I also want the prompt words to be generated with one click and have a certain degree of randomness, so I have this plug-in.
Feature preview:https://huggingface.co/spaces/heath1989/prompt-rp
- The number of prompt words generated at one time can be configured, with a minimum of 1 and a maximum of 6
- Can randomize perspective, location, character actions
- Can randomize character clothing: clothes, shoes, socks, underwear, etc.
- Can randomize character description: occupation, hairstyle, hair color, eyes, eye color, facial expression (no negative expressions) )
- NSFW can be configured,
try it yourself - Other enhancements can be configured: whether it is a real photo, colorful, weather, lighting effects, photography technology, items, accessories, etc.
- Locally installed lora/loha/embedding can be configured to generate prompt words by simple input
- Additional prompt words can be input
- Fine manual input is possible, and characters, perspective, etc. can be precisely controlled.
- The generated content can be sent to Wenshengtu with one click
Configuring and modifying this function allows you to enter personal customized text to generate local Lora/Loha/embedding prompt words.
After successfully installing this extension, you can find modelsConfig.xlsx
in the extensions/prompt-r-gen-sd/scripts file, open the excel, and edit it directly.
You can also download it at the following address: https://huggingface.co/spaces/heath1989/prompt-rp/resolve/main/modelsConfig.xlsx
Refer to the diagram below to add your local lora and other model configurations:
After the excel modification is saved, the configuration can take effect in real time. For cloud deployment, the cloud needs to cover `modelsConfig.xlsx` to take effect.Click on the "Lora Loha embedding control" drop-down menu, taking the locally downloaded st louis epoch5.safetensors
as an example,
Enter in the lora box:
- "Shengyi" means "the lora model is random according to the specified weight"
- "Saint Aunt: 0.6" means "the lora model has a fixed weight of 0.6"
For using multiple models, separate them with "," as follows:
- "Shengyi,666:0.8,xyz" means "generate these three prompt words for configuring lora"
By default, the output is in the order of Lora/Loha/embedding. You can change their output order in the order change input box.
- xyz:Lora/Loha/embedding
- yxz:Loha/Lora/embedding
- zxy:embedding/Lora/loha
......
Add fine control module, customizable input overrides random configuration [DONE]- Store the default configuration items and load them automatically next time.
- You can view the historical generation records📝.