Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to negative prompt dynamically #836

Open
rob49152 opened this issue Dec 19, 2024 · 1 comment
Open

Add to negative prompt dynamically #836

rob49152 opened this issue Dec 19, 2024 · 1 comment

Comments

@rob49152
Copy link

When using dynamic prompts it would be handy to be able to insert values into the negative prompt at the same time. For example, say I want to randomly select between 2 characters. {character1|character2}

in character1 has 'female, (Black hair with {red|green|blue|purple} tips), blue eyes'
in character2 has 'female, (white hair), blue eyes'

Sometimes character1 will generate a result with white stripes in the hair for some reason (SD is funny that way). Usually I'd add ((white hair)) into the negative prompt to correct that. But it would then also subtract from character2 whenever it's randomly selected.

So it would be handy if wildcards supported something like this;

in character1 has 'female, (Black hair with {red,|black|blue|purple} tips), blue eyes, --((white hair))--'

so that whenever character1 is randomly selected it will automatically insert ((white hair)) into the negative prompt, but it would never be inserted if character2 is randomly selected.

I hope that explains my idea??

@rob49152
Copy link
Author

never mind, I just found https://github.com/acorderob/sd-webui-prompt-postprocessor that can do pretty much this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant