- Python 3.8+ + PiP
- Docker (optional)
- Clone the repository
- Install the requirements
pip3 install -r requirements.txt
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
- Run the application
python3 main.py
- Build the docker image (It take a few minutes)
docker build -t simple-stable-diffusion .
1.1 Or just download it
docker pull ghcr.io/l3ktro/stable_diffusion_deployment:latest
- Run the docker image
docker run -p 5000:5000 simple-stable-diffusion
Use this repository and this code under the StabilityIA Acceptable Use Policy https://stability.ai/use-policy