Delete downs.sh
Browse files
downs.sh
DELETED
|
@@ -1,134 +0,0 @@
|
|
| 1 |
-
#!/bin/bash
|
| 2 |
-
|
| 3 |
-
# 1 2 3 ..
|
| 4 |
-
CHECKPOINT=$1
|
| 5 |
-
|
| 6 |
-
# 1 2 3 4 5 .. OR 12 235 ..
|
| 7 |
-
RC=$2
|
| 8 |
-
|
| 9 |
-
GOORM="0"
|
| 10 |
-
if [ -d "/workspace/firstContainer" ]; then
|
| 11 |
-
GOORM="1"
|
| 12 |
-
fi
|
| 13 |
-
|
| 14 |
-
RELATIVE_DIR=`dirname "$0"`
|
| 15 |
-
cd $RELATIVE_DIR
|
| 16 |
-
|
| 17 |
-
if [ ! -d "CU" ]; then
|
| 18 |
-
cd CU
|
| 19 |
-
else
|
| 20 |
-
cd CU*
|
| 21 |
-
fi
|
| 22 |
-
|
| 23 |
-
cd models
|
| 24 |
-
cd checkpoints
|
| 25 |
-
|
| 26 |
-
CK_LINK=""
|
| 27 |
-
|
| 28 |
-
case $CHECKPOINT in
|
| 29 |
-
0)
|
| 30 |
-
echo "CHECKPOINT pass."
|
| 31 |
-
;;
|
| 32 |
-
1)
|
| 33 |
-
CK_LINK="https://huggingface.co/Magamanny/Pony-Diffusion-V6-XL/resolve/main/ponyDiffusionV6XL_v6StartWithThisOne.safetensors"
|
| 34 |
-
;;
|
| 35 |
-
2)
|
| 36 |
-
CK_LINK="https://huggingface.co/JosefJilek/moeFussion/resolve/main/moeFussionV1.1.0_PDXL_Lx7-CLIP_VAE_FP16.safetensors"
|
| 37 |
-
;;
|
| 38 |
-
3)
|
| 39 |
-
CK_LINK="https://huggingface.co/zuv0/test/resolve/main/MINTSDXL_LollipopMIX_A1-fp32.safetensors"
|
| 40 |
-
;;
|
| 41 |
-
4)
|
| 42 |
-
CK_LINK="https://huggingface.co/Bulkbogan20/autismmix/resolve/main/autismmixSDXL_autismmixPony.safetensors"
|
| 43 |
-
;;
|
| 44 |
-
5)
|
| 45 |
-
CK_LINK="https://huggingface.co/zuv0/test/resolve/main/lemontart_v20.safetensors"
|
| 46 |
-
;;
|
| 47 |
-
6)
|
| 48 |
-
CK_LINK="https://huggingface.co/zuv0/test/resolve/main/grimoire_p0666.safetensors"
|
| 49 |
-
;;
|
| 50 |
-
7)
|
| 51 |
-
CK_LINK="https://huggingface.co/zuv0/test/resolve/main/mizuiropony_v12.safetensors"
|
| 52 |
-
;;
|
| 53 |
-
8)
|
| 54 |
-
CK_LINK="https://huggingface.co/zuv0/test/resolve/main/nekodaxl_.safetensors"
|
| 55 |
-
;;
|
| 56 |
-
a)
|
| 57 |
-
CK_LINK="https://huggingface.co/cagliostrolab/animagine-xl-3.1/resolve/main/animagine-xl-3.1.safetensors"
|
| 58 |
-
;;
|
| 59 |
-
d)
|
| 60 |
-
CK_LINK="https://huggingface.co/zuv0/test/resolve/main/noobaiXLNAIXL_earlyAccessVersion.safetensors"
|
| 61 |
-
;;
|
| 62 |
-
d2)
|
| 63 |
-
CK_LINK="https://huggingface.co/zuv0/test/resolve/main/noobaiXLNAIXL_epsilonPred05Version.safetensors"
|
| 64 |
-
;;
|
| 65 |
-
e)
|
| 66 |
-
CK_LINK="https://huggingface.co/hanzogak/comradeshipXL/resolve/main/comradeshipXL-v14T13.safetensors"
|
| 67 |
-
;;
|
| 68 |
-
gc)
|
| 69 |
-
rm -rf *.safetensors
|
| 70 |
-
echo "CHECKPOINT remove."
|
| 71 |
-
exit 0
|
| 72 |
-
;;
|
| 73 |
-
*)
|
| 74 |
-
echo "CHECKPOINT error!"
|
| 75 |
-
;;
|
| 76 |
-
esac
|
| 77 |
-
|
| 78 |
-
#CK_LINK="https://huggingface.co/zuv0/test/resolve/main/waiCUTE_v20.safetensors"
|
| 79 |
-
#CK_LINK="https://huggingface.co/GianPehn/PD_for_Anime/resolve/main/pdForAnime_v20.safetensors"
|
| 80 |
-
#CK_LINK="https://huggingface.co/Walkearth4/Collection/resolve/main/chenkinAnimeHotbaby_v20.safetensors"
|
| 81 |
-
#CK_LINK="https://huggingface.co/zuv0/test/resolve/main/copycatASC_v10.safetensors"
|
| 82 |
-
#CK_LINK="https://huggingface.co/zuv0/test/resolve/main/catdash_v10.safetensors"
|
| 83 |
-
|
| 84 |
-
if [ -n "$CK_LINK" ]; then
|
| 85 |
-
CK_FILE=${CK_LINK##*/}
|
| 86 |
-
if [ -f "$CK_FILE" ]; then
|
| 87 |
-
\mv -f "$CK_FILE" "../$CK_FILE"
|
| 88 |
-
rm -rf *.safetensors
|
| 89 |
-
rm -rf *.ckpt
|
| 90 |
-
\mv -f "../$CK_FILE" "$CK_FILE"
|
| 91 |
-
else
|
| 92 |
-
rm -rf *.safetensors
|
| 93 |
-
rm -rf *.ckpt
|
| 94 |
-
if [ "$GOORM" == "1" ]; then
|
| 95 |
-
wget –limit-rate=49999k -N "$CK_LINK"
|
| 96 |
-
else
|
| 97 |
-
wget -N "$CK_LINK"
|
| 98 |
-
fi
|
| 99 |
-
fi
|
| 100 |
-
fi
|
| 101 |
-
|
| 102 |
-
cd ..
|
| 103 |
-
cd loras
|
| 104 |
-
|
| 105 |
-
case $RC in
|
| 106 |
-
0)
|
| 107 |
-
echo "RCXL pass."
|
| 108 |
-
;;
|
| 109 |
-
*)
|
| 110 |
-
RCLIST="1 2 3 4 5 6 7 8 9"
|
| 111 |
-
|
| 112 |
-
for var in $RCLIST
|
| 113 |
-
do
|
| 114 |
-
rm -rf RC$var
|
| 115 |
-
done
|
| 116 |
-
|
| 117 |
-
while [ $RC -gt 0 ]; do
|
| 118 |
-
digit=$((RC % 10))
|
| 119 |
-
if [ ! -d "RCXL$digit" ]; then
|
| 120 |
-
git clone https://huggingface.co/zuv0/RCXL$digit
|
| 121 |
-
cd RCXL$digit
|
| 122 |
-
git repack -a -d --depth=250 --window=250
|
| 123 |
-
cd .git
|
| 124 |
-
rm -rf lfs
|
| 125 |
-
cd ..
|
| 126 |
-
cd ..
|
| 127 |
-
fi
|
| 128 |
-
RC=$((RC / 10))
|
| 129 |
-
done
|
| 130 |
-
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