写好Stable Diffusion的提示词(prompt)是生成高质量图像的关键。以下是一些写好提示词的策略:
1. 明确描述画面内容
你需要清晰地描述你想要的画面元素,包括场景、物体、人物、背景等。越具体,生成的图像越接近你的期望。例如:
- 不明确:
a dog
- 更明确:
a fluffy golden retriever sitting on a grassy field under a bright blue sky

a dog

a fluffy golden retriever sitting on a grassy field under a bright blue sky
2. 使用艺术风格和技术
可以根据你喜欢的艺术风格、画家或技术来描述你的图像。例如:
in the style of Van Gogh
cyberpunk aesthetic with neon lights
photorealistic
watercolor painting
3. 描述光照、色调和情绪
图像的情感和氛围非常重要。你可以描述特定的光照、色调和情绪:
soft lighting, warm tones, peaceful
dramatic shadows, dark and moody
sunset glow, bright and colorful
4. 指定细节
如果你对细节有特定要求,比如人物的面部表情、衣服的质感等,可以在提示中补充:
a young woman with short red hair, smiling
a futuristic city with shiny metallic skyscrapers and flying cars
5. 使用负面提示(Negative Prompt)
如果你想避免某些元素出现在图像中,可以使用负面提示。例如:
no text
no blurriness
no distorted anatomy
6. 试验与迭代
Stable Diffusion是基于AI的工具,有时即使提示词很明确,生成的图像可能与预期不符。这时需要不断调整提示词,试验不同的关键词,或者加入更多描述性的细节。
7. 合理使用关键词
尽量避免过度堆砌不相关的关键词。尽量保持提示简洁且专注,避免过长和混乱的描述。太多不相关的元素可能会导致图像生成的不稳定。
示例提示词:
- 人物肖像:
a portrait of a young woman with long curly hair, wearing a vintage dress, soft lighting, photorealistic
- 风景画:
a serene landscape with rolling green hills, a small wooden cabin, and a calm river reflecting the sky, sunset light, painterly style


这些技巧能帮助你通过Stable Diffusion生成更符合你期望的图像!你有尝试过哪些风格或场景吗?
发表回复