Run Stable Diffusion on an AMD card, using this method. Tested on my RX 6700 (non XT). Uses basujindal's stable diffusion fork for lower memory usage.
- Obtain
sd-v1-4.ckpt
and put it inrocm/
- Run
./build-rocm
to build the Docker image - Run
./run-rocm
to run a shell in the Docker container - Inside the container, you can run commands to generate images like:
python optimizedSD/optimized_txt2img.py --outdir /output --prompt "a unicorn riding a purple tricycle"