[StaD] 請問inpaint失敗,會是什麼原因?
5/15 問題已解決,請見推文處。(AMD/Intel顯卡觸發之bug)
==
Stable Diffusion新手有個問題想請教:
那就是我在試著使用inpaint功能的時候,
mask的區域無論怎麼調整參數,
算圖後的成果總是糊成一片。
如下例:
想畫一個類似地獄神龍elf的精靈法師
positive prompts:
((masterpiece)), ((realistic photo)), ((high detail)), female elf magician,
((green shortsleeves suit)), ((short narrow skirt)), (brown long cape:1.25),
((light brown hair)), (bangs), beautiful brown eyes, (emerald necklace),
(emerald earrings), (belt), solo, (mysterious forest:1.25),
<lora:Taiwan-doll-likeness:0.1> <lora:Japanese-doll-likeness:0.3>
<lora:Korean-doll-likeness:0.4>
negative prompts:
Negative prompt: (worst quality:1.75), (low quality:1.75), (normal
quality:1.75), (big breasts:1.35), ((coat)), ((hair accessories)), (bare
belly), (more necklaces), ((veil)), choker, tattoo, birthmark, skin spot,
short hair, more staffs, ((bad anatomy)), ((bad hands)), ((more fingers)),
((fewer fingers)), more hands
跑出來下圖
https://i.imgur.com/vPYevqP.png
現在我想把項鍊換成翡翠項鍊,使用mask遮罩原先生成的項鍊
positive prompts:(emerald necklace)
negative prompts:(worst quality:1.75), (low quality:1.75), (normal
quality:1.75)
https://i.imgur.com/ylod52y.png
跑的途中往往都可以看到預覽圖隱約有些想要的成果浮現
但最後一刻都會跳成糊糊的一片
https://i.imgur.com/VZKF13k.png
把馬賽克範圍拉大一點也是一樣,途中可以看到翡翠項鍊影子
https://i.imgur.com/Ig4xCmb.png
跑完變糊糊一片
https://i.imgur.com/7LxjcVC.png
實驗過各種變數,比方說「mask content」下除fill外的選項,
sampling method、sampling steps→5~50、denosing strength→0.1~1
CGF scale→5~15等等,
跑圖時預覽可以看到想要的成果清晰或模糊不等,
但是完成圖一定連個影子都沒有變成整片模糊。
是哪裡出了問題呢?這個問題一直沒解決我想ControlNet也不用學了。
有可能會是硬體問題或是model本身不完整導致bug嗎?
我用的是Intel a750(8G),使用巴哈上提到的下載。
https://reurl.cc/9V2vnn
是reddit上有人改出的版本,和正常安裝出來的差在哪我不知道QQ
平常使用小圖512*512以下小圖實驗效果的時候使用--medvram參數,
(沒加參數512*512也常爆vram,只是就連加了參數,
gpu負載也是全程吃滿,溫度會到70+,速度尚可接受)
到睡前使用--lowvram參數來生圖,雖然真的很慢,但可以穩定跑544*960,
溫度最多也只在在60度。
感謝各位看到這裡。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.160.84.133 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/AI_Art/M.1683889269.A.8B9.html
※ 編輯: MagicSong (118.160.84.133 臺灣), 05/12/2023 19:02:49
補充說明:
我都是用Microsoft Edge生圖,因為平常習慣Chrome分頁開太多了,
生圖時把Chrome關閉以防萬一,有試過只使用Chrome來inpaint但是沒用。
※ 編輯: MagicSong (118.160.84.133 臺灣), 05/12/2023 19:26:36
→
05/12 21:57,
11月前
, 1F
05/12 21:57, 1F
→
05/12 21:58,
11月前
, 2F
05/12 21:58, 2F
→
05/12 22:00,
11月前
, 3F
05/12 22:00, 3F
→
05/12 22:03,
11月前
, 4F
05/12 22:03, 4F
→
05/12 22:09,
11月前
, 5F
05/12 22:09, 5F
→
05/12 22:13,
11月前
, 6F
05/12 22:13, 6F
→
05/12 22:21,
11月前
, 7F
05/12 22:21, 7F
→
05/12 22:30,
11月前
, 8F
05/12 22:30, 8F
→
05/12 22:30,
11月前
, 9F
05/12 22:30, 9F
→
05/12 22:32,
11月前
, 10F
05/12 22:32, 10F
→
05/12 22:37,
11月前
, 11F
05/12 22:37, 11F
→
05/12 23:59,
11月前
, 12F
05/12 23:59, 12F
推
05/13 16:39,
11月前
, 13F
05/13 16:39, 13F
→
05/13 16:47,
11月前
, 14F
05/13 16:47, 14F
→
05/13 16:48,
11月前
, 15F
05/13 16:48, 15F
→
05/14 03:02,
11月前
, 16F
05/14 03:02, 16F
→
05/14 03:02,
11月前
, 17F
05/14 03:02, 17F
→
05/14 03:02,
11月前
, 18F
05/14 03:02, 18F
→
05/14 03:02,
11月前
, 19F
05/14 03:02, 19F
此問題發生在AMD卡或Intel卡用戶,
在webui-user.bat內加入以下參數
--no-half --precision full --no-half-vae
--opt-sub-quad-attention --opt-split-attention-v1
即可正常運作inpaint
原先找到解答的那篇不知道在哪,但是找到了另一個同樣問題的解答
https://www.reddit.com/r/StableDiffusion/comments/11p1az5/inpaint_issue/
也有其他人碰上類似問題是在使用firefox時遇到的,
如果有問題亦可嘗試更換瀏覽器。
推
05/14 14:15,
11月前
, 20F
05/14 14:15, 20F
→
05/14 14:15,
11月前
, 21F
05/14 14:15, 21F
謝謝你的提醒,這點我自己也知道,就是我全都要放不下的老毛病...
※ 編輯: MagicSong (118.160.68.143 臺灣), 05/15/2023 22:15:23