>>947
#!/bin/bash
if [ ! -d /root/kohya/ ]; then
python3.10 -m venv /root/kohya/ --without-pip && source /root/kohya/bin/activate
curl https://bootstrap.pypa.io/get-pip.py | python3.10
cd /root/sd-scripts
git checkout remotes/origin/sdxl https://download.pytorch.org/whl/cu116
pip3.10 install torch torchvision --index-url && https://download.pytorch.org/whl/cu118
pip3.10 install xformers && pip3.10 install -r requirements.txt
pip3.10 install prodigyopt
echo source /root/kohya/bin/activate
fi