|
#!/bin/bash |
|
|
|
if [ ! -d "/workspace/firstContainer/SD" ]; then |
|
exit 101 |
|
fi |
|
|
|
apt-get install zip -y |
|
pip install pcloud |
|
pip uninstall -y setuptools |
|
pip install setuptools==69.5.1 |
|
|
|
cd /workspace |
|
cd * |
|
|
|
rm -rf gc.sh |
|
curl -L -O https://huggingface.co/zuv0/SDXLF17/resolve/main/gc.sh |
|
rm -rf run.sh |
|
curl -L -O https://huggingface.co/zuv0/SDXLF17/resolve/main/run.sh |
|
rm -rf myRun.ipynb |
|
curl -L -O https://huggingface.co/zuv0/SDXLF17/resolve/main/myRun.ipynb |
|
rm -rf pOut.py |
|
rm -rf out.sh |
|
curl -L -O https://huggingface.co/zuv0/SDXLF17/resolve/main/out_rp.sh |
|
curl -L -O https://huggingface.co/zuv0/SDXLF17/resolve/main/e |
|
curl -L -O https://huggingface.co/zuv0/SDXLF17/resolve/main/xAutoRunTo5m.sh |
|
sleep 1 |
|
\mv out_rp.sh out.sh |
|
|
|
cd SD |
|
git gc |
|
|
|
rm -rf downs.sh |
|
curl -L -O https://huggingface.co/zuv0/SDXLF17/resolve/main/downs.sh |
|
|
|
if [ ! -d "models" ]; then |
|
git clone https://huggingface.co/zuv0/modelsXL models |
|
cd models |
|
\mv -f /workspace/firstContainer/SD/repositories/BLIP/_git /workspace/firstContainer/SD/repositories/BLIP/.git |
|
\mv -f /workspace/firstContainer/SD/repositories/generative-models/_git /workspace/firstContainer/SD/repositories/generative-models/.git |
|
\mv -f /workspace/firstContainer/SD/repositories/k-diffusion/_git /workspace/firstContainer/SD/repositories/k-diffusion/.git |
|
\mv -f /workspace/firstContainer/SD/repositories/stable-diffusion-stability-ai/_git /workspace/firstContainer/SD/repositories/stable-diffusion-stability-ai/.git |
|
\mv -f /workspace/firstContainer/SD/repositories/stable-diffusion-webui-assets/_git /workspace/firstContainer/SD/repositories/stable-diffusion-webui-assets/.git |
|
cd /workspace/*/SD/extensions-builtin/forge_legacy_preprocessors/annotator/oneformer/oneformer/data |
|
curl -L -O https://github.com/Mikubill/sd-webui-controlnet/blob/main/annotator/oneformer/oneformer/data/bpe_simple_vocab_16e6.txt.gz |
|
else |
|
cd models |
|
fi |
|
|
|
cd Lora |
|
rm -rf RC* |
|
rm -rf RA* |
|
|
|
if [ -d "XLRN" ]; then |
|
cd XLRN |
|
rm -rf * |
|
fi |
|
|
|
cd /workspace |
|
cd * |
|
|
|
pip cache purge |
|
sh ./SD/downs.sh $1 0 |
|
sh forcePull.sh |
|
sh gc.sh |
|
|
|
sudo apt clean |
|
|
|
rm -rf apatch.sh |
|
|
|
exit 0 |
|
|