Stable Diffusion web UI in a Docker container with GPU Radeon support. Tested on AMD Radeon RX 7900 XTX.
- Ubuntu
- make
- Docker
- git
- ROCm (see the installation in transformers-rocm-docker)
git clone https://github.com/HardAndHeavy/stable-diffusion-webui-rocm-docker
cd stable-diffusion-webui-rocm-docker
make run
At the first start, a lengthy initialization process will take place. When the process is completed, Stable Diffusion will be available at http://localhost.
- To add new node resources, you must grant access to the directory
./data
, because the container was started as the root user. To do this, run the commandsudo chmod -R 777 ./data
- Models are located in the directory
./data/stable-diffusion/models/Stable-diffusion
. Models can be found on the site civitai.com - If there is a major change in the composition of python libraries, you must change the version of
CONDA_DIR
in./Makefile