Zubnet AI学习Wiki › Negative Prompt
Using AI

Negative Prompt

Negative Conditioning
和主 prompt 一起使用的、描述你在生成图像中不想要什么的文本。Prompt:“美丽的风景。”Negative prompt:“模糊、低质量、文字、水印、人。”模型在生成时主动避开 negative prompt 中的概念。Negative prompt 主要用于 Stable Diffusion 和其他开源图像生成模型。

为什么重要

Negative prompt 是提升图像生成质量最有效的工具之一。没有它们,模型倾向于产生伪影(模糊区域、多余手指、文字水印),因为这些东西在训练数据里频繁出现。一个写得好的 negative prompt 消除常见失败模式,在不改正向 prompt 的前提下让你对输出有更多控制。

Deep Dive

Technically, negative prompts work through classifier-free guidance (CFG). During generation, the model computes two predictions: one conditioned on the positive prompt and one conditioned on the negative prompt. The final prediction moves toward the positive conditioning and away from the negative: final = negative + scale × (positive − negative). The guidance scale controls how strongly the model follows the prompts.

Common Negative Prompts

The community has developed standard negative prompts for common issues: "blurry, low quality, jpeg artifacts" (quality), "extra fingers, deformed hands, extra limbs" (anatomy), "text, watermark, signature, logo" (unwanted elements), "ugly, disfigured, bad proportions" (general quality). Many users have a default negative prompt they include with every generation. Custom negative prompts address domain-specific issues.

Not All Models Use Them

Negative prompts work with models that support classifier-free guidance (most Stable Diffusion variants, Flux). DALL-E 3 and Midjourney don't expose negative prompts as a user-facing feature — they handle quality issues through their prompt rewriting and internal quality mechanisms. The trend in newer models is to reduce the need for negative prompts by improving default quality, but they remain valuable for precise control in open models.

相关概念

← 所有术语
ESC