SD文生图教程 旧版本直通
使用参考:
https://blog.csdn.net/Jack__Lau__/article/details/135140056
一. 插件 插件地址:
Civitai:
https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper
https://gitee.com/aiovia/Stable-Diffusion-Webui-Civitai-Helper
中文插件:
https://gitee.com/cloneai/sd-webui-bilingual-localization.git
https://gitee.com/stable_diffusion/stable-diffusion-webui-localization-zh_CN
新增其他模型:
https://zhuanlan.zhihu.com/p/641027156
模型下载地址:
https://huggingface.co/
https://civitai.com/
C站:
https://civitai.com/images prompthero:
https://prompthero.com/ Majinai:
https://majinai.art/index.php 词图:
https://www.prompttool.com/NovelAI Black Lily:
http://heizicao.gitee.io/novelai/#/book Danbooru 标签超市:
https://tags.novelai.dev/ AI 词汇加速器:
https://ai.dawnmark.cn/ NovelAI 魔导书:
https://thereisnospon.github.io/NovelAiTag/
二. 部署 说明:
外网访问模式:
1 2 3 4 5 6 cd modulesvim /dockerx/stable-diffusion-webui/modules/cmd_args.py
1 2 parser.add_argument("--listen" , action='store_true' ,default=True, help ="launch gradio with 0.0.0.0 as server name, allowing to respond to network requests" ) parser.add_argument("--port" , type =int, help ="launch gradio with given server port, you need root/admin rights for ports < 1024, defaults to 7860 if available" , default=7860)
不同模型存放位置
模型文件(safetensors,checkpoint)添加到以下目录
/dockerx/stable-diffusion-webui/models/Stable-diffusion/
Lora文件添加到以下目录
/dockerx/stable-diffusion-webui/models/Lora/
VAE文件添加到以下目录
/dockerx/stable-diffusion-webui/models/VAE/
使用docker-compose
方式(部署完成后需要等待一段时间 才能浏览器访问7860端口使用)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 version: '3.8' services: stable-diffusion: image: gpulab.tencentcloudcr.com/ai/stable-diffusion:1.0.7 container_name: stable-diffusion runtime: nvidia deploy: resources: reservations: devices: - capabilities: [gpu ] network_mode: host devices: - /dev/dri:/dev/dri group_add: - video ipc: host cap_add: - SYS_PTRACE security_opt: - seccomp=unconfined stdin_open: true volumes: - ./cmd_args.py:/dockerx/stable-diffusion-webui/modules/cmd_args.py - ./ponyRealism_v22MainVAE.safetensors:/dockerx/stable-diffusion-webui/models/VAE/ponyRealism_v22MainVAE.safetensors - ./3Guofeng3_v34.safetensors:/dockerx/stable-diffusion-webui/models/Stable-diffusion/国风/3Guofeng3_v34.safetensors - ./vae-ft-mse-840000-ema-pruned.ckpt:/dockerx/stable-diffusion-webui/models/VAE/vae-ft-mse-840000-ema-pruned.ckpt - ./face.ckpt:/dockerx/stable-diffusion-webui/models/Stable-diffusion/真实/face.ckpt - ./Nahida.safetensors:/dockerx/stable-diffusion-webui/models/Stable-diffusion/现实与动漫/Nahida.safetensors - ./sd1.5_Outline_Color_1.0.safetensors:/dockerx/stable-diffusion-webui/models/Stable-diffusion/动漫插画风/sd1.5_Outline_Color_1.0.safetensors
三. 前端页面开启相关功能 开启vae
安装插件