HomeTutorials
【Beginner's Guide to Stable Diffusion】Boilerplate negative prompts in v2 model

【Beginner's Guide to Stable Diffusion】Boilerplate negative prompts in v2 model

AI Learning  Assistant NO 2
AI Learning Assistant NO 2
July 28th, 2023

We have already touched on the importance of negative prompts in v2. Now let’s find a good universal negative prompt.

Search for a good negative prompt

I will use 2.1 model (512-pixel) for this test. The originals without negative prompt are

Not bad, but could be improved. Using our minimalist negative prompt, we immediately see improvements:

Adding underexposed and overexposed helps to make the images less flat.

It doesn’t hurt to add low contrast.

Next, let’s test this popular negative prompt for v2 floating around on the internet:

ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, blurry, bad anatomy, blurred, watermark, grainy, signature, cut off, draft

I think it’s doing a decent job although it may have modified the style slightly. This could be caused by the negative keywords blurry, blurred, grainy, draft. Some styles could look just that. Deleting these keywords seems to get back closer to the original style.

Next, add the lighting keywords we just used (low contrast, underexposed, overexposed). It does help the contrast and dynamic range.

Now adding a few more negative keywords to avoid sampling bad art or newbies drawings, we arrive at the last negative prompt below. This is a pretty decent boilerplate negative prompt without affecting styles.

ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, watermark, signature, cut off, low contrast, underexposed, overexposed, bad art, beginner, amateur, distorted face

This is a huge improvement over the without negative prompts. You may want to take out low contrast, underexpose or overexpose if it is the style.

Universal negative prompt

We will put the universal negative prompt for v2 we just found to a battery of test to see how well it performs. As a recap, the universal negative prompt is

ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, watermark, signature, cut off, low contrast, underexposed, overexposed, bad art, beginner, amateur, distorted face

Photograph style

Prompt:

A man walking around her neighborhood, highlight hair, detailed eyes, sharp focus, young face, perfect symmetric face, pupil reflecting surroundings, realistic skin, soft healthy skin

The universal negative prompt works nicely with photograph style image. The guy looks a league higher and definitely had spent more time on his hair in the morning…

Amine style

Prompt:

anime style girl on battleground, holding a ninja sword, detailed eyes, perfect face

The universal negative prompt helped characters equally well in anime style. The subject stands better, more handsome, and more ready to fight as it seems. The ninja sword is straighten up and looks more dangerous.

Oil painting style

impressionist oil painting of a young man standing right next to a red tesla roadster by john sargent

The universal negative prompt helps both the Tesla and the guy. Instead of showing a flat-tired beat-up car with a troubled teenager, now it shows a shinny new car with a young man who looks a million bucks.

Conclusion

Looks like this v2 universal negative prompt works well under variety of styles! This concludes our two-part series of negative prompt.

To see more content about Stable Diffusion from zero click:https://www.hayo.com/article/64c21001ef669957a0d21e63

Reprinted from View Original
Collection Navigation
Collection
# 1 [Beginner's Guide] Stable Diffusion Absolute beginner’s guide (+online demo)
# 2 [Beginner's Guide] How to use img2img to turn an amateur drawing to professional with Stable Diffusion (Image-to-image)
# 3 [Stable Diffusion Repair] Beginner’s guide to inpainting (step-by-step examples)
# 4 [Beginner's Guide] How to remove undesirable objects with AI inpainting
# 5 [Beginner's Guide] Video to video with Stable Diffusion (step-by-step)
# 6 [Beginner's Guide] How do you use Stable Diffusion AI?
# 7 [Beginner's Guide] Top Free Stable Diffusion AI image generator sites
# 8 [Beginner's Guide] Stable Diffusion prompt: a definitive guide
# 9 [Beginner's Guide] Instruct Pix2Pix: Edit and stylize photos with text
# 10 【Beginner's Guide to Stable Diffusion】How to build a good prompt?
# 11 【Beginner's Guide to Stable Diffusion】Rules of thumb for building good prompts
# 12 【Beginner's Guide to Stable Diffusion】What is ChatGPT?
# 13 【Beginner's Guide to Stable Diffusion】Sorting out high-quality prompt words from ChatGPT
# 14 【Beginner's Guide to Stable Diffusion】How to use negative prompts?
# 15 【Beginner's Guide to Stable Diffusion】Negative prompt is important for v2 models
# 16 【Beginner's Guide to Stable Diffusion】Boilerplate negative prompts in v2 model
# 17 【Beginner's Guide to Stable Diffusion】What are those parameters, and should I change them?
# 18 【Beginner's Guide to Stable Diffusion】How many images should I generate?
# 19 【Beginner's Guide to Stable Diffusion】Common ways to fix defects in images
# 20 【Beginner's Guide to Stable Diffusion】Garbled faces and eyes problems
# 21 【Beginner's Guide to Stable Diffusion】How to use VAE to improve eyes and faces
# 22 [Beginner's Guide] How to install Stable Diffusion on Windows (AUTOMATIC1111)
# 23 【Beginner's Guide to Stable Diffusion】Beginner’s guide to inpainting (step-by-step examples)
# 24 【Beginner's Guide to Stable Diffusion】What are custom models?
# 25 【Beginner's Guide to Stable Diffusion】How to control image composition?
# 26 【Beginner's Guide to Stable Diffusion】Generating specific subjects
# 27 [Beginner's Guide] How to install and run Stable Diffusion on Apple Silicon M1/M2 Macs
# 28 [Beginner's Guide] Try the Stable Diffusion online demo
# 29 [Beginner's Guide] Beginner’s guide to Stable Diffusion models and the ones you should know
# 30 [Beginner's Guide] What Can Stable Diffusion Do?
# 31 [Beginner's Guide] Realistic human street portrait
# 32 [Beginner's Guide] How to generate animals in Stable Diffusion
 

Comments

no dataCoffee time! Feel free to comment