adieyal / sd-dynamic-prompts

A custom script for AUTOMATIC1111/stable-diffusion-webui to implement a tiny template language for random prompt generation
MIT License
1.96k stars 253 forks source link

Magic Prompt / I'm Feeling Lucky should allow for persistent prefix #670

Open gmta10101 opened 7 months ago

gmta10101 commented 7 months ago

magic prompt, specifically "im feeling lucky" is incredibly powerful, in the sense that you know that incredible prompts exist for a typical subject but dont know what works yet without hours of trial and error, being able to get the most effective prompt descriptions for a particular subject is key.

what is missing is a way to use a previous prefix if you want to keep a style going. or use a lora. right now it just disregards everything in the prompt box and treats as a search.

I would like to suggest adding a syntax for magic prompt elements inside curly braces are prefix/suffix and everything outside are search terms " { (lora:metalic renders:1.1), vibrant colorful, psychedelic } mech warrior "

something like that

akx commented 7 months ago

Curly braces are reserved syntax for variants, so that's unfortunately a no-go...

How about +?

(lora:metalic renders:1.1), vibrant colorful, psychedelic + mech warrior

IOW, if I'm Feeling Lucky is enabled, we'd then do a search for mech warrior and splat (lora:metalic renders:1.1), vibrant colorful, psychedelic back into the prompt as a prefix.

gmta10101 commented 7 months ago

Curly braces are reserved syntax for variants, so that's unfortunately a no-go...

How about +?

(lora:metalic renders:1.1), vibrant colorful, psychedelic + mech warrior

IOW, if I'm Feeling Lucky is enabled, we'd then do a search for mech warrior and splat (lora:metalic renders:1.1), vibrant colorful, psychedelic back into the prompt as a prefix.

amazing, yes that woudl be perfect, just something to seperate out persistant prompt from the search results