Zubnet AIAprenderWiki › Negative Prompt
Using AI

Negative Prompt

Negative Conditioning
Uma descrição de texto do que você NÃO quer em uma imagem gerada, usada junto com o prompt principal. Prompt: “uma bela paisagem”. Negative prompt: “borrado, baixa qualidade, texto, marca d'água, pessoas”. O modelo ativamente se afasta dos conceitos no negative prompt durante a geração. Negative prompts são primariamente usados com Stable Diffusion e outros modelos de geração de imagens abertos.

Por que importa

Negative prompts são uma das ferramentas mais efetivas para melhorar a qualidade de geração de imagens. Sem eles, modelos tendem a produzir artefatos (áreas borradas, dedos extras, marcas d'água de texto) porque aparecem frequentemente nos dados de treinamento. Um negative prompt bem feito elimina modos de falha comuns e te dá mais controle sobre a saída sem mudar o prompt positivo.

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.

Conceitos relacionados

← Todos os termos
ESC