sd-dynamic-prompts icon indicating copy to clipboard operation
sd-dynamic-prompts copied to clipboard

Request: Add to negative prompts from normal prompt wildcards

Open qrrbszopgu opened this issue 3 years ago • 13 comments

Would be nice to have some syntax to indicate things that should be added to the negative prompt if a certain wildcard is chosen.

Ex: For a clothing wildcard file that had "denim shorts" on a line, I would indicate on that line that "denim" should also be added to the negative prompt so I don't get results of people dressed head to toe in denim.

qrrbszopgu avatar Dec 02 '22 03:12 qrrbszopgu

would you then simply add denim to the end of the existing negative prompt?

adieyal avatar Dec 02 '22 04:12 adieyal

Yes ideally that's what it would do. I always use a general purpose negative prompt, but some positive prompts don't work well without specific negative prompts added to that.

qrrbszopgu avatar Dec 02 '22 05:12 qrrbszopgu

I'm going to keep this ticket open for a while to see if others need this as well. Given that it requires new syntax it may result in addition complexity and I'm hesitant to implement it if it is a marginal use case

adieyal avatar Dec 02 '22 08:12 adieyal

I'd like this feature too

JohnWJarrett avatar Dec 19 '22 01:12 JohnWJarrett

I would also appreciate this feature

platypusq avatar Dec 31 '22 23:12 platypusq

on my todo list :)

adieyal avatar Jan 01 '23 17:01 adieyal

I agree that this would be a good feature.

penngwynXVII avatar Jan 02 '23 03:01 penngwynXVII

Any suggestions for how to implement this? Would you have something like a || separating positive and negative ,e.g.

clothing.txt

...
denim skirt||denim
...

also, is there consensus that the negative keyword should be appended to the end of the negative prompt?

adieyal avatar Jan 25 '23 05:01 adieyal

Yeah, the || seems like it would be great, I don't use a blank space anywhere except the end "{cow|cat|}" for example, so I don't see any reason it should mess with anything else, though would it still be useable inline, so with my previous example "{cow|cat||lion|}" I do usually use wildcard files, but sometimes for testing, an inline is great...

as for positioning, I think that if the position mattered, it would probably need to be in the main negative in the first place, but that's just me, though you could have it be "denim skirt||#denim" to be at the start and "denim skirt||denim#" for the end could work, or something along those lines, and have nothing to just have it fall wherever it falls... or some other symbol, I just used hash for clarity sake here, maybe an exclamation mark or an astrix

JohnWJarrett avatar Jan 25 '23 09:01 JohnWJarrett

I think using an exclamation mark as the separator for the negative value would be better since i don't think it is used for any other feature. It also usually means "not" in programming languages. You could also allow a "<" or ">" character after it to indicate where to add the text, the start or end of the negative prompt.

acorderob avatar Jan 28 '23 10:01 acorderob

Bump. I am, more and more, wishing for this feature in multiple situations.

acorderob avatar Apr 04 '23 15:04 acorderob

For anyone interested, I made my own extension to manage this: https://github.com/acorderob/sd-webui-sendtonegative

acorderob avatar May 14 '23 09:05 acorderob

For anyone interested, I made my own extension to manage this: https://github.com/acorderob/sd-webui-sendtonegative

that's perfect, thanks for making it

qrrbszopgu avatar Jan 20 '24 07:01 qrrbszopgu