Spaces:
Runtime error
Runtime error
Commit
·
45367c2
1
Parent(s):
857582a
stable-diffusion-webui
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ if("A10G" in gpu_info):
|
|
7 |
elif("T4" in gpu_info):
|
8 |
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.17/xformers-0.0.17+b6be33a.d20230315-cp39-cp39-linux_x86_64.whl")
|
9 |
|
10 |
-
os.system(f"git clone -b v2.1 https://github.com/
|
11 |
os.chdir("/home/user/app/stable-diffusion-webui")
|
12 |
|
13 |
os.system(f"wget -q https://github.com/luongpham89/webui/raw/main/env_patch.py -O /home/user/app/env_patch.py")
|
@@ -43,9 +43,9 @@ else:
|
|
43 |
os.system(f"git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /home/user/app/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser")
|
44 |
os.system(f"git clone https://github.com/camenduru/deforum-for-automatic1111-webui /home/user/app/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui")
|
45 |
|
46 |
-
os.system(f"wget -q https://huggingface.co/Lykon/DreamShaper/
|
47 |
-
os.system(f"wget -q https://huggingface.co/Lykon/DreamShaper/
|
48 |
-
os.system(f"wget -q https://huggingface.co/Lykon/DreamShaper/
|
49 |
|
50 |
os.system(f"python launch.py --precision full --no-half --use-cpu SD BSRGAN ESRGAN SCUNet CodeFormer --all --ui-config-file /home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json --disable-console-progressbars --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test")
|
51 |
|
|
|
7 |
elif("T4" in gpu_info):
|
8 |
os.system(f"pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.17/xformers-0.0.17+b6be33a.d20230315-cp39-cp39-linux_x86_64.whl")
|
9 |
|
10 |
+
os.system(f"git clone -b v2.1 https://github.com/luongpham89/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|
11 |
os.chdir("/home/user/app/stable-diffusion-webui")
|
12 |
|
13 |
os.system(f"wget -q https://github.com/luongpham89/webui/raw/main/env_patch.py -O /home/user/app/env_patch.py")
|
|
|
43 |
os.system(f"git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /home/user/app/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser")
|
44 |
os.system(f"git clone https://github.com/camenduru/deforum-for-automatic1111-webui /home/user/app/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui")
|
45 |
|
46 |
+
os.system(f"wget -q https://huggingface.co/Lykon/DreamShaper/raw/main/DreamShaper_4BakedVae.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/DreamShaper_4BakedVae.safetensors")
|
47 |
+
os.system(f"wget -q https://huggingface.co/Lykon/DreamShaper/raw/main/DreamShaper_4BakedVae_fp16.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/DreamShaper_4BakedVae_fp16.safetensors")
|
48 |
+
os.system(f"wget -q https://huggingface.co/Lykon/DreamShaper/raw/main/DreamShaper_4NoVae.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/DreamShaper_4NoVae.safetensors")
|
49 |
|
50 |
os.system(f"python launch.py --precision full --no-half --use-cpu SD BSRGAN ESRGAN SCUNet CodeFormer --all --ui-config-file /home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json --disable-console-progressbars --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test")
|
51 |
|