Spaces:
Runtime error
Runtime error
vorstcavry
commited on
Commit
·
05c0ee2
1
Parent(s):
1ea6cc2
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
"""
|
2 |
-
|
3 |
VORST CAVRY SD LOBE
|
4 |
-
|
5 |
"""
|
6 |
commit_id=r"5ef669de080814067961f28357256e8fe27544f4" #Version 1.3.0
|
7 |
import os
|
@@ -47,7 +45,6 @@ print("installing extensions")
|
|
47 |
#Gitclone(r"https://github.com/vorstcavry/embeddings",user_home / r"stable-diffusion-webui" / r"embeddings" / r"negative")
|
48 |
#Gitclone(r"https://github.com/vorstcavry/lora",user_home / r"stable-diffusion-webui" / r"models" / r"Lora" / r"positive")
|
49 |
#Gitclone(r"https://github.com/vorstcavry/Checkpoint-Model",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion" / r"Checkpoint")
|
50 |
-
DownLoad(r"https://huggingface.co/vorstcavry/v/resolve/main/styles.csv",user_home / r"stable-diffusion-webui",r"styles.csv")
|
51 |
|
52 |
DownLoad(r"https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth",user_home / r"stable-diffusion-webui" / r"models" / r"ESRGAN" ,r"4x-UltraSharp.pth")
|
53 |
while (True):
|
@@ -89,9 +86,9 @@ Gitclone(r"https://github.com/NoCrypt/sd_hf_out",user_home / r"stable-diffusion-
|
|
89 |
Gitclone(r"https://github.com/Iyashinouta/sd-model-downloader",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-model-downloader")
|
90 |
#Gitclone(r"https://github.com/AIrjen/OneButtonPrompt",user_home / r"stable-diffusion-webui" / r"extensions" / r"OneButtonPrompt")
|
91 |
Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards",user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-wildcards")
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
Gitclone(r"https://github.com/Coyote-A/ultimate-upscale-for-automatic1111",user_home / r"stable-diffusion-webui" / r"extensions" / r"ultimate-upscale-for-automatic1111")
|
96 |
os.chdir(user_home / r"stable-diffusion-webui")
|
97 |
#download ControlNet models
|
@@ -199,12 +196,30 @@ DownLoad(r"https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv
|
|
199 |
#strt Stable Diffusion Webui
|
200 |
print("Done\nStarting Webui...")
|
201 |
os.chdir(user_home / r"stable-diffusion-webui")
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
del os ,user_home ,pyexecutable ,subprocess
|
|
|
1 |
"""
|
|
|
2 |
VORST CAVRY SD LOBE
|
|
|
3 |
"""
|
4 |
commit_id=r"5ef669de080814067961f28357256e8fe27544f4" #Version 1.3.0
|
5 |
import os
|
|
|
45 |
#Gitclone(r"https://github.com/vorstcavry/embeddings",user_home / r"stable-diffusion-webui" / r"embeddings" / r"negative")
|
46 |
#Gitclone(r"https://github.com/vorstcavry/lora",user_home / r"stable-diffusion-webui" / r"models" / r"Lora" / r"positive")
|
47 |
#Gitclone(r"https://github.com/vorstcavry/Checkpoint-Model",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion" / r"Checkpoint")
|
|
|
48 |
|
49 |
DownLoad(r"https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth",user_home / r"stable-diffusion-webui" / r"models" / r"ESRGAN" ,r"4x-UltraSharp.pth")
|
50 |
while (True):
|
|
|
86 |
Gitclone(r"https://github.com/Iyashinouta/sd-model-downloader",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-model-downloader")
|
87 |
#Gitclone(r"https://github.com/AIrjen/OneButtonPrompt",user_home / r"stable-diffusion-webui" / r"extensions" / r"OneButtonPrompt")
|
88 |
Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards",user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-wildcards")
|
89 |
+
Gitclone(r"https://github.com/adieyal/sd-dynamic-prompts",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-dynamic-prompts")
|
90 |
+
Gitclone(r"https://github.com/d8ahazard/sd_dreambooth_extension",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd_dreambooth_extension")
|
91 |
+
Gitclone(r"https://github.com/yfszzx/stable-diffusion-webui-inspiration",user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-inspiration")
|
92 |
Gitclone(r"https://github.com/Coyote-A/ultimate-upscale-for-automatic1111",user_home / r"stable-diffusion-webui" / r"extensions" / r"ultimate-upscale-for-automatic1111")
|
93 |
os.chdir(user_home / r"stable-diffusion-webui")
|
94 |
#download ControlNet models
|
|
|
196 |
#strt Stable Diffusion Webui
|
197 |
print("Done\nStarting Webui...")
|
198 |
os.chdir(user_home / r"stable-diffusion-webui")
|
199 |
+
import subprocess
|
200 |
+
import pathlib
|
201 |
+
|
202 |
+
user_home = pathlib.Path("/home/user") # Gantilah dengan path yang sesuai
|
203 |
+
|
204 |
+
args = [
|
205 |
+
executable,
|
206 |
+
user_home / "stable-diffusion-webui" / "launch.py",
|
207 |
+
"--precision", "full",
|
208 |
+
"--no-half",
|
209 |
+
"--no-half-vae",
|
210 |
+
"--enable-insecure-extension-access",
|
211 |
+
"--medvram",
|
212 |
+
"--skip-torch-cuda-test",
|
213 |
+
"--enable-console-prompts",
|
214 |
+
"--ui-settings-file=" + str(pathlib.Path(__file__).parent / "config.json"),
|
215 |
+
"--hf-token-out",
|
216 |
+
"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" # Gantilah dengan token yang sesuai
|
217 |
+
]
|
218 |
+
|
219 |
+
args = [arg.as_posix() if isinstance(arg, pathlib.PosixPath) else arg for arg in args]
|
220 |
+
|
221 |
+
try:
|
222 |
+
ret = subprocess.run(args)
|
223 |
+
except Exception as e:
|
224 |
+
print("Error:", e)
|
225 |
del os ,user_home ,pyexecutable ,subprocess
|