2025年4月19日 星期六

Stable Diffusion 學習筆記 (八) : 安裝 Tile VAE 外掛

Tile VAE 是專為增進高解析度圖像生成時的效能與品質而設計的外掛, 其原理是將圖像分割為多個小區塊 (tile) 分別進行處理, 故能有效降低記憶體耗用情形, 且同時能提升圖像細節與整體品質. 

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

https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111.git 

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



然後到 "Install (已安裝)" 頁籤按下 "安裝並重新更新使用者介面" 鈕 : 




安裝後在底下微調區會多出 ADetailer 設定, 勾選啟用, 其餘用預設值 : 




用下列提示詞範例生圖 :

正向提示詞 :

((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)

使用前面測試時記下的隨機種子 seed=1532845625 重新生圖結果如下 : 




臉部似乎有瑕疵. 

如果將隨機種子改回預設的 -1 結果如下 : 




其設定如下 : 

Steps: 20, Sampler: DPM++ 2M, Schedule type: Karras, CFG scale: 7, Seed: 3257549781, Size: 512x512, Model hash: 7c819b6d13, Model: majicmixRealistic_v7, Version: v1.10.1

Saved: 00003-3257549781.png
 

沒有留言 :