Update a.sh
Browse files
a.sh
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
cd /root
|
| 2 |
-
aria2c -x 16 -s 16 -c -k 1M https://huggingface.co/datasets/ACCC1380/private-model/resolve/9befd0d6f2fa6cae98ded19011dde41423943611/upload/sd.tar -o sd.tar
|
| 3 |
tar -xvf sd.tar
|
| 4 |
|
| 5 |
# 大模型
|
|
@@ -41,3 +41,40 @@ aria2c -x 16 -s 16 -c -k 1M --console-log-level=error -d /root/stable-diffusion-
|
|
| 41 |
aria2c -x 16 -s 16 -c -k 1M --console-log-level=error -d /root/stable-diffusion-webui/models/Lora -o "detailed.safetensors" "https://huggingface.co/datasets/ACCC1380/private-model/resolve/main/upload/Lora/detailed.safetensors?download=true"
|
| 42 |
aria2c -x 16 -s 16 -c -k 1M --console-log-level=error -d /root/stable-diffusion-webui/models/Lora -o "eyelid_target.safetensors" "https://huggingface.co/datasets/ACCC1380/private-model/resolve/main/upload/Lora/eyelid_target.safetensors?download=true"
|
| 43 |
aria2c -x 16 -s 16 -c -k 1M --console-log-level=error -d /root/stable-diffusion-webui/models/Lora -o "reduce_wrinkles_illstriouosv0.1_ADDifT_2_in_1_v1.2.safetensors" "https://huggingface.co/datasets/ACCC1380/private-model/resolve/main/upload/Lora/reduce_wrinkles_illstriouosv0.1_ADDifT_2_in_1_v1.2.safetensors?download=true"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
cd /root
|
| 2 |
+
aria2c -x 16 -s 16 -c -k 1M --console-log-level=error https://huggingface.co/datasets/ACCC1380/private-model/resolve/9befd0d6f2fa6cae98ded19011dde41423943611/upload/sd.tar -o sd.tar
|
| 3 |
tar -xvf sd.tar
|
| 4 |
|
| 5 |
# 大模型
|
|
|
|
| 41 |
aria2c -x 16 -s 16 -c -k 1M --console-log-level=error -d /root/stable-diffusion-webui/models/Lora -o "detailed.safetensors" "https://huggingface.co/datasets/ACCC1380/private-model/resolve/main/upload/Lora/detailed.safetensors?download=true"
|
| 42 |
aria2c -x 16 -s 16 -c -k 1M --console-log-level=error -d /root/stable-diffusion-webui/models/Lora -o "eyelid_target.safetensors" "https://huggingface.co/datasets/ACCC1380/private-model/resolve/main/upload/Lora/eyelid_target.safetensors?download=true"
|
| 43 |
aria2c -x 16 -s 16 -c -k 1M --console-log-level=error -d /root/stable-diffusion-webui/models/Lora -o "reduce_wrinkles_illstriouosv0.1_ADDifT_2_in_1_v1.2.safetensors" "https://huggingface.co/datasets/ACCC1380/private-model/resolve/main/upload/Lora/reduce_wrinkles_illstriouosv0.1_ADDifT_2_in_1_v1.2.safetensors?download=true"
|
| 44 |
+
|
| 45 |
+
# NEW ADDED LORA
|
| 46 |
+
aria2c -x 16 -s 16 -c -k 1M --console-log-level=error -d /root/stable-diffusion-webui/models/Lora -o "detailed skin style illustriousXL v1.safetensors" "https://huggingface.co/datasets/ACCC1380/private-model/resolve/main/upload/Lora/detailed%20skin%20style%20illustriousXL%20v1.safetensors?download=true"
|
| 47 |
+
|
| 48 |
+
cd /root/stable-diffusion-webui/models/Lora && aria2c --console-log-level=error -x 16 -s 16 -c -k 1M "https://huggingface.co/xssxsxk/NFFA-style/resolve/main/NFFA10.3-000080.safetensors" -o NFFA10.3-000080.safetensors
|
| 49 |
+
|
| 50 |
+
aria2c -x 16 -s 16 -c -k 1M --console-log-level=error -d /root/stable-diffusion-webui/models/ESRGAN -o "4x_foolhardy_Remacri.pth" "https://huggingface.co/uwg/upscaler/resolve/main/ESRGAN/4x_foolhardy_Remacri.pth?download=true"
|
| 51 |
+
|
| 52 |
+
cd /root/stable-diffusion-webui/extensions
|
| 53 |
+
|
| 54 |
+
# 删除旧的 ControlNet,重新 clone
|
| 55 |
+
rm -rf sd-webui-controlnet
|
| 56 |
+
git clone https://github.com/Mikubill/sd-webui-controlnet.git
|
| 57 |
+
|
| 58 |
+
# 遍历更新,跳过 ControlNet、图库、system-info
|
| 59 |
+
for dir in */; do
|
| 60 |
+
[ "$dir" = "sd-webui-controlnet/" ] && continue
|
| 61 |
+
[ "$dir" = "sd-webui-infinite-image-browsing/" ] && continue
|
| 62 |
+
[ "$dir" = "sd-extension-system-info/" ] && continue
|
| 63 |
+
if [ -d "$dir/.git" ]; then
|
| 64 |
+
echo "=== Updating: $dir ==="
|
| 65 |
+
cd "$dir" && git pull && cd ..
|
| 66 |
+
else
|
| 67 |
+
echo "=== Skipping (not git repo): $dir ==="
|
| 68 |
+
fi
|
| 69 |
+
done
|
| 70 |
+
|
| 71 |
+
apt install -y pkg-config libcairo2-dev cmake
|
| 72 |
+
cd /root/stable-diffusion-webui
|
| 73 |
+
./venv/bin/pip install svglib
|
| 74 |
+
|
| 75 |
+
# Launch!
|
| 76 |
+
|
| 77 |
+
cd /root/stable-diffusion-webui/
|
| 78 |
+
/root/stable-diffusion-webui/venv/bin/python launch.py --xformers --api --listen
|
| 79 |
+
|
| 80 |
+
|