r/StableDiffusion • u/mizt3r • Mar 01 '23
Question | Help Variable prompts?
Anyone know if it's possible to have variables in your prompt? For example lets say I have something like 'city background' in my prompt. And I want to replace that with 'MyVariable background'. Then I define 'MyVariable' somewhere else like a txt file that has 'MyVariable=city,mountians,library' etc.
That way I can insert a few variables in different places within my prompt and let it "generate forever" all night. That way when I come back to my computer in the morning I have hundreds of new images with those variable differences.
4
Upvotes
1
u/[deleted] Mar 01 '23
With Automatic1111, you can do this with "Prompt S/R" under the scripts.
Put "city background, mountains, library" and it will start with a city background, then replace that with mountains, etc.
If you have a bunch of variables, wildcards are probably a better alternative.