1
0
Fork 0

Scripts to handle the cloud services I use for Stable Diffusion.

This commit is contained in:
Luca Beltrame 2023-06-04 09:17:43 +02:00
parent 0ac6f0893d
commit e4a7b08f8d
Signed by: einar
GPG key ID: 4707F46E9EC72DEC
6 changed files with 164 additions and 0 deletions

View 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