The original tutorial and files were created by catzy007. Please check out his work!
Install the package.
paru -S opencl-amd
Enable the community-testing repo in /etc/pacman.conf
.
[community-testing]
Include = /etc/pacman.d/mirrorlist
Update the system.
pacman -Syu
Install the dependencies.
pacman -S rocm-opencl-runtime rocminfo
git clone https://gitea.heartnerds.org/Mageas/stable-diffusion-rocm.git
This will download and install the required packages.
docker compose build
Edit stablediff.env
to add launch parameter such as --lowvram
, --medvram
.
This will create two directory called stablediff-web
and stablediff-models
.
After initial run, you will get message about missing Stable Diffusion ckpt model.
Grab one and copy it to stablediff-models
. in linux, you might need sudo
to
do this.
docker compose up
Use the command below every time you want to run Stable Diffusion.
docker start -a stablediff-runner
To stop Stable Diffusion press Ctrl + C and use the command below.
docker stop stablediff-runner