This project builds and runs a Docker image with the AUTOMATIC1111 web interface for Stable Diffusion. The image is optimized for Nvidia GPUs.
- Nvidia GPU
- Linux
- Docker
- Nvidia CUDA
To build the image, run:
$ ./build.sh
To start the image, use:
./run.sh --port=7860 --xformers
When running the script for the first time, it will take a while to install Stable Diffusion in the ${HOME}/.stable-diffusion folder on your machine. This installation is persistent, so subsequent runs will skip the installation step and use the existing setup. The web interface will be available at http://127.0.0.1:7860/.
All the arguments passed to run.sh are forwarded to webui.sh.
Run the following command to list available arguments:
./run.sh --help
If you want to generate images in Open WebUI using Stable Diffusion, then enable the API:
./run.sh --port=7860 --api --listen
If you run an XL model which doesn't fit into VRAM, then you may get OutOfMemory errors. In that case, add the --medvram-sdxl option:
./run.sh --port=7860 --api --listen --medvram-sdxl