2024-05-02 10:24:58 +02:00
# Stable Diffusion WebUI Podman
2022-09-02 12:16:21 +02:00
2024-06-14 16:11:44 +02:00
Run Stable Diffusion web browser accessible UI on your CUDA/ROCm machine without any hassle!
2024-05-02 10:24:58 +02:00
NOTE:
2024-05-02 14:05:57 +02:00
- Supports AUTOMATIC1111 and ComfyUI
2024-06-14 16:11:44 +02:00
- Supports CUDA and ROCm
- Supports SD 1.5 and SDXL for AUTOMATIC1111 and ComfyUI
- Supports SD 3 for ComfyUI
2024-05-02 10:24:58 +02:00
- Requires podman-compose 1.1.0 or newer
2022-09-02 12:16:21 +02:00
2024-06-14 16:11:44 +02:00
## Quick Setup
2024-05-02 10:24:58 +02:00
**Download necessary models**
```
$ podman-compose --profile download build
$ podman-compose --profile download up -d
```
2024-06-14 16:11:44 +02:00
**Run AUTOMATIC1111 Stable Diffusion Web UI with CUDA support**
2024-05-02 10:24:58 +02:00
```
2024-06-14 16:11:44 +02:00
$ podman-compose --profile auto-cuda build
$ podman-compose --profile auto-cuda up -d
2024-05-02 10:24:58 +02:00
```
2022-09-07 19:52:43 +02:00
2024-06-14 16:11:44 +02:00
**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
2024-05-02 10:52:05 +02:00
**Create AUTOMATIC1111 Stable Diffusion Web UI Podman service**
2024-06-14 16:11:44 +02:00
Find the name of the running container
2024-05-02 10:52:05 +02:00
```
2024-06-14 16:11:44 +02:00
$ 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
2024-05-02 10:52:05 +02:00
```
**Enable and run AUTOMATIC1111 Stable Diffusion Web UI Podman service**
```
$ systemctl --user enable --now automatic1111.service
```
2024-06-14 16:11:44 +02:00
## 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
```
2024-05-02 14:05:57 +02:00
2022-09-02 12:16:21 +02:00
## Features
2022-11-09 18:56:22 +01:00
This repository provides multiple UIs for you to play around with stable diffusion:
2022-12-04 11:00:28 +01:00
### [AUTOMATIC1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
2022-09-02 12:16:21 +02:00
2022-12-04 11:00:28 +01:00
[Full feature list here ](https://github.com/AUTOMATIC1111/stable-diffusion-webui-feature-showcase ), Screenshots:
2022-09-02 12:16:21 +02:00
2022-09-11 20:18:50 +02:00
| Text to image | Image to image | Extras |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|  |  |  |
2022-09-02 12:16:21 +02:00
2023-04-21 21:34:17 +02:00
### [ComfyUI](https://github.com/comfyanonymous/ComfyUI)
[Full feature list here ](https://github.com/comfyanonymous/ComfyUI#features ), Screenshot:
| Workflow |
| -------------------------------------------------------------------------------- |
|  |
2022-12-04 11:00:28 +01:00
## Contributing
2022-10-11 20:00:58 +02:00
2022-12-04 11:00:28 +01:00
Contributions are welcome! **Create a discussion first of what the problem is and what you want to contribute (before you implement anything)**
2022-09-13 19:51:58 +02:00
2022-09-11 20:18:50 +02:00
## Disclaimer
2022-09-02 12:16:21 +02:00
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 ).
2022-09-11 20:18:50 +02:00
## Thanks
2022-09-02 12:16:21 +02:00
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 )
2022-12-04 11:00:28 +01:00
- [InvokeAI ](https://github.com/invoke-ai/InvokeAI )
2023-04-21 21:34:17 +02:00
- [ComfyUI ](https://github.com/comfyanonymous/ComfyUI )
2022-09-02 12:16:21 +02:00
- [CompVis/stable-diffusion ](https://github.com/CompVis/stable-diffusion )
2023-05-16 18:58:52 +02:00
- [Sygil-webui ](https://github.com/Sygil-Dev/sygil-webui )
2024-05-02 10:24:58 +02:00
- [AbdBarho/stable-diffusion-webui-docker ](https://github.com/AbdBarho/stable-diffusion-webui-docker )
2022-12-04 11:00:28 +01:00
- and many many more.