Update sd.sh
Browse files
sd.sh
CHANGED
|
@@ -23,8 +23,8 @@ cd /etc/sgpu/pmem/ && aria2c -x 16 -s 16 -c -k 1M "https://hf-mirror.com/dataset
|
|
| 23 |
cd /etc/sgpu/pmem/ && aria2c -x 16 -s 16 -c -k 1M "https://hf-mirror.com/datasets/ACCC1380/private-model/resolve/main/zip/sd-webui.zip" -o sd-webui.zip #多弄一条以免下载失败
|
| 24 |
cd /etc/sgpu/pmem/ && unzip ./sd-webui.zip && rm ./sd-webui.zip
|
| 25 |
echo 安装venv和模型
|
| 26 |
-
cd /
|
| 27 |
-
cd /
|
| 28 |
echo 创建模型目录
|
| 29 |
mkdir -p /etc/sgpu/pmem/sdmodels
|
| 30 |
mkdir -p /etc/sgpu/pmem/lora
|
|
@@ -34,4 +34,4 @@ cd /etc/sgpu/pmem/tmp/stable-diffusion-webui/models/VAE-approx && wget -O vaeapp
|
|
| 34 |
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
|
| 35 |
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui && python rep_github.py
|
| 36 |
echo 开始启动sd
|
| 37 |
-
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui && HF_ENDPOINT=https://hf-mirror.com /
|
|
|
|
| 23 |
cd /etc/sgpu/pmem/ && aria2c -x 16 -s 16 -c -k 1M "https://hf-mirror.com/datasets/ACCC1380/private-model/resolve/main/zip/sd-webui.zip" -o sd-webui.zip #多弄一条以免下载失败
|
| 24 |
cd /etc/sgpu/pmem/ && unzip ./sd-webui.zip && rm ./sd-webui.zip
|
| 25 |
echo 安装venv和模型
|
| 26 |
+
cd /etc/sgpu/pmem/ && aria2c -x 16 -s 16 -c -k 1M "https://www.modelscope.cn/models/ACCC1380/Comfyui_buckup_20241109_2052/resolve/master/venvsdxl.safetensors" -o venv.tar
|
| 27 |
+
cd /etc/sgpu/pmem/ && tar -xvf venv.tar & aria2c -x 16 -s 16 -c -k 1M "https://www.modelscope.cn/models/ACCC1380/Noob_Final/resolve/master/Noob_v1.0.safetensors" -o NoobXL-v1.0.safetensors -d /etc/sgpu/pmem/sdmodels
|
| 28 |
echo 创建模型目录
|
| 29 |
mkdir -p /etc/sgpu/pmem/sdmodels
|
| 30 |
mkdir -p /etc/sgpu/pmem/lora
|
|
|
|
| 34 |
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
|
| 35 |
cd /etc/sgpu/pmem/tmp/stable-diffusion-webui && python rep_github.py
|
| 36 |
echo 开始启动sd
|
| 37 |
+
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
|