Skip to content

Instantly share code, notes, and snippets.

View sunng87's full-sized avatar
๐Ÿ‘‘
keep calm and git push -f

Ning Sun sunng87

๐Ÿ‘‘
keep calm and git push -f
View GitHub Profile
@elderica
elderica / sdrocm.md
Last active September 3, 2023 05:22
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