Easy Docker setup for Stable Diffusion with user-friendly UI
Find a file
2024-06-14 21:11:44 +07:00
.devscripts v8 (#516) 2023-06-24 10:06:30 +02:00
.github Update Auto (#610) 2023-11-13 21:12:07 +01:00
.vscode Force LF (#24) 2022-09-03 06:59:16 +02:00
data CUDA support, updated ComfyUI to support SD3, updated readme 2024-06-14 21:11:44 +07:00
output Initial 2022-08-27 12:38:12 +01:00
services CUDA support, updated ComfyUI to support SD3, updated readme 2024-06-14 21:11:44 +07:00
.editorconfig Force LF (#24) 2022-09-03 06:59:16 +02:00
.gitattributes Force LF (#24) 2022-09-03 06:59:16 +02:00
.gitignore Fix overwriting existing values in config.json in auto (#418) 2023-05-06 07:38:36 +02:00
docker-compose.yml CUDA support, updated ComfyUI to support SD3, updated readme 2024-06-14 21:11:44 +07:00
LICENSE [BREAKING] Rename UIs (#254) 2022-12-04 11:00:28 +01:00
README.md CUDA support, updated ComfyUI to support SD3, updated readme 2024-06-14 21:11:44 +07:00
selinux-cache.sh CUDA support, updated ComfyUI to support SD3, updated readme 2024-06-14 21:11:44 +07:00

Stable Diffusion WebUI Podman

Run Stable Diffusion web browser accessible UI on your CUDA/ROCm machine without any hassle!

NOTE:

  • Supports AUTOMATIC1111 and ComfyUI
  • Supports CUDA and ROCm
  • Supports SD 1.5 and SDXL for AUTOMATIC1111 and ComfyUI
  • Supports SD 3 for ComfyUI
  • Requires podman-compose 1.1.0 or newer

Quick Setup

Download necessary models

$ podman-compose --profile download build
$ podman-compose --profile download up -d

Run AUTOMATIC1111 Stable Diffusion Web UI with CUDA support

$ podman-compose --profile auto-cuda build
$ podman-compose --profile auto-cuda up -d

You can change --profile auto-cuda to different profile:

Profile Description
auto-cuda AUTOMATIC1111 with CUDA support
auto-rocm AUTOMATIC1111 with ROCm support
comfyui-cuda ComfyUI with CUDA support
comfyui-rocm ComfyUI with ROCm support

Set the container as systemd service to allow running on user login

Create AUTOMATIC1111 Stable Diffusion Web UI Podman service

Find the name of the running container

$ podman ps

Set the container as systemd service. E.g. for container named webui-podman_auto_1:

$ podman generate systemd --new webui-podman_auto_1 > ~/.config/systemd/user/automatic1111.service

Enable and run AUTOMATIC1111 Stable Diffusion Web UI Podman service

$ systemctl --user enable --now automatic1111.service

Stable Diffusion 3

Download models here: Stable Diffusion 3 on HuggingFace

Put SD3 models here:

/data/models/Stable-diffusion

Put SD3 text encoders here:

/data/models/CLIPEncoder

Features

This repository provides multiple UIs for you to play around with stable diffusion:

AUTOMATIC1111

Full feature list here, Screenshots:

Text to image Image to image Extras

ComfyUI

Full feature list here, Screenshot:

Workflow

Contributing

Contributions are welcome! Create a discussion first of what the problem is and what you want to contribute (before you implement anything)

Disclaimer

The authors of this project are not responsible for any content generated using this interface.

This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please read the license.

Thanks

Special thanks to everyone behind these awesome projects, without them, none of this would have been possible: