Spaces:
Running
Running
FredZhang7
commited on
Commit
·
58a9f11
1
Parent(s):
d87ec52
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
import os
|
|
|
|
|
|
|
|
|
|
|
2 |
user_home = r"/home/user/app"
|
3 |
os.chdir(user_home)
|
4 |
#clone stable-diffusion-webui repo
|
@@ -23,9 +28,6 @@ os.system(r"git -C "+user_home+"/stable-diffusion-webui/repositories/stable-diff
|
|
23 |
|
24 |
#download ControlNet models
|
25 |
print("downloading ControlNet models")
|
26 |
-
os.system("wget https://github.com/aria2/aria2/releases/download/release-1.36.0/aria2-1.36.0-aarch64-linux-android-build1.zip")
|
27 |
-
os.system("unzip aria2-1.36.0-aarch64-linux-android-build1.zip")
|
28 |
-
os.system("mv aria2c /usr/local/bin")
|
29 |
os.system(r"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors -d "+user_home+""+user_home+"/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o control_v11e_sd15_ip2p_fp16.safetensors")
|
30 |
os.system(r"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors -d "+user_home+"/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o control_v11e_sd15_shuffle_fp16.safetensors")
|
31 |
os.system(r"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny_fp16.safetensors -d "+user_home+"/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o control_v11p_sd15_canny_fp16.safetensors")
|
|
|
1 |
import os
|
2 |
+
|
3 |
+
os.system("wget https://github.com/aria2/aria2/releases/download/release-1.36.0/aria2-1.36.0-aarch64-linux-android-build1.zip")
|
4 |
+
os.system("unzip aria2-1.36.0-aarch64-linux-android-build1.zip")
|
5 |
+
os.system("mv aria2c /usr/local/bin")
|
6 |
+
|
7 |
user_home = r"/home/user/app"
|
8 |
os.chdir(user_home)
|
9 |
#clone stable-diffusion-webui repo
|
|
|
28 |
|
29 |
#download ControlNet models
|
30 |
print("downloading ControlNet models")
|
|
|
|
|
|
|
31 |
os.system(r"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors -d "+user_home+""+user_home+"/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o control_v11e_sd15_ip2p_fp16.safetensors")
|
32 |
os.system(r"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors -d "+user_home+"/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o control_v11e_sd15_shuffle_fp16.safetensors")
|
33 |
os.system(r"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny_fp16.safetensors -d "+user_home+"/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o control_v11p_sd15_canny_fp16.safetensors")
|