AI繪圖 StableDiffusion LORA模型
安裝軟體
- Install Python 3.10.6
- Install git.
- Download the stable-diffusion-webui repository, for example by running git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
- 下載模型 Waifu Diffusion
下載 https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth
- Run webui-user.bat from Windows Explorer as normal, non-administrator, user.
D:\AItest\diffusion>webui-user.bat
如果是 nvidia 的顯卡但是是 ram 較少而且較舊的顯卡,顯示 cuda 錯誤訊息的話,編輯 webui-user.bat 修改第六列
set COMMANDLINE_ARGS=--lowvram --precision full --no-half --skip-torch-cuda-test
中文化
CMD指令視窗記得不能關閉
http://127.0.0.1:7860/
在URL的地方貼上 https://github.com/benlisquare/stable-diffusion-webui-localization-zh_TW
settings>User interface>Localization (requires restart)>選擇zh_TW>儲存>reload
中文化完成
推薦可安裝雙語介面同時顯示中文和英文:https://github.com/journey-ad/sd-webui-bilingual-localization
操作使用
Prompt :
(realistic, photo-realistic:1.37), ultra-detailed, 1 girl,cute, solo,beautiful detailed sky,detailed cafe,night,sitting,dating,(nose blush),(smile:1.15),(closed mouth) small breasts,beautiful detailed eyes,(collared shirt:1.1), night, wet,business attire, rain,white lace, (short hair:1.2),floating hair NovaFrogStyle
Negative Prompt :
((nipple)), ((((ugly)))), (((duplicate))), ((morbid)), ((mutilated)), (((tranny))), (((trans))), (((trannsexual))), (hermaphrodite), [out of frame], extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))). (((more than 2 nipples))). [[[adult]]], out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands, (fused fingers), (too many fingers), (((long neck)))
LORA
LoRA 模型是一種訓練好的模型,原理是利用餵給它相關風格的圖,就可以產出類似風格的影像
下載模型:https://civitai.com/
檔案放到 D:\AItest\diffusion\extensions\sd-webui-additional-networks\models\lora
下載模型VAE:https://huggingface.co/stabilityai/sd-vae-ft-mse-original/tree/main
檔案放到 D:\AItest\diffusion\models\VAE
其他推薦模型
ChilloutMix,檔案放到models\Stable-diffusion資料夾下
發表評論
想要留言嗎?歡迎歡迎!