第六章: Stable Diffusion实战案例
本章提供50+完整案例,每个案例包含详细参数、提示词模板和生成技巧。
人像摄影类(15个案例)
案例1: 专业证件照
需求: 生成标准证件照风格人像
完整参数:
Checkpoint: Realistic Vision V5.1
VAE: vae-ft-mse-840000
Prompt:
professional id photo, passport photo,
1girl, 25 years old, black business suit, white shirt,
neutral expression, looking at camera,
white background, studio lighting, front view,
sharp focus, high resolution,
(professional photography:1.2)
Negative Prompt:
(worst quality:2), (low quality:2), smile, accessories,
jewelry, makeup, colorful background, shadows,
side view, tilted head
Sampler: DPM++ 2M Karras
Steps: 25
CFG Scale: 7
Size: 512x640
Seed: -1
Hires.fix:
- Upscaler: R-ESRGAN 4x+
- Upscale by: 2.0 (最终1024x1280)
- Denoising: 0.4
技巧:
- 白背景: 提示词强调 "white background"
- 中性表情: "neutral expression" 而非 smile
- 正面照: "front view, looking at camera"
用时: 20秒
案例2: 时尚杂志封面
完整参数:
Checkpoint: ChilloutMix 或 Realistic Vision V5.1
LoRA: <lora:koreanDollLikeness_v15:0.6>
Prompt:
(magazine cover:1.3), fashion photography,
1girl, 22 years old, (beautiful face:1.2),
long wavy hair, professional makeup,
designer dress, elegant pose,
outdoor fashion shoot, natural lighting,
bokeh background, depth of field,
shot on Canon EOS R5, 85mm f/1.2,
vogue style, glamorous,
(8k uhd, RAW photo, best quality:1.3)
Negative Prompt:
easynegative, (bad hands:1.2), extra fingers,
(worst quality:2), lowres, watermark, text,
bad anatomy, bad proportions
Sampler: DPM++ SDE Karras
Steps: 28
CFG Scale: 6
Size: 512x768
Seed: -1
Hires.fix:
- Upscaler: R-ESRGAN 4x+
- Upscale by: 2.0
- Denoising: 0.45
- Hires steps: 20
技巧:
- 杂志感: (magazine cover:1.3) 权重强化
- 虚化背景: "bokeh background, depth of field"
- 设备模拟: "shot on Canon EOS R5, 85mm f/1.2"
变体提示词:
风格1: vogue style → harper's bazaar style
风格2: outdoor → studio lighting, colored background
风格3: elegant → edgy, avant-garde
案例3: 阳光少女户外写真
完整参数:
Checkpoint: Realistic Vision V5.1
Prompt:
1girl, 18 years old, cute smile, looking at viewer,
(sun dress:1.1), white dress, straw hat,
standing in flower field, sunflowers,
golden hour lighting, warm tones, sunset,
hair flowing in wind, natural makeup,
professional photography, soft focus,
film grain, cinematic,
(best quality, masterpiece:1.2)
Negative Prompt:
(worst quality:2), (low quality:2), lowres,
bad anatomy, bad hands, text, error,
missing fingers, extra digit, cropped
Sampler: DPM++ 2M Karras
Steps: 25
CFG Scale: 7
Size: 512x768
ControlNet (可选,控制姿态):
- Type: OpenPose
- 参考图: 站立姿态照片
- Weight: 0.8
光线关键词:
Golden hour: 黄金时刻(日出日落前后)
Warm tones: 暖色调
Sunset: 日落
Backlight: 逆光(轮廓光)
Soft lighting: 柔光
案例4: 中国风古装人像
完整参数:
Checkpoint: GuoFeng3 或 Realistic Vision V5.1
LoRA: <lora:hanfu_v3:0.8>
Prompt:
1girl, hanfu, traditional chinese clothing,
(ancient china:1.2), tang dynasty style,
long black hair, hair ornament, jewelry,
standing in bamboo forest,
soft sunlight through trees, ethereal,
professional photography, cinematic lighting,
elegant pose, looking away,
(best quality, 8k uhd:1.2)
Negative Prompt:
(worst quality:2), modern, contemporary,
bad anatomy, extra fingers, lowres,
western clothing
Sampler: DPM++ 2M Karras
Steps: 28
CFG Scale: 7.5
Size: 512x768
汉服类型关键词:
齐胸襦裙: qixiong ruqun
交领襦裙: crossed collar ruqun
唐装: tang suit
明制汉服: ming dynasty hanfu
宋制汉服: song dynasty hanfu
案例5: 复古胶片人像
完整参数:
Checkpoint: Realistic Vision V5.1
LoRA: <lora:filmGrain_v1:0.5>
Prompt:
analog film photo, 1girl, 25 years old,
vintage 1980s style, retro fashion,
denim jacket, high waist jeans,
standing on city street, sunset,
(film grain:1.3), faded colors, nostalgic,
shot on Kodak Portra 400, 35mm film,
slightly overexposed, vignette,
cinematic, vintage photography
Negative Prompt:
(digital:1.3), modern, HD, sharp, clean,
(worst quality:2), lowres, bad anatomy
Sampler: Euler a (适合胶片随机感)
Steps: 30
CFG Scale: 6.5
Size: 640x832
胶片效果关键词:
Film grain: 胶片颗粒
Faded colors: 褪色
Vintage: 复古
Kodak Portra 400: 柯达胶卷
35mm film: 35毫米胶片
Vignette: 暗角
Overexposed: 过曝
Underexposed: 欠曝
二次元插画类(10个案例)
案例6: 标准动漫角色立绘
完整参数:
Checkpoint: Anything V5 或 CounterfeitV3
Prompt:
1girl, anime style, full body,
(beautiful detailed eyes:1.2), blue eyes,
long blue hair, twin tails, hair ribbon,
school uniform, pleated skirt, thigh highs,
standing, hand on hip, smile,
white background, simple background,
character design, official art,
(masterpiece, best quality:1.3)
Negative Prompt:
(worst quality:2), (low quality:2), lowres,
(bad anatomy:1.2), bad hands, extra fingers,
text, watermark, realistic, 3d
Sampler: Euler a
Steps: 28
CFG Scale: 6
Size: 512x768
角色设定变体:
发型: long hair → short hair, ponytail, messy hair
发色: blue hair → pink hair, white hair, multicolored hair
服装: school uniform → maid outfit, witch hat, armor
案例7: 动漫场景插画(CG背景)
完整参数:
Checkpoint: Anything V5
Prompt:
anime scenery, no humans,
japanese school, classroom interior,
desks and chairs, blackboard,
sunset light through window, warm lighting,
cherry blossoms outside window,
detailed background, clean linework,
(makoto shinkai style:1.2),
your name movie style, cinematic,
(best quality, masterpiece:1.2)
Negative Prompt:
(worst quality:2), lowres, blurry,
people, characters, text
Sampler: DPM++ 2M Karras
Steps: 25
CFG Scale: 7
Size: 768x512 (横向场景)
场景类型关键词:
室内: classroom, bedroom, library, cafe
室外: street, park, beach, forest, rooftop
天气: sunset, rainy day, snowing, starry sky
风格: makoto shinkai (新海诚), ghibli (吉卜力)
案例8: 赛璐璐风格(Cel Shading)
完整参数:
Checkpoint: Anything V5
Prompt:
1girl, cel shading, flat colors,
anime screenshot, official anime still,
bold outlines, clean linework,
vibrant colors, high contrast,
20 years old, short pink hair,
yellow eyes, school uniform,
dynamic pose, action scene,
wind effect, speed lines,
(best quality:1.2)
Negative Prompt:
(realistic:1.3), soft shading, gradient,
(worst quality:2), blurry, lowres
Sampler: Euler a
Steps: 25
CFG Scale: 7
Size: 640x832
赛璐璐关键词:
Cel shading: 赛璐璐着色
Flat colors: 平涂
Bold outlines: 粗轮廓线
Clean linework: 干净线条
Hard shadows: 硬阴影
案例9: 水彩风格插画
完整参数:
Checkpoint: Anything V5 或 PastelMix
Prompt:
1girl, watercolor painting, watercolor \(medium\),
soft colors, pastel colors, gentle,
dreamy atmosphere, light particles,
sitting under tree, reading book,
flower petals falling, spring,
soft brush strokes, paper texture,
traditional media, artistic,
(masterpiece:1.2)
Negative Prompt:
(realistic:1.2), photo, 3d, digital art,
hard edges, (worst quality:2)
Sampler: DPM++ 2M Karras
Steps: 28
CFG Scale: 6
Size: 640x832
水彩效果强化:
watercolor (medium): 水彩媒介
soft colors: 柔和色彩
pastel colors: 粉彩
paper texture: 纸张纹理
watercolor splatter: 水彩飞溅
案例10: Pixiv风格精美插画
完整参数:
Checkpoint: Anything V5
Prompt:
1girl, pixiv featured, trending on pixiv,
(extremely detailed CG:1.2), 8k wallpaper,
beautiful detailed eyes, detailed face,
long silver hair, blue eyes, elf ears,
fantasy outfit, intricate dress design,
magic circle, glowing particles,
fantasy background, castle,
dramatic lighting, rim lighting,
depth of field, bokeh,
(masterpiece, best quality, ultra detailed:1.3)
Negative Prompt:
(worst quality:2), (low quality:2), lowres,
bad anatomy, bad hands, text, error,
missing fingers, cropped, jpeg artifacts
Sampler: DPM++ 2M Karras
Steps: 30
CFG Scale: 7
Size: 512x768
Hires.fix:
- Upscaler: R-ESRGAN 4x+ Anime6B
- Upscale by: 2.0
- Denoising: 0.5
Pixiv高质量关键词:
pixiv featured: pixiv精选
trending on pixiv: pixiv热门
extremely detailed CG: 极度精细CG
intricate: 复杂精细
8k wallpaper: 8K壁纸级
风景场景类(10个案例)
案例11: 自然风光摄影
完整参数:
Checkpoint: Realistic Vision V5.1 或 DreamShaper
Prompt:
landscape photography, no humans,
mountain range, snow capped peaks,
alpine lake reflection, crystal clear water,
pine forest foreground,
golden hour lighting, sunset, warm tones,
dramatic clouds, god rays,
professional nature photography,
shot on Sony A7R IV, 24mm wide angle,
(8k uhd, high quality, masterpiece:1.2)
Negative Prompt:
people, buildings, cars, modern,
(worst quality:2), lowres, blurry,
oversaturated
Sampler: DPM++ 2M Karras
Steps: 25
CFG Scale: 8
Size: 768x512
Hires.fix:
- Upscaler: R-ESRGAN 4x+
- Upscale by: 2.0
- Denoising: 0.5
风光摄影变体:
地形: mountain → beach, desert, canyon, waterfall
时间: sunset → sunrise, blue hour, night, stormy sky
季节: summer → autumn colors, winter, spring flowers
案例12: 赛博朋克城市
完整参数:
Checkpoint: DreamShaper 或 RealisticVision
Prompt:
cyberpunk city, futuristic cityscape,
(neon lights:1.3), holographic advertisements,
rain wet streets, reflections,
tall skyscrapers, flying cars,
night scene, purple and blue lighting,
dystopian atmosphere, blade runner style,
cinematic, wide angle view,
(highly detailed:1.2), 8k uhd
Negative Prompt:
people, daytime, nature, green,
(worst quality:2), lowres, blurry
Sampler: DPM++ 2M Karras
Steps: 30
CFG Scale: 9
Size: 896x512 (宽屏)
赛博朋克元素:
Neon lights: 霓虹灯
Holographic: 全息投影
Rain wet streets: 雨湿街道
Flying cars: 飞行汽车
Dystopian: 反乌托邦
Blade runner style: 银翼杀手风格
案例13: 奇幻魔法森林
完整参数:
Checkpoint: DreamShaper
Prompt:
fantasy forest, magical atmosphere,
giant mushrooms, glowing plants,
bioluminescent flowers, fireflies,
ancient trees, twisted roots,
fog, mystical lighting, volumetric light,
purple and blue color scheme,
fantasy art, concept art,
highly detailed, 8k wallpaper,
(masterpiece:1.2)
Negative Prompt:
realistic, photo, modern, people,
(worst quality:2), lowres
Sampler: DPM++ 2M Karras
Steps: 28
CFG Scale: 8
Size: 768x512
奇幻元素关键词:
Bioluminescent: 生物发光
Glowing: 发光
Mystical: 神秘
Volumetric light: 体积光(丁达尔效应)
Ancient: 古老
Magic particles: 魔法粒子
案例14: 日式庭院
完整参数:
Checkpoint: Realistic Vision V5.1
Prompt:
japanese garden, traditional architecture,
zen garden, rock garden, raked gravel,
koi pond, stone lanterns, red torii gate,
cherry blossoms, maple trees,
wooden bridge, peaceful atmosphere,
morning mist, soft sunlight,
professional photography,
(best quality, 8k uhd:1.2)
Negative Prompt:
people, modern, western,
(worst quality:2), lowres
Sampler: DPM++ 2M Karras
Steps: 25
CFG Scale: 7.5
Size: 768x512
日式建筑元素:
Torii gate: 鸟居
Stone lanterns: 石灯笼
Zen garden: 禅宗庭院
Koi pond: 锦鲤池
Wooden bridge: 木桥
Tatami room: 榻榻米房间
案例15: 室内设计渲染
完整参数:
Checkpoint: Realistic Vision V5.1
Prompt:
modern interior design, living room,
minimalist style, scandinavian design,
large windows, natural light,
wooden floor, white walls, plants,
comfortable sofa, coffee table,
indoor plants, clean and bright,
architectural photography, wide angle,
(8k uhd, highly detailed:1.2)
Negative Prompt:
people, messy, dark, cluttered,
(worst quality:2), lowres
Sampler: DPM++ 2M Karras
Steps: 25
CFG Scale: 8
Size: 768x512
ControlNet (推荐):
- Type: Depth
- 参考图: 房间参考照片
- Weight: 0.9
室内设计风格:
Minimalist: 极简主义
Scandinavian: 北欧风
Industrial: 工业风
Japanese zen: 日式禅意
Luxury: 奢华风
Bohemian: 波西米亚风
概念设计类(10个案例)
案例16: 科幻机甲设计
完整参数:
Checkpoint: DreamShaper
Prompt:
(mecha design:1.3), mechanical robot,
full body, standing pose, white background,
futuristic armor, intricate mechanical details,
glowing blue energy core, thrusters,
weapon systems, angular design,
concept art, technical drawing style,
multiple angles view, orthographic,
(highly detailed:1.2), 8k, masterpiece
Negative Prompt:
people, pilot, low detail, simple,
(worst quality:2), blurry
Sampler: DPM++ 2M Karras
Steps: 30
CFG Scale: 9
Size: 768x768
机甲设计元素:
Mecha: 机甲
Intricate mechanical details: 复杂机械细节
Energy core: 能量核心
Thrusters: 推进器
Angular design: 棱角设计
Orthographic: 正交视图(三视图)
案例17: 奇幻武器设计
完整参数:
Checkpoint: DreamShaper
Prompt:
fantasy weapon design, legendary sword,
ornate design, golden decorations,
magical runes, glowing blade,
intricate hilt, gemstones embedded,
floating, dramatic lighting, dark background,
concept art, game asset,
(highly detailed:1.3), 8k rendering
Negative Prompt:
simple, plain, realistic,
(worst quality:2), lowres
Sampler: DPM++ 2M Karras
Steps: 28
CFG Scale: 8.5
Size: 512x768 (竖向)
武器类型关键词:
Sword: 剑
Axe: 斧
Staff: 法杖
Bow: 弓
Spear: 矛
Magical weapon: 魔法武器
Legendary: 传说
案例18: 角色概念设计
完整参数:
Checkpoint: DreamShaper
Prompt:
character design, concept art, multiple views,
(turnaround sheet:1.2), front view, side view, back view,
fantasy warrior, female, full body,
detailed armor design, cape, sword,
white background, clean linework,
professional concept art, game character,
(highly detailed:1.2), 8k
Negative Prompt:
messy, incomplete, single view,
(worst quality:2), lowres
Sampler: DPM++ 2M Karras
Steps: 30
CFG Scale: 9
Size: 1024x512 (横向,容纳多视图)
ControlNet (推荐):
- Type: Seg (语义分割)
- 手绘分割图: 标注不同视图区域
- Weight: 1.0
概念设计关键词:
Turnaround sheet: 转身图(多角度)
Front view: 正视图
Side view: 侧视图
Back view: 背视图
Multiple views: 多视图
Character sheet: 角色设定表
案例19: 生物概念设计
完整参数:
Checkpoint: DreamShaper
Prompt:
creature design, fantasy monster,
dragon-like creature, scales,
multiple eyes, wings, tail,
bioluminescent patterns, glowing,
alien biology, xenomorph inspired,
dark background, dramatic lighting,
concept art, game creature,
(highly detailed:1.3), 8k rendering
Negative Prompt:
cute, friendly, cartoon,
(worst quality:2), simple
Sampler: DPM++ 2M Karras
Steps: 30
CFG Scale: 8
Size: 768x768
生物设计元素:
Creature: 生物
Monster: 怪物
Dragon: 龙
Scales: 鳞片
Horns: 角
Claws: 爪子
Alien biology: 异形生物学
Xenomorph: 异形
案例20: 载具设计(飞船/汽车)
完整参数:
Checkpoint: DreamShaper
Prompt:
spaceship design, futuristic spacecraft,
sleek aerodynamic shape, metallic hull,
glowing engine thrusters, blue energy,
detailed surface panels, antenna,
floating in space, stars background,
concept art, sci-fi vehicle,
technical illustration, orthographic view,
(highly detailed:1.2), 8k rendering
Negative Prompt:
simple, low detail, old,
(worst quality:2), blurry
Sampler: DPM++ 2M Karras
Steps: 28
CFG Scale: 9
Size: 896x512 (宽屏)
载具类型:
Spaceship: 宇宙飞船
Fighter jet: 战斗机
Sports car: 跑车
Tank: 坦克
Mech walker: 机甲步行器
Hovercraft: 悬浮车
艺术风格类(10个案例)
案例21: 梵高风格
完整参数:
Checkpoint: DreamShaper
Prompt:
(van gogh style:1.3), oil painting,
starry night, village scene,
swirling sky, bright stars, crescent moon,
cypress trees, church steeple,
vibrant colors, thick brush strokes,
impasto technique, post-impressionism,
(masterpiece, art style:1.2)
Negative Prompt:
realistic, photo, modern,
(worst quality:2), flat
Sampler: Euler a
Steps: 30
CFG Scale: 8
Size: 768x512
印象派关键词:
Van gogh style: 梵高风格
Swirling: 漩涡状
Thick brush strokes: 厚重笔触
Impasto: 厚涂法
Vibrant colors: 鲜艳色彩
Post-impressionism: 后印象派
案例22: 日本浮世绘
完整参数:
Checkpoint: DreamShaper
Prompt:
(ukiyo-e:1.3), japanese woodblock print,
hokusai style, the great wave,
mount fuji, ocean waves,
traditional japanese art, edo period,
flat colors, bold outlines,
limited color palette, vintage,
(masterpiece, traditional media:1.2)
Negative Prompt:
realistic, 3d, modern, detailed shading,
(worst quality:2)
Sampler: DPM++ 2M Karras
Steps: 25
CFG Scale: 7.5
Size: 768x512
浮世绘关键词:
Ukiyo-e: 浮世绘
Woodblock print: 木版画
Hokusai style: 葛饰北斋风格
Edo period: 江户时代
Flat colors: 平涂色彩
Bold outlines: 粗轮廓
案例23: 超现实主义(达利风格)
完整参数:
Checkpoint: DreamShaper
Prompt:
(surrealism:1.3), salvador dali style,
melting clocks, distorted reality,
desert landscape, elephants on stilts,
impossible architecture, dreamlike,
symbolic, subconscious imagery,
oil painting, fine art,
(masterpiece, highly detailed:1.2)
Negative Prompt:
realistic, normal, logical,
(worst quality:2), simple
Sampler: DPM++ 2M Karras
Steps: 30
CFG Scale: 9
Size: 768x512
超现实主义元素:
Surrealism: 超现实主义
Melting: 融化
Distorted: 扭曲
Dreamlike: 梦幻般
Impossible: 不可能的
Subconscious: 潜意识
案例24: 像素艺术(Pixel Art)
完整参数:
Checkpoint: Anything V5
Prompt:
pixel art, 16bit, retro game style,
isometric view, fantasy village,
small houses, trees, river,
detailed pixel work, limited color palette,
indie game art, (pixel perfect:1.2)
Negative Prompt:
realistic, smooth, high resolution,
anti-aliasing, (worst quality:2)
Sampler: Euler a
Steps: 20
CFG Scale: 7
Size: 512x512
像素艺术关键词:
Pixel art: 像素艺术
16bit: 16位(指色彩深度)
8bit: 8位(更复古)
Isometric: 等距视角
Retro game: 复古游戏
Pixel perfect: 像素完美
案例25: 低多边形(Low Poly)
完整参数:
Checkpoint: DreamShaper
Prompt:
(low poly:1.3), 3d render, geometric,
polygonal style, faceted surface,
mountain landscape, trees, lake,
vibrant colors, flat shading,
minimalist, clean geometry,
blender render, (stylized:1.2)
Negative Prompt:
realistic, high poly, detailed texture,
(worst quality:2), smooth
Sampler: DPM++ 2M Karras
Steps: 25
CFG Scale: 7.5
Size: 768x512
Low Poly关键词:
Low poly: 低多边形
Polygonal: 多边形
Faceted: 多面的
Flat shading: 平面着色
Geometric: 几何
Minimalist: 极简
实用设计类(5个案例)
案例26: Logo设计
完整参数:
Checkpoint: DreamShaper
Prompt:
logo design, brand identity,
minimalist logo, letter "A" monogram,
geometric shape, clean lines,
professional, corporate,
black and white, vector style,
simple, modern, flat design
Negative Prompt:
complex, detailed, realistic, photo,
gradient, 3d, (worst quality:2)
Sampler: DPM++ 2M Karras
Steps: 20
CFG Scale: 8
Size: 512x512
Logo设计关键词:
Logo design: 标志设计
Monogram: 字母组合图案
Minimalist: 极简
Flat design: 扁平设计
Vector style: 矢量风格
Corporate: 企业
案例27: 海报设计
完整参数:
Checkpoint: DreamShaper
Prompt:
poster design, concert poster,
rock music festival, bold typography,
vibrant colors, red and black,
electric guitar silhouette,
grunge texture, vintage style,
event poster, graphic design,
(highly detailed:1.2)
Negative Prompt:
photo, realistic, 3d,
(worst quality:2), blurry
Sampler: DPM++ 2M Karras
Steps: 25
CFG Scale: 8
Size: 512x768 (竖版海报)
海报设计元素:
Bold typography: 粗体字
Vibrant colors: 鲜艳色彩
Grunge texture: 颓废纹理
Silhouette: 剪影
Event poster: 活动海报
Graphic design: 平面设计
案例28: 产品渲染
完整参数:
Checkpoint: Realistic Vision V5.1
Prompt:
product photography, luxury watch,
metallic silver, leather strap,
studio lighting, white background,
professional product shot, reflections,
high end, detailed, macro photography,
commercial photography,
(8k uhd, highly detailed:1.3)
Negative Prompt:
low quality, blurry, scratched,
(worst quality:2), dirty
Sampler: DPM++ 2M Karras
Steps: 28
CFG Scale: 8
Size: 640x640
产品摄影关键词:
Product photography: 产品摄影
Studio lighting: 影棚灯光
White background: 白背景
Macro photography: 微距摄影
Commercial: 商业
High end: 高端
Reflections: 反射
案例29: 图标设计(Icon Set)
完整参数:
Checkpoint: DreamShaper
Prompt:
icon design, mobile app icons,
flat design, minimalist, clean,
weather icons set, sun, cloud, rain,
simple shapes, solid colors,
ui design, consistent style,
white background, vector graphics
Negative Prompt:
3d, realistic, detailed, photo,
gradient, (worst quality:2)
Sampler: DPM++ 2M Karras
Steps: 20
CFG Scale: 7.5
Size: 512x512
图标设计关键词:
Icon design: 图标设计
Flat design: 扁平设计
UI design: 界面设计
Minimalist: 极简
Solid colors: 纯色
Consistent style: 一致风格
案例30: 书籍封面
完整参数:
Checkpoint: DreamShaper
Prompt:
book cover design, fantasy novel,
mysterious atmosphere, dark colors,
castle silhouette, full moon, fog,
elegant title typography, ornate frame,
professional book cover, bestseller style,
(highly detailed:1.2)
Negative Prompt:
photo, realistic, plain, simple,
(worst quality:2), amateur
Sampler: DPM++ 2M Karras
Steps: 28
CFG Scale: 8
Size: 512x768 (书籍比例)
书籍封面类型:
Fantasy novel: 奇幻小说
Thriller: 惊悚
Romance: 言情
Science fiction: 科幻
Mystery: 悬疑
Typography: 排版
高级技巧综合案例(20个)
案例31: ControlNet姿态+风格迁移
需求: 让真人照片变成动漫角色,保持姿态
步骤:
Step 1: 准备参考照片
- 真人站立照片
Step 2: ControlNet设置
- Type: OpenPose
- Preprocessor: openpose_full
- Weight: 1.0
Step 3: 主参数
Checkpoint: Anything V5
Prompt:
1girl, anime style, school uniform,
beautiful detailed eyes, colorful,
(masterpiece:1.2)
Negative: realistic, photo, 3d
Sampler: Euler a
Steps: 28
CFG: 6
Size: 512x768
生成结果: 姿态完全一致,风格变成动漫
案例32: 多ControlNet精确控制
需求: 复刻参考图的姿态+场景深度+边缘线条
ControlNet组合:
ControlNet 0:
- Type: OpenPose
- 参考图: 人物姿态
- Weight: 1.0
ControlNet 1:
- Type: Depth
- 参考图: 场景深度
- Weight: 0.8
ControlNet 2:
- Type: Canny
- 参考图: 服装轮廓
- Weight: 0.6
Prompt:
1girl, elegant dress, garden background,
professional photography, (best quality:1.2)
效果: 三重约束,极精确控制
案例33: LoRA组合使用
需求: 韩系写真+胶片质感
参数:
Checkpoint: ChilloutMix
LoRA组合:
<lora:koreanDollLikeness_v15:0.7>
<lora:filmGrain_v1:0.5>
<lora:taiwanDollLikeness_v10:0.3>
Prompt:
1girl, 22 years old, beauty, smile,
casual wear, outdoor, natural light,
(film grain:1.2), analog photo,
(best quality, 8k uhd:1.2)
技巧: 多LoRA权重相加不超过2.0
案例34: img2img+ControlNet组合
需求: 在保持原图颜色的同时改变姿态
参数:
Tab: img2img
上传原图: 坐姿女孩照片
Denoising: 0.6
ControlNet:
- Type: OpenPose
- 上传参考图: 站姿
- Weight: 1.2
Prompt:
1girl, same style, standing pose,
professional photography
效果: 姿态变成站立,但颜色风格保持原图
用途: 同一角色不同姿态
案例35: Hires.fix极限放大
需求: 从512x768生成4K高清图(2048x3072)
参数:
First pass:
Size: 512x768
Steps: 25
Sampler: DPM++ 2M Karras
Hires.fix Pass 1:
- Upscaler: R-ESRGAN 4x+
- Upscale by: 2.0 (→1024x1536)
- Denoising: 0.45
- Hires steps: 20
Hires.fix Pass 2 (再次放大):
需要插件: Ultimate SD Upscale
- Upscale by: 2.0 (→2048x3072)
- Tile size: 512
- Denoising: 0.3
显存需求: 12GB+
生成时间: 约2分钟
案例36-50: 快速案例库
案例36: 霓虹灯效果人像
Prompt: 1girl, (neon lighting:1.3), cyberpunk,
purple and blue neon, dark background
案例37: 雨中场景
Prompt: rainy day, rain drops, wet ground,
reflections, umbrella, moody atmosphere
案例38: 剪影效果
Prompt: silhouette, backlight, sunset,
dramatic, black silhouette, orange sky
案例39: 双重曝光
Prompt: (double exposure:1.3), portrait blended with forest,
artistic, creative photography
案例40: 光绘摄影
Prompt: light painting, long exposure,
light trails, dark background, glowing
案例41: 黑白人像
Prompt: black and white portrait, monochrome,
high contrast, dramatic lighting, film noir
案例42: 烟雾效果
Prompt: (smoke:1.2), colorful smoke, fog,
atmospheric, mysterious, swirling smoke
案例43: 镜面反射
Prompt: mirror reflection, symmetry,
water reflection, glass reflection, puddle
案例44: 微距特写
Prompt: macro photography, extreme close-up,
shallow depth of field, detailed texture
案例45: 动态模糊
Prompt: motion blur, speed, dynamic,
sense of movement, racing, wind effect
案例46: 逆光效果
Prompt: backlight, rim lighting, silhouette,
sun flare, lens flare, golden hour
案例47: 星空银河
Prompt: milky way, starry sky, galaxy,
night photography, long exposure stars
案例48: 水下场景
Prompt: underwater, bubbles, caustics,
ocean, swimming, aquatic, blue tones
案例49: 魔法特效
Prompt: magic effect, glowing particles,
energy, spell casting, magical aura
案例50: 玻璃质感
Prompt: glass material, transparent,
refraction, crystal, reflective surface
案例使用技巧总结
1. 提示词模板复用
结构化提示词:
[主体] + [细节描述] + [环境/背景] + [光线] + [风格] + [质量词]
示例:
1girl (主体)
+ long hair, blue eyes (细节)
+ standing in garden, flowers (环境)
+ sunset lighting, warm tones (光线)
+ professional photography (风格)
+ (best quality, 8k uhd:1.2) (质量)
2. 参数快速调整
快速预览→精修流程:
阶段1: 快速测试(5秒/张)
- Steps: 15
- Sampler: UniPC
- Size: 512x512
- Batch: 4
阶段2: 选中优化(15秒/张)
- 固定满意的Seed
- Steps: 25
- Sampler: DPM++ 2M Karras
- Size: 512x768
阶段3: 高清输出(30秒/张)
- Hires.fix启用
- Upscale 2.0x
3. 常见问题快速修复
问题速查表:
画面模糊 → Steps提升到25+,启用Hires.fix
颜色过曝 → CFG降到6-7
手部错误 → 使用ControlNet OpenPose
构图混乱 → 使用ControlNet Canny/Depth
风格不对 → 检查Checkpoint选择,调整提示词权重
生成太慢 → 降低分辨率,使用UniPC采样器
4. 批量生成策略
X/Y/Z Plot插件:
用途: 批量对比不同参数
示例: 测试最佳CFG
X轴: CFG Scale (5, 6, 7, 8, 9)
Y轴: Sampler (Euler a, DPM++ 2M)
生成: 5x2=10张对比图
一键找到最佳组合
5. 保存成功配方
参数记录模板:
项目名称: [写实女性人像]
日期: 2024-01-20
Checkpoint: Realistic Vision V5.1
LoRA: koreanDoll:0.6
Prompt核心: professional photography, soft lighting
Negative核心: easynegative, bad hands
Sampler: DPM++ 2M Karras
Steps: 25
CFG: 7
Size: 512x768
Hires: R-ESRGAN 4x+, 2.0x, 0.45
满意Seed: 3847562, 9182743, 5637281
备注: 适合25-30岁女性,室外自然光
下一步学习建议
完成本教程后,建议:
- 选择5个案例完整实践
- 建立自己的提示词库(收藏常用词)
- 学习插件: Civitai Helper, Dynamic Prompts
- 探索SDXL模型(需12GB+显存)
- 加入社区: Reddit r/StableDiffusion, Discord
进阶资源:
- Civitai: https://civitai.com (模型+案例)
- PromptHero: https://prompthero.com (提示词灵感)
- Lexica: https://lexica.art (SD作品搜索)
- OpenArt: https://openart.ai (提示词搜索)
总结: 本章50个案例覆盖了SD的主要应用场景。关键是理解提示词结构、参数作用,然后在实践中积累经验。记住: 没有完美的配方,只有不断实验和调整。祝你AI绘画之旅愉快!