SD web UI:設定 Negative Guidance minimum sigma 讓出圖加速吧!

2023/06/15 1,704 0 軟體應用 , 人工智慧 , AI繪圖

SD web UI 全稱 Stable Diffusion web UI,是本次要使用的 AI 繪圖工具。「Negative Guidance minimum sigma」的運作原理是在圖像幾乎完成時,跳過一些步驟的反向提詞,預設為 0 表示禁用,當設定數值越高速度將會越快,最高可以設定 4,但通常背景等會少一些些細節。網路上看到有人實驗,在步數不太高的情況下,低於 0.8 的值可以相當不錯地保持品質。在啟用高解析度修復的情況下,值可以達到 0.95 並且效果還不錯。我自己是覺得在低步數下速度不會差太多,不過我的 GPU 是 GeForce RTX 3060 12G,也許更低階的顯示卡能快很多。大家可以抓一個適合的值來加速出圖!但也要注意不要調太高可能會影像出圖品質喔!不過如果不放大看老實說也看不太出來 🤣。


▲ XYZ 比較圖可以設定多個「Negative Guidance minimum sigma」的值來做對照。

▲ 找到適合的數值可以到「設定」→「Optimizations」→「Negative Guidance minimum sigma」中進行調整,完成請點上方「套用設定」。

示範提詞:masterpiece, (best quality:1.3), Amazing, beautiful detailed eyes, 1girl, solo, finely detail,depth_of_field, extremely detailed CG unity 8k wallpaper, (arms_behind_back), portrait, red eyes, long hair, dress, breasts, purple hair, jewelry, white dress, covered navel, hairband, earrings, armpits, detached sleeves, red hairband, ahoge, blush, small breasts, bangs, bare shoulders, pointy ears, bowtie, bow, parted bangs, cleavage, thighs, cowboy shot, looking_at_viewer, cherry blossoms, tree, outdoors, shooting star, petals, cloud
示範參數:Sampler: DPM++ 2M, CFG scale: 7, Size: 512x768, Model: AnythingV5V3_v5RE
Negative Guidance minimum sigma:0,0.5,1,1.5,2,2.5,3,4


▲ Steps: 80, Seed: 1234 之下的 XY 比較圖,出圖速度如下:

100%|██████████████████████████████████████████████████████████████████████████████████| 80/80 [00:25<00:00, 3.18it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 80/80 [00:23<00:00, 3.44it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 80/80 [00:22<00:00, 3.50it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 80/80 [00:21<00:00, 3.67it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 80/80 [00:21<00:00, 3.80it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 80/80 [00:21<00:00, 3.77it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 80/80 [00:20<00:00, 3.87it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 80/80 [00:19<00:00, 4.14it/s]
Total progress: 100%|████████████████████████████████████████████████████████████████| 640/640 [03:03<00:00, 3.48it/s]


▲ Steps: 30, Seed: 1235 之下的 XY 比較圖,出圖速度如下:

100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:08<00:00, 3.42it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:08<00:00, 3.73it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:08<00:00, 3.74it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:07<00:00, 3.91it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:07<00:00, 4.25it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.30it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:07<00:00, 4.28it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:06<00:00, 4.37it/s]
Total progress: 100%|████████████████████████████████████████████████████████████████| 240/240 [01:08<00:00, 3.51it/s]


▲ Steps: 80, Seed: 1234 之「Negative Guidance minimum sigma」設定為 0 與 4 對照圖。

▲ Steps: 30, Seed: 1235 之「Negative Guidance minimum sigma」設定為 0 與 4 對照圖。

[完]

贊助廣告 ‧ Sponsor advertisements

留言區 / Comments

萌芽論壇