Update install.sh
Browse files- install.sh +23 -18
install.sh
CHANGED
|
@@ -43,21 +43,24 @@ mkdir -p embeddings
|
|
| 43 |
\cp -f forcePull.sh "../forcePull.sh"
|
| 44 |
\cp -f myRun.ipynb "../myRun.ipynb"
|
| 45 |
git gc
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
\cp -f
|
| 50 |
-
|
| 51 |
-
rsync -r "
|
| 52 |
-
|
| 53 |
-
\mv -f /workspace/firstContainer/SD/repositories/
|
| 54 |
-
\mv -f /workspace/firstContainer/SD/repositories/
|
| 55 |
-
\mv -f /workspace/firstContainer/SD/repositories/
|
| 56 |
-
\mv -f /workspace/firstContainer/SD/repositories/
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
| 59 |
|
| 60 |
cd /workspace/firstContainer/SD/models/Stable-diffusion
|
|
|
|
| 61 |
case $CHECKPOINT in
|
| 62 |
1)
|
| 63 |
wget -N https://huggingface.co/zuv0/test/resolve/main/petitcutie_v20.safetensors
|
|
@@ -77,11 +80,13 @@ case $CHECKPOINT in
|
|
| 77 |
esac
|
| 78 |
|
| 79 |
cd /workspace/firstContainer/SD/models/Lora
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
|
|
|
|
|
|
| 85 |
|
| 86 |
cd /workspace/firstContainer
|
| 87 |
apt-get install -y libgl1-mesa-glx
|
|
|
|
| 43 |
\cp -f forcePull.sh "../forcePull.sh"
|
| 44 |
\cp -f myRun.ipynb "../myRun.ipynb"
|
| 45 |
git gc
|
| 46 |
+
if [ ! -d "models" ]; then
|
| 47 |
+
git clone https://huggingface.co/zuv0/models
|
| 48 |
+
cd models
|
| 49 |
+
\cp -f config_go3.json "../config.json"
|
| 50 |
+
\cp -f ui-config_go3.json "../ui-config.json"
|
| 51 |
+
rsync -r "embeddings/" "../embeddings/"
|
| 52 |
+
rsync -r "extensions/" "../extensions/"
|
| 53 |
+
\mv -f /workspace/firstContainer/SD/repositories/BLIP/_git /workspace/firstContainer/SD/repositories/BLIP/.git
|
| 54 |
+
\mv -f /workspace/firstContainer/SD/repositories/CodeFormer/_git /workspace/firstContainer/SD/repositories/CodeFormer/.git
|
| 55 |
+
\mv -f /workspace/firstContainer/SD/repositories/generative-models/_git /workspace/firstContainer/SD/repositories/generative-models/.git
|
| 56 |
+
\mv -f /workspace/firstContainer/SD/repositories/k-diffusion/_git /workspace/firstContainer/SD/repositories/k-diffusion/.git
|
| 57 |
+
\mv -f /workspace/firstContainer/SD/repositories/stable-diffusion-stability-ai/_git /workspace/firstContainer/SD/repositories/stable-diffusion-stability-ai/.git
|
| 58 |
+
cd /workspace/firstContainer/SD/extensions/sd-webui-controlnet/annotator/oneformer/oneformer/data
|
| 59 |
+
curl -L -O https://github.com/Mikubill/sd-webui-controlnet/blob/main/annotator/oneformer/oneformer/data/bpe_simple_vocab_16e6.txt.gz
|
| 60 |
+
fi
|
| 61 |
|
| 62 |
cd /workspace/firstContainer/SD/models/Stable-diffusion
|
| 63 |
+
rm -rf *.safetensors
|
| 64 |
case $CHECKPOINT in
|
| 65 |
1)
|
| 66 |
wget -N https://huggingface.co/zuv0/test/resolve/main/petitcutie_v20.safetensors
|
|
|
|
| 80 |
esac
|
| 81 |
|
| 82 |
cd /workspace/firstContainer/SD/models/Lora
|
| 83 |
+
if [ ! -d "RC$RC" ]; then
|
| 84 |
+
git clone https://huggingface.co/zuv0/RC$RC
|
| 85 |
+
cd RC$RC
|
| 86 |
+
git repack -a -d --depth=250 --window=250
|
| 87 |
+
cd .git
|
| 88 |
+
rm -rf lfs
|
| 89 |
+
fi
|
| 90 |
|
| 91 |
cd /workspace/firstContainer
|
| 92 |
apt-get install -y libgl1-mesa-glx
|