AI生成圖像:1111版stable diffusion本地搭建及controlnet,deforum,lora拓展使用教程

Stable diffusion本地版下載地址
https://github.com/AUTOMATIC1111/stable-diffusion-webui
步驟:
下載并安裝git https://git-scm.com/
下載并安裝python 3.10.6(建議安裝到默認目錄)https://www.python.org/downloads/windows/ ?,下載時需要勾選 "Add Python to PATH"
通過git拉取相應(yīng)內(nèi)容 ?運行git clone
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
將model.ckpt文件放到models\Stable-diffusion目錄

基礎(chǔ)模型地址:https://huggingface.co/CompVis/stable-diffusion-v-1-4-original
https://huggingface.co/runwayml/stable-diffusion-v1-5/tree/main
拓展模型地址:https://civitai.com/
運行webui-user.bat文件 耐心等待
自動配置完環(huán)境依賴之后復(fù)制最后的地址到瀏覽器

拓展安裝:

controlnet(允許根據(jù)輸入圖片的骨骼、線稿、深度等信息生成圖像):https://github.com/Mikubill/sd-webui-controlnet
controlnet模型下載:https://huggingface.co/webui/ControlNet-modules-safetensors/tree/main
deforum(視頻用):https://github.com/deforum-art/deforum-for-automatic1111-webui

vae模型下載:https://huggingface.co/stabilityai/sd-vae-ft-ema-original/tree/main
https://civitai.com/api/download/models/6297?type=VAE
下載后需要放到 models\VAE-approx文件夾
之后在設(shè)置界面選擇使用的vae模型

拓展模型:
真人寫實風格:
https://civitai.com/models/6424/chilloutmix
二次元:
https://civitai.com/models/5414/pastel-mix-stylized-anime-model
https://civitai.com/models/4468/counterfeit-v25
https://civitai.com/models/8351/nice-line