图像类 prompt 编写指南

与文本生成的 prompt 不同,图像生成更强调图片的属性,如图片风格、质量、目标数量等,一般图片生成的 prompt 包含以下内容

样式修饰符
能够产生特定样式的描述符(例如,“带有红色色调”、“玻璃制成”、“用 Unity 渲染”)

提示词效果图
A pyramid made of glass, rendered in Unity and tinted red图像生成prompt编写方法论-20250115210607
photorealistic, by greg rutkowski, by christopher nolan, painting, digital painting, concept art, octane render, wide lens, 3D render, cinematic lighting, trending on ArtStation, trending on CGSociety, hyper realist, photo, natural light, film grain图像生成prompt编写方法论-20250115210607-1

质量增强器
提高生成图像的某些非特定样式质量的术语。例如,“amazing”、“beautiful” 和 “good quality” 都是质量增强器

提示词效果图
A pyramid made of glass, rendered in Unity and tinted red图像生成prompt编写方法论-20250115210607
A beautiful, majestic, incredible pyramid, 4K图像生成prompt编写思路-20241130122804

重复
在提示中重复相同的词语或者类似短语会导致模型在生成的图片中强调该词语

提示词效果图
A beautiful painting of a mountain next to a waterfall.图像生成prompt编写思路-20241130122903
A very very very very very very very very very very very very very very very very very very very very very very beautiful painting of a mountain next to a waterfall.图像生成prompt编写思路-20241130122917

加权
一些模型(如 Stable Diffusion、Midjourney 等)允许你对提示中的词语进行加权。这可以用于强调生成图片中的某些词语或短语

提示词效果图
mountain图像生成prompt编写思路-20241130122958
mountain | tree:-10图像生成prompt编写思路-20241130123010

修复变形生成
变形生成在许多模型中都是一个常见问题,特别是在人体部位(如手、脚)上。通过良好的反向提示语,可以在一定程度上解决这个问题

提示词效果图
studio medium portrait of Brad Pitt waving his hands, detailed, film, studio lighting, 90mm lens, by Martin Schoeller:6图像生成prompt编写思路-20241130123122
studio medium portrait of Brad Pitt waving his hands, detailed, film, studio lighting, 90mm lens, by Martin Schoeller:6 | disfigured, deformed hands, blurry, grainy, broken, cross-eyed, undead, photoshopped, overexposed, underexposed, lowres, bad anatomy, bad hands, extra digits, fewer digits, bad digit, bad ears, bad eyes, bad face, cropped: -5图像生成prompt编写思路-20241130123137