docker-sdxl icon indicating copy to clipboard operation
docker-sdxl copied to clipboard

简单、靠谱的 SDXL Docker 使用方案。

Docker Stable Diffusion XL (SDXL)

简单、靠谱的 SDXL Docker 使用方案。

欢迎一键三连🌟👏

镜像下载地址

使用教程

快速启动

将模型文件中的 stabilityai 放在当前目录,然后执行 Docker 命令:

docker run --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 --rm -it -v `pwd`/stabilityai/:/app/stabilityai -p 7860:7860 soulteary/sdxl:runtime

额外计划

  • 集成 2~3 种主流 UI

手动构建

# 构建基础镜像
bash scripts/make-sdxl-base.sh
# 构建运行时镜像
bash scripts/make-sdxl-runtime.sh

# (可选)构建一键包,将模型下载至 `stabilityai` 目录后
bash scripts/make-sdxl-one-click.sh

Docker 镜像说明

# 和官方镜像保持一致的 PyTorch 版本
soulteary/sdxl:runtime
# 包含所有模型的镜像
soulteary/sdxl:all

# xformers 版本,PyTorch 版本较低
soulteary/sdxl:runtime-xformers
# 包含所有模型的镜像
soulteary/sdxl:all-xformers

相关项目

  • CompVis/stable-diffusion
  • Stable Diffusion XL: https://github.com/soulteary/docker-sdxl
  • Stable Diffusion XL Turbo: https://github.com/soulteary/docker-stable-diffusion-xl-turbo
  • Stable Video Diffusion: https://github.com/soulteary/docker-stable-video-diffusion
  • Docker Prompt Generator: https://github.com/soulteary/docker-prompt-generator
  • Apple ML Stable Diffusion: https://github.com/soulteary/ml-stable-diffusion
  • Taiyi Stable Diffusion: https://github.com/soulteary/docker-stable-diffusion-taiyi