Update sd.sh
Browse files
sd.sh
CHANGED
|
@@ -19,8 +19,8 @@
|
|
| 19 |
# 下列代码将sd webui安装到/etc/sgpu/pmem/,可自行批量替换
|
| 20 |
apt update && apt install -y aria2
|
| 21 |
rm -rf /etc/sgpu/pmem/* #避免重复安装,所以全部移除,注意重要文件是否在安装目录
|
| 22 |
-
aria2c -x 16 -s 16 "https://
|
| 23 |
-
aria2c -x 16 -s 16 "https://
|
| 24 |
echo 安装SD
|
| 25 |
cd /etc/sgpu/pmem/ && aria2c -x 16 -s 16 -c -k 1M "https://www.modelscope.cn/models/ACCC1380/SD-WebUI-pack/resolve/master/sd-webui.zip" -o sd-webui.zip
|
| 26 |
cd /etc/sgpu/pmem/ && unzip ./sd-webui.zip && rm ./sd-webui.zip
|
|
@@ -34,7 +34,7 @@ mkdir -p /etc/sgpu/pmem/lora
|
|
| 34 |
mkdir -p /etc/sgpu/pmem/vae
|
| 35 |
echo 安装必要文件
|
| 36 |
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui/models/VAE-approx && wget -O vaeapprox-sdxl.pt "https://www.modelscope.cn/models/ACCC1380/Noobxl/resolve/master/vaeapprox-sdxl.pt" --no-check-certificate
|
| 37 |
-
cd /etc/sgpu/pmem/tmp/
|
| 38 |
-
cd /etc/sgpu/pmem/tmp/
|
| 39 |
echo 开始启动sd
|
| 40 |
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui && HF_ENDPOINT=https://hf-mirror.com /etc/sgpu/pmem/venv/bin/python launch.py --api --port=7865 --xformers --ckpt-dir=/etc/sgpu/pmem/sdmodels --lora-dir=/etc/sgpu/pmem/lora --vae-dir=/etc/sgpu/pmem/vae & python /root/ssh7865.py & bash /root/aria2.sh
|
|
|
|
| 19 |
# 下列代码将sd webui安装到/etc/sgpu/pmem/,可自行批量替换
|
| 20 |
apt update && apt install -y aria2
|
| 21 |
rm -rf /etc/sgpu/pmem/* #避免重复安装,所以全部移除,注意重要文件是否在安装目录
|
| 22 |
+
aria2c -x 16 -s 16 "https://www.modelscope.cn/models/ACCC1380/Fulx_dev_Model/resolve/master/code/ssh7865.py" -o ssh7865.py -d /root
|
| 23 |
+
aria2c -x 16 -s 16 "https://www.modelscope.cn/models/ACCC1380/Fulx_dev_Model/resolve/master/code/aria2.sh" -o aria2.sh -d /root
|
| 24 |
echo 安装SD
|
| 25 |
cd /etc/sgpu/pmem/ && aria2c -x 16 -s 16 -c -k 1M "https://www.modelscope.cn/models/ACCC1380/SD-WebUI-pack/resolve/master/sd-webui.zip" -o sd-webui.zip
|
| 26 |
cd /etc/sgpu/pmem/ && unzip ./sd-webui.zip && rm ./sd-webui.zip
|
|
|
|
| 34 |
mkdir -p /etc/sgpu/pmem/vae
|
| 35 |
echo 安装必要文件
|
| 36 |
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui/models/VAE-approx && wget -O vaeapprox-sdxl.pt "https://www.modelscope.cn/models/ACCC1380/Noobxl/resolve/master/vaeapprox-sdxl.pt" --no-check-certificate
|
| 37 |
+
cd /etc/sgpu/pmem/tmp/ && wget -O rep_github.py "https://www.modelscope.cn/models/ACCC1380/Fulx_dev_Model/resolve/master/code/rep_github.py" --no-check-certificate
|
| 38 |
+
cd /etc/sgpu/pmem/tmp/ && python rep_github.py
|
| 39 |
echo 开始启动sd
|
| 40 |
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui && HF_ENDPOINT=https://hf-mirror.com /etc/sgpu/pmem/venv/bin/python launch.py --api --port=7865 --xformers --ckpt-dir=/etc/sgpu/pmem/sdmodels --lora-dir=/etc/sgpu/pmem/lora --vae-dir=/etc/sgpu/pmem/vae & python /root/ssh7865.py & bash /root/aria2.sh
|