Stable diffusion negative prompts guide | Scribe

Stable diffusion negative prompts guide

  • 3 months ago

    Stable diffusion negative prompts guide

    Negative prompts are one of the most effective tools for improving Stable Diffusion image quality, yet many hobbyists underutilize them. This guide explains what negative prompts do, how to construct them effectively, and provides practical examples you'll use immediately.

    What Negative Prompts Do

    Negative prompts tell Stable Diffusion what to avoid in generated images. While your main prompt describes what you want, the negative prompt guides the model away from unwanted elements—blurry hands, distorted anatomy, watermarks, poor lighting, or artistic styles you dislike. The model uses negative prompts during the denoising process to reduce the likelihood of these features appearing.

    Think of negative prompts as inverse instructions. If you want photorealistic art and include "cartoon, painting, illustration" in your negative prompt, the model will actively work against generating those styles. The strength of this effect depends on your CFG (classifier-free guidance) scale—higher values make both positive and negative prompts more influential.

    How Negative Prompts Work Technically

    When you generate an image, Stable Diffusion performs multiple denoising steps. At each step, it calculates predictions based on your positive prompt and separately based on your negative prompt. The model then adjusts the image away from the negative prediction and toward the positive one. This happens across all denoising iterations.

    The CFG scale (typically 7-15 for most workflows) controls how strongly negative prompts push the generation. A CFG of 7 applies moderate guidance; 12-15 creates stronger adherence to both prompts. Setting CFG too high (20+) can create oversaturated, unrealistic images where the model over-interprets your instructions.

    Different samplers interact with negative prompts differently. DPM++ and Euler samplers generally respect negative prompts well, while some older samplers may be less responsive. Your choice of checkpoint and LoRA weights also affects how effectively negative prompts work—some models are naturally more biased toward certain outputs regardless of your negative prompt.

    Building Effective Negative Prompts

    Start with a base negative prompt covering common quality issues, then customize for your specific generation. Here's a structured approach:

    Quality baseline: "low quality, blurry, distorted, noise, artifacts, compression" addresses fundamental issues most users want to avoid.

    Anatomical concerns: "extra fingers, wrong hands, malformed hands, missing fingers, extra legs, wrong limbs" prevents common defects. These are especially important when generating people.

    Style control: "painting, watercolor, sketch, illustration, cartoon, anime" excludes artistic styles if you want realism. Conversely, if you want realistic results, exclude "3D render, CGI, plastic, fake."

    Facial issues: "cross-eyed, lazy eye, asymmetrical face, weird smile, bad teeth, asymmetrical eyes" targets face-specific problems.

    Technical artifacts: "watermark, text, signature, JPEG artifacts, scan artifacts" removes unwanted marks.

    The length matters but not in a strict way. A negative prompt of 10-20 words is typical; 50+ words is excessive and sometimes less effective. The model weighs all terms equally, so extremely long lists dilute the impact of each term.

    Common Negative Prompt Templates

    For photorealistic people: "low quality, blurry, distorted, extra fingers, wrong hands, cross-eyed, painting, illustration, 3D render, watermark"

    For fantasy/stylized art: "low quality, blurry, ugly, deformed, broken, extra limbs, malformed limbs, JPEG artifacts, watermark, text"

    For landscapes: "low quality, blurry, distorted, oversaturated, muddy colors, fog, haze, watermark, people, text"

    For product/object rendering: "low quality, blurry, distorted, low resolution, watermark, text, distorted perspective, warped"

    These are starting points. Always adjust based on what problems appear in your actual outputs. If your generations consistently have too much chromatic aberration, add "chromatic aberration" to your negative prompt.

    Testing and Refining Your Negative Prompts

    Generate the same prompt multiple times with the same negative prompt and settings to see patterns. If a specific problem appears frequently (asymmetrical eyes, oversaturated colors), add terms addressing it.

    Ablation testing helps identify which negative terms actually help. Generate with your full negative prompt, then remove one term and generate again with identical settings. If removing a term produces worse results, that term is working. If results stay the same, that term may be redundant for your specific checkpoint.

    Keep notes on what works. Different checkpoints respond to negative prompts differently. A negative prompt effective for Realistic Vision may be less effective for a stylized checkpoint. Test your negative prompts with the specific models you use regularly.

    Negative Prompts Across Different Tools

    In Automatic1111 WebUI, enter your negative prompt in the field explicitly labeled "Negative prompt" below the main prompt field. The interface clearly separates positive and negative inputs.

    ComfyUI requires you to connect a "CLIP Text Encode (Negative)" node alongside your positive prompt node, both feeding into the sampler. This explicit node-based approach makes the negative prompt's role visually clear in your workflow.

    Forge (a faster Automatic1111 fork) uses the same interface as Automatic1111, with the negative prompt field immediately below the positive prompt.

    All three tools calculate negative prompts the same way mathematically—the interface is the only difference.

    Advanced Negative Prompt Techniques

    Weighting syntax allows fine-grained control in some implementations. Using (term:0.8) syntax reduces a term's weight, while (term:1.2) increases it. For example, "(blur:0.5) distorted, low quality" makes blur a weaker negative instruction. Not all tools support this equally, so test before relying on it.

    Checkpoint-specific negatives work better when tailored to how that model tends to fail. Anime checkpoints often produce odd hands regardless of negatives, so anime users frequently need stronger hand-related negative terms. Realistic checkpoints may struggle with consistent lighting, making lighting-related negatives more valuable.

    LoRA weight affects negative prompt effectiveness indirectly. A LoRA with high strength (1.0-1.5) can override negative prompts if it pulls the generation strongly toward its training data. If a negative prompt isn't working, lowering LoRA weight sometimes helps the negative prompt take effect.

    Negative prompts interact with VAE choice. Some VAE implementations are cleaner and produce fewer artifacts naturally, reducing the need for artifact-related negative terms. Experiment with different VAE options (VAE, VAE-FP32, others) available for your checkpoint.

    Hardware Considerations

    Negative prompts add minimal computational cost. The extra denoising prediction (calculating based on negative prompt) uses negligible additional VRAM compared to the main generation process. Even on 6GB VRAM cards, negative prompts never become a bottleneck.

    The real limitation is checkpoint and sampler choice, not negative prompts. If you're running into VRAM limits, address those before worrying about negative prompt efficiency.

    Common Mistakes to Avoid

    Overly long negative prompts often hurt rather than help. 50+ word negative prompts dilute each term's influence. Aim for concise lists of genuinely problematic elements.

    Contradictory negative terms waste space. "high quality" in your negative prompt conflicts with wanting quality results; focus only on what you dislike.

    Using negatives that contradict your style goals weakens results. If you want "painting" style art, don't include "painting" in your negative prompt.

    Setting CFG too high to compensate for weak negatives creates oversaturated, unrealistic results. If a negative prompt isn't working, investigate checkpoint or sampler choice instead of just cranking CFG higher.

    Ignoring checkpoint bias is a hidden mistake. Some models naturally produce certain outputs regardless of negatives. Test whether the issue is truly a negative prompt problem or a checkpoint limitation.

    Practical Workflow Recommendations

    Start with a minimal negative prompt (5-8 core terms) and generate several images with your main prompt. Note recurring problems. Add 2-3 terms addressing those specific issues.

    Use the same negative prompt across multiple generations of similar subjects before changing it. This lets you accurately assess whether added terms help.

    Save successful negative prompts with their corresponding checkpoints and LoRA combinations. Over time, you'll build a personal library of working negatives for your preferred models.

    Test negative prompts at different CFG values (7, 10, 13). Sometimes negative prompts work better at specific CFG ranges with your particular checkpoint.

    Remember that no negative prompt is universal. What works perfectly for photorealistic portraits may not help with stylized landscapes. Build multiple negative prompts and use the right one for each project type.

    Prefer to Skip the Setup?

    Running stable diffusion negative prompts guide locally gives you full control, but it needs a capable GPU, time, and troubleshooting. If you just want fast, high-quality results with zero setup, ready-to-use platforms handle the heavy lifting for you. See the full ranked comparison of the best AI platforms »

    Related Guides