×
all 55 comments

[–]Sentient_Flow 23 points24 points  (4 children)

Some of the imperfect ones are kind of nice tbh

[–]mattjb 7 points8 points  (2 children)

Agreed. Maybe a future update will allow for easy toggling on/off the negative prompt box so as to see what the results are both ways.

[–][deleted] 1 point2 points  (1 child)

The thing is with sd is that anything you can think to type will influence it in some way depending on where you put it in the prompt. There's not really perfect or imperfect, just certain words or phrases will add things or remove things.

[–]The_SuperTeacher 0 points1 point  (0 children)

this is an easy fix, you just have to create an option so that every user can ass their own negative prompts as toggling buttons.

[–]PlatypusAnagram 0 points1 point  (0 children)

They're certainly more interesting and less uniform, it will be great as we develop more tricks to keep out the truly messed up images without uniformizing everything.

[–]xrenaissance 11 points12 points  (16 children)

This has the duplicates removed, maybe it helps steering the attention

((((ugly)))), (((duplicate))), ((morbid)), ((mutilated)), [out of frame], extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), (fused fingers), (too many fingers), (((long neck)))

[–]lucid8 9 points10 points  (6 children)

God forbid somebody confuses this for a main prompt instead of a negative one :D

[–]twicefangirl00 2 points3 points  (1 child)

[–]DavesEmployee 1 point2 points  (0 children)

Now try doing them with the original prompt as the negative

[–]stonkersson 1 point2 points  (0 children)

brilliant idea! exactly what i needed for horror creatures

[–]olllj 1 point2 points  (0 children)

i LOVE to occasionally opposite-day-swap negatives and positives, mostly to refine my priorities on the negative prompts. eg. negatives tend to result a blue image almost always, when used as positives, even when i do not have "sonic" nor "blue phase" in there. this is a strong hint to also negative-promt the color "blue" in many contexts.

i used this to also maybe add "clip art" and "stock image" and "corners" and "sharp 2d edges" to my list of negatives. currently testing how much of a reasonable-priority those are.

[–][deleted] 0 points1 point  (0 children)

((((ugly)))), (((duplicate))), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))), out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands, (fused fingers), (too many fingers), (((long neck)))

i accidently did that lol it was weird

[–]olllj 2 points3 points  (8 children)

same less dupe entries, extended and sorted by me

(((bad art))), (((stock image))), (((stock photo))), (((stock-photo))), ((bad fan art)), ((lazy art)), ((low quality)), (low efford), (rushed art), depressed, blue phase, immature, digimon, sonic, original character, OC, children, cartoon, stuffed animal, (((4chan))), (((twitter))), ((Tik Tok)), ((tiktok)), fascist, racist, Machiavellian, pepe the frog, blackface, dictated, controlled, dominated, uniform, medieval, religion, religious, holy, sacred, Russian, boring, monotone, normal, common, wrong distance, far away object in front of nearer object, (((out of frame))), ((watermark))),((signature)), striped, borders, white border, cutout, collage, incomplete word, cut off text, half letter, latent space, (((overexposed))), (((glow))), glare, lens flare, telescopic interference, low res, lowres, 3d render, (((underexposed))), ((dark)), blackness, dark background, black background, black rectangle, contour, monochrome, colorblind, green skin, ((long exposure time)), ((noisy)), (grainy), (dead pixel), (dusty), dirty, blurry, blur, smeared, fog, out of focus, high Depth of field, floating branch, floating rock, floating bush, floating tree, (((ugly))), (((bad composition))), (((bad proportions)), (((bad anatomy))), ((mangled)), ((distorted)), ((gross proportions), ((duplicate)), (((horrific))), ((mutated)), ((mutation)), (fisheye camera), wide angle camera, deformed, disfigured, morbid, long body, asymmetric, poorly drawn face, cloned face, cloned head, asymmetric ears, asymmetric ear rings, floating hair, (long neck), cross eyed, staring, stare, stare into the camera, look at the camera, blinking, winking, makeup, lipstick, eye liner, eyeliner, kitsch, bad art, bad taste, unnatural, staged, missing limb, missing arm, missing leg, floating limb, disconnected limb, extra limb, too many fingers, extra fingers, malformed limbs, malformed hands, poorly drawn hands, (mutated hands), (mutated fingers), mutilated hands, asymmetric butt, butthole, extra tail, missing tail,

[–]AussieGamedev 15 points16 points  (4 children)

I noticed that you have such tags as "Russian" in the negative prompt. As well as "racism", "fascism". It's interesting how you manage to combine ethnic hatred towards russians and be "against" racism and fascism. Nothing new though - so caled neo-liberals are well known for logical errors being core of your ideology.

Also, it seems that your negative prompts list is more of a political manifesto or an oath of loyalty to twitter users. You are not required to do that in your communication with an artificual neural network, did you know it?

[–]Putrid-Ad-4562 12 points13 points  (1 child)

Did you just get triggered over a negative prompt lmao

[–]TLJDidNothingWrong[🍰] 7 points8 points  (0 children)

The prompt list itself isn't the concern. The nature of the tags that were added to it by a human with real-life ideals, values, and opinions, is.

They're a wider reflection of our society. That obviously has vast implications for millions of people beyond words.

[–]klashnkoof1 0 points1 point  (0 children)

Daddy chill.

Nah I would be feeling the same especially am half Russian :/

[–]Meowingway 0 points1 point  (0 children)

Haha for real. Idk if they're trolling or what but, I'm pretty liberal and never would have thought in a million years to put some whacky manifesto junk or virtue signaling derp in the negative prompt box. Maybe they're worried Pepe the Frog is going to magically pop up in their AI images and steal their waifu pics and crypto coins lmfaooooo. "Missing Brain" should be in their neg prompt too lol.

[–]Adventurous-Abies296 2 points3 points  (1 child)

Fixed:
(((bad art))), (((stock image))), (((stock photo))), (((stock-photo))), ((bad fan art)), ((lazy art)), ((low quality)), (low efford), (rushed art), depressed, blue phase, immature, digimon, sonic, original character, OC, children, cartoon, stuffed animal, (((4chan))), (((twitter))), ((Tik Tok)), ((tiktok)), boring, monotone, normal, common, wrong distance, far away object in front of nearer object, (((out of frame))), ((watermark))),((signature)), borders, white border, cutout, collage, incomplete word, cut off text, half letter, latent space, (((overexposed))), (((glow))), glare, lens flare, telescopic interference, low res, lowres, 3d render, (((underexposed))), ((dark)), black rectangle, contour, monochrome, colorblind, green skin, ((long exposure time)), ((noisy)), (grainy), (dead pixel), (dusty), dirty, blurry, blur, dumb dude that uses Reddit to spread propaganda, high Depth of field, floating branch, smeared, fog, floating rock, out of focus, floating bush, floating tree, (((ugly))), (((bad composition))), (((bad proportions)), (((bad anatomy))), ((mangled)), ((distorted)), ((gross proportions), ((duplicate)), (((horrific))), ((mutated)), ((mutation)), (fisheye camera), wide angle camera, deformed, disfigured, morbid, long body, asymmetric, poorly drawn face, cloned face, cloned head, asymmetric ears, asymmetric ear rings, floating hair, (long neck), cross eyed, bad art, bad taste, unnatural, staged, missing limb, missing arm, missing leg, floating limb, disconnected limb, extra limb, too many fingers, extra fingers, malformed limbs, malformed hands, poorly drawn hands, (mutated hands), (mutated fingers), mutilated hands,

[–]anashel 6 points7 points  (0 children)

Thanks, very very interesting. Did not realized the power of negative prompt. I made a similar twist but removing oil painting and using photographic and realistic.

https://www.reddit.com/r/StableDiffusion/comments/xwtzhg/used\_uthundert\_massive\_prompt\_research\_but/

[–]Adorable_Yogurt_8719 20 points21 points  (5 children)

It has some effect but I'm not sure if it's having the intended effect. Particularly in the 6th example, the one without the negative prompt features no hands whereas the one with the negative prompt has a messed up hand so it seems to have backfired. Everything has some effect, I don't think there is any alteration to the prompt you can add that won't produce some difference in the output but it seems like the idea that negative prompts are fixing a lot of these problems is more of a placebo.

As I understand it, adding a negative prompt for something like deformed hands is only going to exclude the portion of the data set that is specifically tagged as having deformed hands which is probably not many. It's not trying to give you deformed hands, it's just not great at figuring out what hands should look like.

[–]bmemac[S] 14 points15 points  (0 children)

In the interest of being non-biased I did not cherry pick images, I just ran through them 8 times in order. However in my fooling around after the test I did come across a few prompt/ seed combos where adding the negative prompt clearly fixed some missing/ extra limbs but it's not consistent. The problem areas may have been "fixed" just by the subject having been relocated slightly. An equal number of times adding the negatives zoomed the view out and turned the subject to face away. I think the only takeaway I came away with is If you have an image you like but it's got some abnormalities you can try running prompt/ seed combo again with negatives and see what happens...

[–]YoYourYoyoIsYou 4 points5 points  (3 children)

My understanding of negative prompts is different in that I thought it generates a version of the image with positive prompts for the negative input and then moves the final output image generation away from that. So in essence it doesn't exclude any part of the model in any way, instead it "imagines" what you wouldn't want and then trys to exlude those elements from the final generated image.

Edit: In the aim of fighting the confusion around this if anyone is interested please see the Automatic1111 wiki page for the explanation on how they implemented the negative prompt feature - https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Negative-prompt

Which makes no mention of explicitly excluding parts of the model during generation.

[–]kaibee 2 points3 points  (2 children)

My understanding of negative prompts is different in that I thought it generates a version of the image with positive prompts for the negative input and then moves the final output image generation away from that. So in essence it doesn't exclude any part of the model in any way, instead it "imagines" what you wouldn't want and then trys to exlude those elements from the final generated image.

No that isn't right. Negative prompts don't require more iterative steps.

[–]YoYourYoyoIsYou 7 points8 points  (1 child)

Maybe not exactly but here is how Automatic1111 has explained it in the github wiki page

"This launches the sampler that repeatedly:

de-noises the picture guiding it to look more like your prompt (conditioning)

de-noises the picture guiding it to look more like an empty prompt (unconditional_conditioning)

looks at difference between those and uses it to produce a set of changes for the noisy picture (different samplers do that part differently)

The sampler then will look at differences between image de-noised to look like your prompt (a castle), and an image de-noised to look like your negative prompt (grainy, fog), and try to move the final results towards the former and away from latter.

"

[–]Adorable_Yogurt_8719 1 point2 points  (0 children)

I don't think negative prompts are useless, it probably does have vectors for things like grainy images and foggy images and can move your result further away from those, I just haven't seen any evidence that it's effective for things like multiple limbs or deformed hands as I don't think the training data has the vectors for understanding what those negative prompts mean.

[–]Snoo59220 5 points6 points  (8 children)

My theory was that since in these examples the "hands" token was repeated multiple times in the negative prompt, the model just tries not to draw them at all, at least that's what I saw in the majority of similar posts, but not in this case. Nice to see a comparison with same seeds, so now I'm not sure anymore :D

[–]bmemac[S] 3 points4 points  (3 children)

Me either. At first I was really impressed so I decided to run the small test and spread the gospel. Then I became a little less convinced as I ran the test and experimented around. Sometimes the negative list can take a mess of crap and turn it into something really nice, other times it just turns a bad image into another bad image. Also, I've noticed that it pulls image towards photo realistic results whether you wanted that medium or not.

[–]MartialST 3 points4 points  (2 children)

That is supposedly because you included "poorly drawn" in the negatives.

[–]bmemac[S] 0 points1 point  (1 child)

Ah, I see that now. Makes sense.

[–]shortandpainful 6 points7 points  (3 children)

I did a test last night with the exact same negative prompt list, and I preferred the version without the negative prompt at least 80% of the time. I think it heavily depends on what your positive prompt is. In most cases, the version without the negative prompt had better overall composition and more interesting/painterly details than the version with. I actually feel the same way with some of these, e.g., seed 1374760823.

Overall, even if I did like the result, the composition of the images is too drastically different for me to be comfortable using it as a boilerplate. Also, the version with the negative prompt added some mangled hands where the hands were fine in the original, which also happened here in a couple of the pictures.

This may be seen as sacrilege, but I have actually found that using very low step counts does a lot for eliminating weird anatomical details and typically produces better-looking compositions at the cost of less detail work. I’m talking 10-15 steps in euler.

[–]Ok_Entrepreneur_5833 5 points6 points  (1 child)

Any negative prompt that adds "drawn" as one of the tokens I removed. The "poorly drawn" I've found to be too powerful in eliminating some key things I'm looking for in a painterly image.

Did some testing token by token on my own negative prompts. That was one I found to have quite a bit of impact. Negative prompting does work to improve your output but the catch is you can't just "boilerplate" the thing as you mentioned and I see everyone doing that all the time. Just chucking the whole thing in to every image like it's some magic cure-all sauce.

Going in and crafting the right negative prompt for your own particular needs is the way to go and that requires experimentation for sure as it's just as important to get a good set of negs as it is for positives. Half the power of the prompt is in there.

Not arguing with you, just adding on to the boilerplate part of your comment for anyone who bothers reading this far heh.

I think people are using negation like they do with Rutkowski. "I saw someone else use it in their image I liked so I use it in all my images" without understanding it or bothering to see what any of it does. And that's fine with me to each their own I'm not concerned at all with how people use this for their own ends.

a way low step count and even really low cfg can get you some great images out of the ancestral samplers I'll agree. As well as Euler for sure. (again not arguing anything you said, a lot of people see a big block of words and assume I'm trying to fight them haha. Just having my coffee and I liked your part about people boilerplating their negatives which is what they clearly do.)

[–]bmemac[S] 2 points3 points  (0 children)

Yep, I've reached all the same conclusions. There are a few that I almost always have loaded in the box like "hat", "flowers in hair", "watermark" and "signature" but trying to come up with one negative prompt to rule them all is futile I think. (At least so far.)

[–]bmemac[S] 3 points4 points  (0 children)

I've reached the same conclusion after some more experimentation. It's a tool to have in your toolbox and it's worth knowing how to use but it's not a multi tool to attack every problem with. You shouldn't have it loaded in your negative box all the time. When you come across a particular seed/prompt that just needs some tweaking you can craft a negative prompt suited for that specific seed/prompt. If you use one list like this all the time, I agree, you're probably going to miss out on some interesting compositions.

[–]_CMDR_ 9 points10 points  (0 children)

What's interesting to me is that the negative prompting is increasing the overall quality hit rate while reducing the occasional outcome of less conventionally pretty but interesting looking and not generic people. Especially in seeds 1374760823 and 1532348685

[–]Surlix 1 point2 points  (3 children)

Quick question as i just started creating stuff with stable diffusion: (currently only in a google collan notebook)

How do I use negative prompts? do I just put "negative prompt:X" into the prompt?

[–]bmemac[S] 4 points5 points  (2 children)

Automatic1111's webui has a separate box to enter negative prompts. It has a google colab option as well but I've never used it.

[–]Surlix 2 points3 points  (1 child)

Automatic1111's webui

Awesome! Thank you, I was just stitching together a pipeline for my purposes, but I did not knew if there are different settings and better methods. :D

[–]pyr0kid 0 points1 point  (0 children)

you can also try out the NMKD version, less options but ive found it runs better on my computer.

in that fork you do negatives like [this, this, this], but i think it has tighter limits for how much you can input.

[–]International-Ad792 1 point2 points  (0 children)

Gotta work on the hands a bit more.

<image>

[–]John_Horn 1 point2 points  (1 child)

You're way past the 75 token limit though. The so-called "negative prompting" and paranthese tricks don't work the way you may think they do. :) This is from what OccultSage (one of the developers on SD) said in the discord during the beta. Quote:
OccultSage — 08/09/2022
Facts about prompting:
* The CLIP tokenizer only has 77 tokens of context. (now 75 because prompt-start and end costs 2 tokens)
* The CLIP tokenizer is case insensitive.
* The CLIP tokenizer has a smaller vocabulary than GPT BPE. (~30k tokens)
* This means that doing tricks such as ( or ) and _ will actually just reduce your effective context.
* The CLIP tokenizer also truncates at 77 tokens, so anything past that? Nothing.

The same is true for commas and other punctuation. The only thing special non-letter characters do, is dilute and reduce the effective context of a prompt. Anything past 75 tokens will be truncated and ignored completely.
Try a more controlled experiment, start small with a sameseed.
one red blue and yellow dress
one (red) blue and yellow dress
one ((red)) blue and yellow dress
one (((red))) blue and yellow dress

Then measure whether or not the area of red decreases, or whether it just gets distributed differently.

[–]bmemac[S] 4 points5 points  (0 children)

Yes that's all correct, for the main prompt box. The negative prompt box doesn't have the same limitations. If it did removing the last word or phrase wouldn't have an impact on the image because it would already have been ignored. Since removing the last word or phrase does have an impact on image the negative prompt box does not have the 75 token limit. It may still have a limit but it's for sure greater than 99.

[–]Angry_Grandpa_ 0 points1 point  (2 children)

They need incorporate the negative prompts or at least make it easy to click a button to avoid results that generally not wanted.

[–]SPACECHALK_64 4 points5 points  (1 child)

Automatic1111 has said the next release will feature a "make good picture" setting enabled by default.

[–]mattjb 2 points3 points  (0 children)

Like the hidden ones that Midjourney uses?

[–]jonesaid 0 points1 point  (0 children)

Good to see that the negative prompt may actually work!

[–]ggkth 0 points1 point  (2 children)

is there 75 limit on negative prompt?

[–]bmemac[S] 2 points3 points  (0 children)

It would seem not, as that list clocks in at almost 100 and removing even one will alter image, so it appears that all of them are being used.

[–]DrEyeBender 0 points1 point  (0 children)

Yes, the negative prompt has the same token rules as the regular prompt does.

[–]Qwerty177 0 points1 point  (1 child)

what are the brackets for?

[–]KioBlood 0 points1 point  (0 children)

They improve the strength of the word, telling the ai to pay closer attention to that detail when generating