stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Feature Request]: Enhance prompt autocomplete for Models/LoRA/etc
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What would your feature do ?
Proposal to improve optional auto-population of prompts beyond currently implemented support.
Currently implemented support:
- Selecting a LoRA adds basic "<lora:filename:1>" to prompt.
- Selecting custom styles adds further information to prompts.
These are helpful, but it is still necessary to keep a notebook of preferred default settings and Trigger tags for numerous models, LoRA, etc.
Suggested improvements:
-
Custom styles expanded to optionally include/apply settings for Sampler, CFG Scale, Clip Skip, Steps, Resolution.
-
Option to automatically load preferred starter prompt and settings from a text file stored alongside the model/LoRA which has the same name in much the same way that a VAE of the same name is loaded, or a PNG of the same name is used as a preview if they exist.
Proposed workflow
If one desires more comprehensive autocompletion for a model/LoRA:
INITIAL PREPARATION
-
Create a text file of matching name in the Model/Lora folder.
-
Text file optionally contains default +/-Prompt, basic settings (such as Sampler, CFG Scale, Steps, Resolution, Style).
WORKFLOW
-
Select models/LoRA as normal.
-
Selecting a Model will automatically load the specified prompt/settings ONLY IF the prompt is currently empty.
-
Selecting a LoRA will automatically append specified "<lora:filename:weight>, trigger_word, trigger_word, etc"
Additional information
No response
You can already put the trigger words (or whatever else) in a matching text file. It's then displayed in the extra networks menu.

Can i ask how you did this?
Make a matching text file, e.g., for Detroit Chloe v2.0.safetensors, you would make Detroit Chloe v2.0.txt.
It's treated as HTML, so you have to replace < with <, > with >, and & with &
Make a matching text file, e.g., for
Detroit Chloe v2.0.safetensors, you would makeDetroit Chloe v2.0.txt.It's treated as HTML, so you have to replace
<with<,>with>, and&with&
Is there documentation for this, or a sample file?
It is not clear from this description whether "treated as HTML" means "plain text but substitute brackets and &" or "document must be valid HTML", or how one would distinguish positive and negative prompts.
Sounds like this might meet one aspect of the suggested enhancement, but more information is required to make it work.
Sorry to keep you waiting.
"plain text but substitute brackets and &"
This one.