Scripts to handle the cloud services I use for Stable Diffusion.
This commit is contained in:
parent
0ac6f0893d
commit
e4a7b08f8d
6 changed files with 164 additions and 0 deletions
14
stable-diffusion/setup-lamacleaner-paperspace.sh
Normal file
14
stable-diffusion/setup-lamacleaner-paperspace.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -o nounset
|
||||
|
||||
cd /tmp
|
||||
# Paperspace's venv doesn't install pip for some reason
|
||||
python -m venv --without-pip /tmp/lama-venv
|
||||
wget https://bootstrap.pypa.io/get-pip.py
|
||||
/tmp/lama-venv/bin/python get-pip.py
|
||||
/tmp/lama-venv/bin/pip install torch==1.13.1+cu117 \
|
||||
torchvision==0.14.1 triton xformers==0.0.16rc425 \
|
||||
--extra-index-url https://download.pytorch.org/whl/cu117
|
||||
/tmp/lama-venv/bin/pip install lama-cleaner
|
Loading…
Add table
Add a link
Reference in a new issue