My first extension that I created for AUTOMATIC1111's Stable Diffusion WebUI that refactors your prompts text to be more legible and ordered.
This will affect the outcome of the rendered image. This is due to how stable diffusion reads prompts. Supposedly, ". . . Words near the front of your prompt are weighted more heavily than the things in the back of your prompt." Here's a side by side comparison of a before and after:
If you have many unorganized prompts in your prompt text box, it can be challenging to find the one you want to adjust. This extension helps you keep your prompt text organized and makes it easier to find specific prompts. For example, suppose you have many prompts related to a particular topic. In that case, you can use the extension to sort those prompts alphabetically, making it easier to find them and adjust them as needed.
- Sorts prompts alphabetically
- Sorts prompts that are enclosed with angle brackets based on the user's preference.
- Auto spacing (No double spaces, adds spaces where there is none, etc)
- In your AUTOMATIC1111's Stable Diffusion WebUI, navigate to the "Extensions > Install from URL" Tab.
- Paste the following URL into the "URL for extension's git repository"
https://github.com/JakeCarterDPM/stable-diffusion-webui-prompt-refactor
- Click the "Install" button!
- Paste prompts into "Source Prompts"
- Click on checkbox settings as desired
- Press "Run" button.
- Get refactored prompts from "Refactored Prompts"
- Make it so the output automatically updates the "txt2img_prompt"
- Support for other encapsulations such as (), [].
- Remove duplicates
GNU General Public License v3.0
I'm still new to stable diffusion and learning the ropes; so if there's something that should be corrected or if you'd like to contribute, you can message me here: https://discord.gg/VZKv4kP