luisrguerra
commited on
Commit
·
682b2db
1
Parent(s):
0b0a372
Update app.py
Browse files
app.py
CHANGED
@@ -12,10 +12,11 @@ os.chdir("/home/user/app/stable-diffusion-webui")
|
|
12 |
|
13 |
os.system(f"wget -q https://github.com/camenduru/webui/raw/main/env_patch.py -O /home/user/app/env_patch.py")
|
14 |
os.system(f"sed -i -e '/import image_from_url_text/r /home/user/app/env_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
15 |
-
os.system(f"sed -i -e '/(
|
16 |
-
os.system(f"sed -i -e '/(train_interface, \"Train\", \"
|
|
|
17 |
os.system(f"sed -i -e '/extensions_interface, \"Extensions\", \"extensions\"/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
18 |
-
os.system(f"sed -i -e '/settings_interface, \"Settings\", \"settings\"/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
19 |
os.system(f'''sed -i -e "s/document.getElementsByTagName('gradio-app')\[0\].shadowRoot/!!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document/g" /home/user/app/stable-diffusion-webui/script.js''')
|
20 |
os.system(f"sed -i -e 's/ show_progress=False,/ show_progress=True,/g' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
21 |
os.system(f"sed -i -e 's/shared.demo.launch/shared.demo.queue().launch/g' /home/user/app/stable-diffusion-webui/webui.py")
|
@@ -29,12 +30,18 @@ os.system(f"sed -i -e 's/outputs=\[token_counter\]/outputs=[token_counter], queu
|
|
29 |
|
30 |
#real dream 2
|
31 |
os.system(f"wget -q https://huggingface.co/luisrguerra/sd-1.5-real-dream/resolve/main/real-dream-2.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/real-dream-2.safetensors")
|
|
|
|
|
32 |
#unreal dream 1
|
33 |
#os.system(f"wget -q https://huggingface.co/luisrguerra/unrealdream/resolve/main/unreal-dream-lite-float16-pruned-noema.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/unreal-dream-lite-float16-pruned-noema.safetensors")
|
34 |
#unreal dream cartoonized 1
|
35 |
#os.system(f"wget -q https://huggingface.co/luisrguerra/unreal-dream-cartoonized/resolve/main/unreal-dream-cartoonized-lite-float16-pruned-emaonly.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/unreal-dream-cartoonized-lite-float16-pruned-emaonly.safetensors")
|
36 |
#real dream 8
|
37 |
#os.system(f"wget -q https://huggingface.co/luisrguerra/sd-1.5-real-dream/resolve/main/real-dream-8.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/real-dream-8.safetensors")
|
|
|
|
|
|
|
|
|
38 |
|
39 |
#os.system(f"wget -q https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0-pruned.ckpt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/Anything-V3.0-pruned.ckpt")
|
40 |
#os.system(f"wget -q https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0.vae.pt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/Anything-V3.0-pruned.vae.pt")
|
|
|
12 |
|
13 |
os.system(f"wget -q https://github.com/camenduru/webui/raw/main/env_patch.py -O /home/user/app/env_patch.py")
|
14 |
os.system(f"sed -i -e '/import image_from_url_text/r /home/user/app/env_patch.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
15 |
+
os.system(f"sed -i -e '/(modelmerger_ui.blocks, \"Checkpoint Merger\", \"modelmerger\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
16 |
+
os.system(f"sed -i -e '/(train_interface, \"Train\", \"train\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
17 |
+
# disable extension tab
|
18 |
os.system(f"sed -i -e '/extensions_interface, \"Extensions\", \"extensions\"/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
19 |
+
#os.system(f"sed -i -e '/settings_interface, \"Settings\", \"settings\"/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
20 |
os.system(f'''sed -i -e "s/document.getElementsByTagName('gradio-app')\[0\].shadowRoot/!!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document/g" /home/user/app/stable-diffusion-webui/script.js''')
|
21 |
os.system(f"sed -i -e 's/ show_progress=False,/ show_progress=True,/g' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
22 |
os.system(f"sed -i -e 's/shared.demo.launch/shared.demo.queue().launch/g' /home/user/app/stable-diffusion-webui/webui.py")
|
|
|
30 |
|
31 |
#real dream 2
|
32 |
os.system(f"wget -q https://huggingface.co/luisrguerra/sd-1.5-real-dream/resolve/main/real-dream-2.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/real-dream-2.safetensors")
|
33 |
+
#real dream 5
|
34 |
+
#os.system(f"wget -q https://huggingface.co/luisrguerra/sd-1.5-real-dream/resolve/main/real-dream-5.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/real-dream-5.safetensors")
|
35 |
#unreal dream 1
|
36 |
#os.system(f"wget -q https://huggingface.co/luisrguerra/unrealdream/resolve/main/unreal-dream-lite-float16-pruned-noema.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/unreal-dream-lite-float16-pruned-noema.safetensors")
|
37 |
#unreal dream cartoonized 1
|
38 |
#os.system(f"wget -q https://huggingface.co/luisrguerra/unreal-dream-cartoonized/resolve/main/unreal-dream-cartoonized-lite-float16-pruned-emaonly.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/unreal-dream-cartoonized-lite-float16-pruned-emaonly.safetensors")
|
39 |
#real dream 8
|
40 |
#os.system(f"wget -q https://huggingface.co/luisrguerra/sd-1.5-real-dream/resolve/main/real-dream-8.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/real-dream-8.safetensors")
|
41 |
+
#real dream 10
|
42 |
+
#os.system(f"wget -q https://huggingface.co/luisrguerra/sd-1.5-real-dream/resolve/main/real-dream-10.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/real-dream-10.safetensors")
|
43 |
+
# real dream director's cut 1
|
44 |
+
os.system(f"wget -q https://huggingface.co/luisrguerra/sd-1.5-real-dream/resolve/main/real-dream-directors-cut-1.safetensors -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/real-dream-directors-cut-1.safetensors")
|
45 |
|
46 |
#os.system(f"wget -q https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0-pruned.ckpt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/Anything-V3.0-pruned.ckpt")
|
47 |
#os.system(f"wget -q https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0.vae.pt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/Anything-V3.0-pruned.vae.pt")
|