下面介紹了N卡,A卡,或CPU跑 stable-diffusion-webui的方法。
先看樣張:
1.安裝python 3.10.x
https://www.python.org/downloads/
2.安裝Git
Git - Downloads (git-scm.com)
3、克隆stable-diffusion-webui項(xiàng)目
1. 新建文件夾
(不能有中文,建議放在空閑比較多的硬盤上),然后再文件夾打開命令行
#【非必要】如果有代理工具(比如clash),在命令行配置git的http和https代理:
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
#取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
2. 克隆
Nvidia顯卡
# Nvidia
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
AMD顯卡 AMD GPU 說明
# AMD
git clone https://github.com/lshqqytiger/stable-diffusion-webui-directml.git
#第一次啟動(dòng)會自動(dòng)下載下面兩個(gè)庫
#git clone https://github.com/lshqqytiger/k-diffusion-directml.git
#git clone https://github.com/lshqqytiger/stablediffusion-directml.git
#把k-diffusion-directml里面文件放入:repositories\k-diffusion
#把stablediffusion-directml里面文件放入:stable-diffusion-stability-ai
CPU 選擇上面任意一個(gè)都可以
下載慢可以請求頭加https://ghproxy.com/ 如: https://ghproxy.com/https://github.com/***
4.下載模型
SD_v1.5 Inpainting
BRA(Beautiful Realistic Asians) V5 - Brav5 | Stable Diffusion Checkpoint | Civitai
ChilloutMix - Chilloutmix-Ni-pruned-fp32-fix | Stable Diffusion Checkpoint | Civitai
majicMIX realistic - v4 | Stable Diffusion Checkpoint | Civitai
下載.ckpt文件,并放在項(xiàng)目的models/Stable-diffusion目錄下
5、啟動(dòng)項(xiàng)目
.\webui-user.bat
# 如果爆顯存修改 webui-user.bat 文件中 set COMMANDLINE_ARGS= 后面的值
set COMMANDLINE_ARGS= --medvram --precision full --no-half --no-half-vae --opt-split-attention-v1 --opt-sub-quad-attention --disable-nan-check --enable-insecure-extension-access --no-gradio-queue
# 如果還是爆顯存 啟用低性能模式
set COMMANDLINE_ARGS= --lowvram --precision full --no-half --no-half-vae --opt-split-attention-v1 --opt-sub-quad-attention --disable-nan-check --enable-insecure-extension-access --no-gradio-queue --listen
# 如果沒有顯卡 用CPU跑
set COMMANDLINE_ARGS= --use-cpu all --precision full --no-half --no-half-vae --opt-split-attention-v1 --opt-sub-quad-attention --disable-nan-check --enable-insecure-extension-access --no-gradio-queue
啟動(dòng)成功,瀏覽器輸入:http://127.0.0.1:7860/
測試:
擴(kuò)展
舉例:正向提示
best quality, ultra-detailed, masterpiece, finely detail, highres, 8k wallpaper,beautiful detailed eyes,highly detailed skin,extremely delicate and beautiful girls,masterpiece, best quality, girl, black hair, cute face, longeyelashes, black eyes, mature, crossed bangs, hair over shoulder, light blush, wide eyed, pleated_skirt,earrings, cityscape, real,upper body
舉例:反向提示
mutated hands and fingers,text,title,deformed, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, out of focus, long neck, long body
選關(guān)鍵詞生成器
https://tag.redsex.cc/
https://thereisnospon.github.io/NovelAiTag/
模型下載網(wǎng)站
https://civitai.com/
https://www.liblibai.com/
https://models.paomiantv.cn/models
人物起手
(best quality), (masterpiece), (highres), original, extremely detailed 8K wallpaper, (extremely delicate and beautiful), illustrations,hand of guido daniele,beautiful face,detail fingers,beautiful detailed eyes,
光影人物起手
cinematic light, colorful, hyper detail,dramatic light,light_hair, intricate details, best quality, (extremely detailed CG unity 8k wallpaper, masterpiece, best quality, ultra-detailed, best shadow), (detailed background), (beautiful detailed face, beautiful detailed eyes), High contrast, (best illumination, an extremely delicate and beautiful), dynamic angle,beautiful detailed glow,
反向
extra fingers,fused fingers,poorly drawn face,cloned face,extra legs,poorly drawn asymmetric eyes,poorly drawn hands,blurry,(worst quality, low quality:1.4), (malformed hands:1.4),(poorly drawn hands:1.4),(mutated fingers:1.4),(extra limbs:1.35),(poorly drawn face:1.4), badv3
高清起手
(RAW photo:1.2), (photorealistic:1.4), (intricate details:1.2), (best quality:1.4), (delicate), (detailed eyes), (detailed facial features), dynamic pose, petite, narrow waist, slim_legs,
常用插件
中文
擴(kuò)展搜索:zh_Hans Localization
然后再設(shè)置中,選擇User interface 中 Localization (requires restart) 選擇zh-Hans (Stable)
或者
擴(kuò)展搜索:zh_CN Localization
然后再設(shè)置中,選擇 Bilingual Localization 啟用 Enable Devtools Log 再選擇zh-Hans (Stable)。
(必須先關(guān)閉User interface中的翻譯)
圖庫瀏覽器
擴(kuò)展搜索:image browser
自動(dòng)tag 中文tag
擴(kuò)展搜索:Booru tag autocompletion
然后去下載詞庫:https://www.bilibili.com/video/BV1Bg4y1H7Tq http://www.123114514.xyz/WebUI/Tag
然后把壓縮包a1111-sd-webui-tagcomplete.zip中的tag/zh_cn.csv 和 tag/zh_cn_tr.csv 解壓放入extensionsa1111-sd-webui-tagcomplete\tags 文件夾中。
然后在設(shè)置 標(biāo)簽自動(dòng)補(bǔ)全中:Tag filename =zh_cn.csv 然后設(shè)置 Search by translation=zh_cn_tr.csv
圖片放大
擴(kuò)展搜索:Ultimate SD Upscale
局部細(xì)節(jié)放大
擴(kuò)展搜索:LLuL
草圖轉(zhuǎn)圖片
擴(kuò)展搜索:sd-webui-controlnet
然后去下載模型 lllyasviel/ControlNet-v1-1 at main (huggingface.co) 放入 extensions\sd-webui-controlnet\models 文件夾
超級模型融合
擴(kuò)展搜索:SuperMerger
樣張
文章來源:http://www.zghlxwxcb.cn/news/detail-457946.html
整理了這么久,點(diǎn)個(gè)贊,點(diǎn)個(gè)關(guān)注吧。文章來源地址http://www.zghlxwxcb.cn/news/detail-457946.html
到了這里,關(guān)于AI繪圖入門 安裝 stable-diffusion-webui的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!