當前位置: 華文頭條 > 國風

AI繪畫|Stable Diffusion實戰——如何穩定繪制全身圖(咒語)?

2023-12-08國風

眾所周知,使用Stable Diffusion進行繪制全身圖時,總是會臉崩。今天就分享一下來自模型geminixMix_V3大佬的幹貨,如何能穩定的繪制全身圖。

提醒:不可說原因,部份配圖已刪除,請自行生圖O(∩_∩)O

1.本文中使用geminixMix_V3模型在SD1.5的環境下生成,CKPT下載處放在最後.

2.貼上準備好的prompt,下面是已經幫大家分段好的提示詞,

>>第一段是定義畫面和圖片品質

>>第二段式形容角色

>>第三段式定義環境場景

大家可以依照自己的需求做出調整,最好可以把從頭到腳的配件都寫進去Prompt,可以確保萬無一失,尤其是鞋子.

3.參數設定:

Sampler: DPM++ SDE Karras,

Sampling Steps: 30,

尺寸: 576X1024,

CFG scale: 7,

種子:自訂或 -1,

Hires.fix打勾V,

放大演算法: 個人最常用 Lanczos 可以多方嘗試其他演算法看效果

>>Hires steps: 0

>>Denoising: 0.3

>>Upscale by(放大倍數): 2.0

4.LoRA:

本分享使用2個LoRA:

>>GeminiX_201_NightPunkV1 權重 0.15

>>GeminiX_033_SofiaV1 權重 0.35

5.生成

按下生成後依照顯卡等級(3080約200秒),就會生成一個全身靚妹圖,prompt中的 full-body: 權重建議設定 1.4~1.5,這樣才有大機率生成全身的人體下,還能LoRA保留角色臉部特整,這裏附上 0.5/1.0/1.5/2.0 幾種權重的差異.(2.0時LoRA臉部特征已經有點跑掉了)

6.設定細項解釋

這個尺寸576X1024加上 2X 的Hires.fix,以及 full-body:1.4 的prompt,在全身的構圖且無須其他外掛程式下,讓臉部可以清晰生成,並且LoRA特征不會跑掉.

7.下面是Prompt:

Prompt:

(photorealistic:1.4), (extremely intricate:1.2),(exquisitely detailed skin), cinematic light, ultra high res, 8k uhd, intricate details, Movie Light, film grain, dreamlike, perfect anatomy, best shadow, delicate, RAW, realistic, ((SFW:1.9)), ((school life)),

((1girl, solo)), Japanese girl, ((medium breasts:1)), ((full-body:1.4)), looking at viewer, jacket, white jacket, long sleeves, shirt, black eyes, sitting, closed mouth, bangs, lips,

chair, indoors, classroom, desk, school desk, school chair,

. Negative prompt:

(worst quality, normal quality, low quality:1.7), paintings, sketches, freckles, lowres, monochrome, grayscale, bad proportions, watermark, signature, text, curvy, plump, fat, muscular female, NSFW:2.0,

8.其他:

>>LoRA是使用geminixMix_V3訓練的

>>其他的配圖都會附上prompt.

>>GeminixMix CKPT:

>>LoRA下載處:

<(photorealistic:1.4), (extremely intricate:1.2)>,<(exquisitely detailed skin), cinematic light, ultra high res, 8k uhd, intricate details, Movie Light, film grain, dreamlike, perfect anatomy, best shadow, delicate, RAW>,
(1girl, solo)),Japanese girl,((medium breasts:1)),sneakers,shoes,((sports shirt)),sweatpants,hand on hip,brown eyes,socks,looking at viewer,standing,black hair,graffiti,pink footwear,ponytail,lips,((full-body:1.4)),((daytime, sunlight, sunshine)),(((Taipei 101, Taipei 101 background))),in the alley,alley,outdoors,detailed background,Modern metropolis,

<(photorealistic:1.4), (extremely intricate:1.2)>, <(exquisitely detailed skin), cinematic light, ultra high res, 8k uhd, intricate details, Movie Light, Oil Painting Texture, film grain, dreamlike, perfect anatomy, best shadow, delicate, RAW>, ((short hair, bob hair)), ((1girl, solo)), Japanese girl, ((large breasts:1.0)), ((sneakers, sports shirt, sweatpants)), pink footwear, ((full-body:1.4)), ((neon light)), ((cyberpunk cityscape, glowing neon sign)), ((sfw:1.99))), black black drinking glass, cup, sitting, spread legs, looking at viewer, bar (place), brown eyes, indoors, stool, alcohol, holding cup, holding, realistic, lips, short hair, wine glass, black hair, counter, bar stool, parted lips, neon lights, lace-trimmed cocktail glass, thighs

<(photorealistic:1.4), (extremely intricate:1.2)>, <(exquisitely detailed skin), cinematic light, ultra high res, 8k uhd, intricate details, Movie Light, Oil Painting Texture, film grain, dreamlike, perfect anatomy, best shadow, delicate, RAW>, ((short hair, bob hair)), ((1girl, solo)), Japanese girl, ((large breasts:1.0)), ((sneakers, sports shirt, sweatpants)), pink footwear, ((full-body:1.4)), ((neon light)), ((cyberpunk cityscape, glowing neon sign)), ((sfw:1.99))), ass, pool, looking at viewer, night, poolside, sitting, brown eyes, water, white outdoors, parted lips, lips, earrings, looking back, jewelry, smile, night sky, realistic, from behind

<(photorealistic:1.4), (extremely intricate:1.2)>, <(exquisitely detailed skin), cinematic light, ultra high res, 8k uhd, intricate details, Movie Light, Oil Painting Texture, film grain, dreamlike, perfect anatomy, best shadow, delicate, RAW>, ((short hair, bob hair)), ((1girl, solo)), Japanese girl, ((large breasts:1.0)), ((sneakers, sports shirt, sweatpants)), pink footwear, ((full-body:1.4)), ((neon light)), ((cyberpunk cityscape, glowing neon sign)), ((sfw:1.99))), jewelry, earrings, bar (place), dress, alcohol, lips, looking at viewer, cup, stool, yellow dress, drinking glass, parted lips, bar stool, indoors, multiple girls, brown eyes, bracelet, shoulders, realistic, holding, solo focus, mole under eye, shiny skin, shiny, holding cup

<(photorealistic:1.4), (extremely intricate:1.2)>, <(exquisitely detailed skin), cinematic light, ultra high res, 8k uhd, intricate details, Movie Light, Oil Painting Texture, film grain, dreamlike, perfect anatomy, best shadow, delicate, RAW>, ((short hair, bob hair)), ((1girl, solo)), Japanese girl, ((large breasts:1.0)), ((sneakers, sports shirt, sweatpants)), pink footwear, ((full-body:1.4)), ((neon light)), ((cyberpunk cityscape, glowing neon sign)), ((sfw:1.99))), looking at viewer, sunset, sitting, earrings, lips, realistic, jewelry, mole on thigh, green eyes, mole on breast, ocean, water, collarbone