元峰AI笔记 · AI绘画与视频

提升肖像照片质量的魔法提示词

很多使用 Stable Diffusion 的朋友们常常发现,尽管生成的图像包含了所有必要的元素,但视觉效果却不尽如人意,总觉得少了点儿什么。

提升肖像照片质量的魔法提示词

很多使用 Stable Diffusion 的朋友们常常发现,尽管生成的图像包含了所有必要的元素,但视觉效果却不尽如人意,总觉得少了点儿什么。

同样,一些习惯使用 SD 1.5 版本生成高质量图像的用户在转向 SDXL 时,可能会发现肖像质量有所下降。不过别担心,只要加入一些特定的提示词,就能显著提升图像质量。

让我们从最基本的 1girl (一个女孩) 提示词开始,一步步优化我们的图像。

让照片更真实

很多人喜欢在提示词中加入 realistic photograph (真实照片) 来获得逼真的效果,但有时生成的图像反而会有一种绘画的感觉,缺乏真实感。

1girl, realistic photograph

优化光线,增强真实感

通过添加 cinematic lighting (电影级照明) 和 ambient lighting (环境光) 这两个提示词,再把 realistic photograph 升级为 hyper realistic photograph (超真实照片),图像的真实感立刻就上了一个台阶。

1girl, cinematic lighting, ambient lighting, hyper realistic photograph

自然光效果,完善背景和比例

ambient lighting 换成 sunlight (阳光) 可以创造更自然的光照效果,同时将 hyper-realistic photographs 进一步升级为 ultra realistic photograph (极致真实照片) 能带来更强的真实感。此外,加入 pastel background with pastel bokeh (柔和背景和柔和的背景虚化) 可以软化背景,exquisite details and textures (精致的细节和纹理) 则能提升整体质量。最后,调整为 siena natural ratio (西耶纳自然比例) 可以优化画面构图。

1girl, cinematic lighting, sun light, ultra realistic photograph, pastel background with pastel bokeh, Exquisite details and textures, siena natural ratio

添加动感和表情

加入 dynamic poses (动态姿势) 让每张图片都有不同的动作,再添加一丝 smile (微笑),以及 (windy: 0.8) (微风效果) 来创造头发被风吹动的感觉,这些都能大大提高照片的真实感。再配上 vibrant light and shadow (生动的光影) 更是锦上添花。

1girl, cinematic lighting, sun light, ultra realistic photograph, pastel background with pastel bokeh, Exquisite details and textures, siena natural ratio, (windy:0.8), dynamic pose, smile, vibrant light and shadow

添加摄影特效

通过 (smile: 0.5) 来稍微减弱笑容的夸张程度,再加入一些复古胶片相机的效果,比如 grainy (颗粒感)、colored 66mm film analog photography (彩色 66mm 胶片模拟摄影)、lomography (乐魔摄影),以及 slight dreamy haze film grain effect (轻微梦幻朦胧的胶片颗粒效果),这些都能为图像增添独特的质感。最后,加入 selfie (自拍) 效果,营造出随意自然的感觉。

1girl, cinematic lighting, sun light, ultra realistic photograph, pastel background with pastel bokeh, Exquisite details and textures, siena natural ratio, (windy:0.5), dynamic pose, (smile:0.5), vibrant light and shadow, grainy, colored 66mm film analog photography, film, lomography, slight dreamy haze film grain effect, selfie

从最初看起来像无生气、表情呆板的画作,到最后变成一个在街头自拍的生动女孩,这个小贴士汇总了提升肖像图像质量的各种技巧。

提升肖像照片质量的魔法咒语

cinematic lighting, sun light, ultra realistic photograph, pastel background with pastel bokeh, Exquisite details and textures, siena natural ratio, (windy:0.5), dynamic pose, (smile:0.5), vibrant light and shadow, grainy, colored 66mm film analog photography, film, lomography, slight dreamy haze film grain effect, selfie