Aug 30 2022
This guide explains steps that I've done to install Stable Diffusion with a web interface.
Tested on:
- OS: Linux-x86_64 (Ubuntu 22.04.1 LTS) VM
- Nvidia Driver Version: 515.65.01
- Graphics Card: NVIDIA GeForce RTX 3090
- NVIDIA GPU supporting CUDA 11.3+
- Docker
- docker-compose v2+
- git
I chose one of the forks of the original stable diffusion which is created by hlky and provides an easy to use docker setup and a web UI. This repository already provides a detailed installation description which can be checked out for further information.
- Checkout the stable-diffusion repository and move into the directory
git clone [email protected]:hlky/stable-diffusion.git && cd stable-diffusion
- If not already installed, install the nvidia container toolkit To validate that it is installed correctly, you can run:
sudo docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi
- Start the docker-compose file: (This might take some time. For me, it took 8 minutes)
docker-compose up
Open http://127.0.0.1:7860/ to visit the UI and start experimenting. Have fun!