Skip to content

Instantly share code, notes, and snippets.

@elderica
Last active September 3, 2023 05:22
Show Gist options
  • Save elderica/2fb461a6c93d50231b587408a3f02a39 to your computer and use it in GitHub Desktop.
Save elderica/2fb461a6c93d50231b587408a3f02a39 to your computer and use it in GitHub Desktop.
Stable Diffusion with ROCm and ArchLinux
  1. arch4edu リポジトリを追加する。
  2. paru -Syu rocm-hip-sdk rocm-opencl-sdk python-pytorch-rocm python-torchvision-rocm python-numpy yq
  3. virtualenv --system-site-packages sdenv
  4. source sdenv/bin/activate
  5. git clone https://github.com/CompVis/stable-diffusion.git && cd stable-diffusion
  6. yq '.dependencies[].pip?[]' environment.yaml | sed 's/"//g' | xargs -L1 pip install
  7. https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt からチェックポイントファイルを入手して、 models/ldm/stable-diffusion-v1/model.ckpt に置く
  8. python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment