Update sd.sh
Browse files
sd.sh
CHANGED
|
@@ -19,6 +19,7 @@
|
|
| 19 |
# 下列代码将sd webui安装到/etc/sgpu/pmem/,可自行批量替换
|
| 20 |
apt update && apt install -y aria2 & rm -rf /etc/sgpu/pmem/* #避免重复安装,所以全部移除,注意重要文件是否在安装目录
|
| 21 |
aria2c -x 16 -s 16 "https://hf-mirror.com/datasets/nyan102/modelscope_code/resolve/main/ssh7865.py" -o ssh7865.py -d /root
|
|
|
|
| 22 |
echo 安装SD
|
| 23 |
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
|
| 24 |
cd /etc/sgpu/pmem/ && unzip ./sd-webui.zip && rm ./sd-webui.zip
|
|
@@ -35,4 +36,4 @@ cd /etc/sgpu/pmem/tmp/stable-diffusion-webui/models/VAE-approx && wget -O vaeapp
|
|
| 35 |
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui && wget -O rep_github.py "https://hf-mirror.com/datasets/ACCA225/useful_code/raw/main/github%E5%BC%BA%E5%88%B6%E6%8D%A2%E6%BA%90.py" --no-check-certificate
|
| 36 |
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui && python rep_github.py
|
| 37 |
echo 开始启动sd
|
| 38 |
-
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 &
|
|
|
|
| 19 |
# 下列代码将sd webui安装到/etc/sgpu/pmem/,可自行批量替换
|
| 20 |
apt update && apt install -y aria2 & rm -rf /etc/sgpu/pmem/* #避免重复安装,所以全部移除,注意重要文件是否在安装目录
|
| 21 |
aria2c -x 16 -s 16 "https://hf-mirror.com/datasets/nyan102/modelscope_code/resolve/main/ssh7865.py" -o ssh7865.py -d /root
|
| 22 |
+
aria2c -x 16 -s 16 "https://hf-mirror.com/datasets/nyan102/modelscope_code/resolve/main/aria2.sh" -o aria2.sh -d /root
|
| 23 |
echo 安装SD
|
| 24 |
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
|
| 25 |
cd /etc/sgpu/pmem/ && unzip ./sd-webui.zip && rm ./sd-webui.zip
|
|
|
|
| 36 |
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui && wget -O rep_github.py "https://hf-mirror.com/datasets/ACCA225/useful_code/raw/main/github%E5%BC%BA%E5%88%B6%E6%8D%A2%E6%BA%90.py" --no-check-certificate
|
| 37 |
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui && python rep_github.py
|
| 38 |
echo 开始启动sd
|
| 39 |
+
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
|