CFG negative prompts #999
raefu
started this conversation in
Feature suggestions
Replies: 2 comments 1 reply
-
That's a very cool idea |
Beta Was this translation helpful? Give feedback.
0 replies
-
This seems to be the only thing holding this web ui down, negative prompts generate such better pictures its not even worth all the extra features this repo has over Automatic1111's simply because of the lack of negative prompts. This needs to be added ASAP. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is distinct from negative prompt weighting, and is used directly by the classifier free guidance process.
Effectively, if you convert the line in webui.py from
uc = (model if not opt.optimized else modelCS).get_learned_conditioning(len(prompts) * [""])
to something likeuc = (model if not opt.optimized else modelCS).get_learned_conditioning(len(prompts) * ["blurry, bad anatomy, disfigured"])
, it will guide the generated image away from images like the undesired negative prompt.In the UI, this could be either part of the prompt, by extending the prompt weighting to treat negative weights as options for the negative prompt (
human:1 bad anatomy:-1
), perhaps with a toggle, or another textbox.Deeper discussion and an example (clothed anime woman): https://cdn.discordapp.com/attachments/1010980910063161406/1018369516905963640/unknown.png
Beta Was this translation helpful? Give feedback.
All reactions