2025年4月19日 星期六

Stable Diffusion 學習筆記 (六) : 安裝 ADetailer 外掛

ADetailer 是一款專為 Stable Diffusion WebUI 設計的擴充功能, 它具有自動檢測並修復生成圖像中常見的問題區域 (例如臉部和手部) 之功能, 可消除生成過程導致的臉部模糊, 手指錯位或其他細節錯誤等問題, 能顯著提升圖像的整體品質. 

在 "Extensions (擴充功能)/Installed (已安裝套件)/Install from URL (從網址安裝)" 頁籤的 "URL  for extension's git repository(擴充功能的 git 儲存庫網址)" 框中輸入如下網址 : 

https://github.com/Bing-su/adetailer.git

然後按底下的 "Install(安裝)" 鈕 : 




安裝完後切到 "擴充功能"/"已安裝" 頁籤, 按 "更新並重新啟動使用者介面" 鈕 :  




我用本系列第一篇測試中使用的提示詞範例生圖 :

正向提示詞 :

((masterpiece)), ((best quality)), ((realistic)), ((detailed skin texture)), ((cinematic lighting)), 
((8K UHD)), highly detailed, beautiful woman, natural skin, soft lighting, 
sharp focus, depth of field, looking at camera, neutral expression, ultra-detailed face

負向提示詞 :

(worst quality:1.4), (low quality:1.4), (jpeg artifacts), (blurry), (text), (cropped), 
(ugly), (deformed), (bad anatomy), (poorly drawn face), (disfigured), (mutation), 
(extra limbs), (fused fingers), (missing fingers), (bad hands), (bad proportions)

使用預設微調設定重新生圖結果如下 : 





這外掛效果不錯ㄟ, 可以按底下隨機種子欄的第二個按鈕顯示其隨機種子以便後續繪圖時作為效果比較用 : 




存檔資料如下 :

((masterpiece)),((best quality)),((realistic)),((detailed skin texture)),((cinematic lighting)),
((8K UHD)),highly detailed,beautiful woman,natural skin,soft lighting,
sharp focus,depth of field,looking at camera,neutral expression,ultra-detailed face,
Negative prompt: (worst quality:1.4), (low quality:1.4), (jpeg artifacts), (blurry), (text), (cropped),
(ugly), (deformed), (bad anatomy), (poorly drawn face), (disfigured), (mutation),
(extra limbs), (fused fingers), (missing fingers), (bad hands), (bad proportions)
Steps: 20, Sampler: DPM++ 2M, Schedule type: Karras, CFG scale: 7, Seed: 1532845625, Size: 512x512, Model hash: 7c819b6d13, Model: majicmixRealistic_v7, Version: v1.10.1


((masterpiece)),((best quality)),((realistic)),((detailed skin texture)),((cinematic lighting)),
((8K UHD)),highly detailed,beautiful woman,natural skin,soft lighting,
sharp focus,depth of field,looking at camera,neutral expression,ultra-detailed face,
Negative prompt: (worst quality:1.4),(low quality:1.4),(jpeg artifacts),(blurry),(text),(cropped),
(ugly),(deformed),(bad anatomy),(poorly drawn face),(disfigured),(mutation),
(extra limbs),(fused fingers),(missing fingers),(bad hands),(bad proportions),
Steps: 20, Sampler: DPM++ 2M, Schedule type: Karras, CFG scale: 7, Seed: 1532845625, Size: 512x512, Model hash: 7c819b6d13, Model: majicmixRealistic_v7, ADetailer model: face_yolov8n.pt, ADetailer confidence: 0.3, ADetailer dilate erode: 4, ADetailer mask blur: 4, ADetailer denoising strength: 0.4, ADetailer inpaint only masked: True, ADetailer inpaint padding: 32, ADetailer version: 25.3.0, Version: v1.10.1

Saved: 00001-1532845625.png

沒有留言 :