mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-02-04 14:44:19 +01:00
112 lines
4.5 KiB
Markdown
112 lines
4.5 KiB
Markdown
# 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](https://huggingface.co/stabilityai/stable-diffusion-3-medium)
|
|
|
|
**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](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
|
|
|
|
[Full feature list here](https://github.com/AUTOMATIC1111/stable-diffusion-webui-feature-showcase), Screenshots:
|
|
|
|
| Text to image | Image to image | Extras |
|
|
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
|  |  |  |
|
|
|
|
### [ComfyUI](https://github.com/comfyanonymous/ComfyUI)
|
|
|
|
[Full feature list here](https://github.com/comfyanonymous/ComfyUI#features), 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](./LICENSE).
|
|
|
|
## Thanks
|
|
|
|
Special thanks to everyone behind these awesome projects, without them, none of this would have been possible:
|
|
|
|
- [AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
|
|
- [InvokeAI](https://github.com/invoke-ai/InvokeAI)
|
|
- [ComfyUI](https://github.com/comfyanonymous/ComfyUI)
|
|
- [CompVis/stable-diffusion](https://github.com/CompVis/stable-diffusion)
|
|
- [Sygil-webui](https://github.com/Sygil-Dev/sygil-webui)
|
|
- [AbdBarho/stable-diffusion-webui-docker](https://github.com/AbdBarho/stable-diffusion-webui-docker)
|
|
- and many many more.
|