Spaces:
Sleeping
Sleeping
dasghost65536
commited on
Commit
•
ac01c1b
1
Parent(s):
7654887
added MeinaPastelV6 as another checkpoint model to choose... and finally, added an experimental startup option in case if someone wants to duplicate this space and run it on a GPU. read the instructions on how to enable that other option if you want to do so.
Browse files
app.py
CHANGED
@@ -134,6 +134,9 @@ DownLoad(r"https://huggingface.co/gsdf/Counterfeit-V3.0/resolve/main/Counterfeit
|
|
134 |
DownLoad(r"https://civitai.com/api/download/models/90854",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"AnythingV5Ink_ink.safetensors")
|
135 |
#MeinaMixV11
|
136 |
DownLoad(r"https://civitai.com/api/download/models/119057",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"meinamix_meinaV11.safetensors")
|
|
|
|
|
|
|
137 |
|
138 |
#Lora Model
|
139 |
#Better Light
|
@@ -155,6 +158,16 @@ DownLoad(r"https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv
|
|
155 |
#strt Stable Diffusion Webui
|
156 |
print("Done\nStarting Webui...")
|
157 |
os.chdir(user_home / r"stable-diffusion-webui")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
while True:
|
159 |
ret=subprocess.run([executable ,user_home / r"stable-diffusion-webui" / r"launch.py",r"--precision",r"full",r"--no-half",r"--no-half-vae",r"--enable-insecure-extension-access",r"--medvram",r"--skip-torch-cuda-test",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json")])
|
160 |
if(ret.returncode == 0 ):
|
@@ -162,4 +175,35 @@ while True:
|
|
162 |
gc.collect()
|
163 |
else :
|
164 |
del ret
|
165 |
-
del os ,user_home ,pyexecutable ,subprocess
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
DownLoad(r"https://civitai.com/api/download/models/90854",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"AnythingV5Ink_ink.safetensors")
|
135 |
#MeinaMixV11
|
136 |
DownLoad(r"https://civitai.com/api/download/models/119057",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"meinamix_meinaV11.safetensors")
|
137 |
+
#MeinaPastelV6
|
138 |
+
DownLoad(r"https://civitai.com/api/download/models/108289",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"meinapastel_v6Pastel.safetensors")
|
139 |
+
|
140 |
|
141 |
#Lora Model
|
142 |
#Better Light
|
|
|
158 |
#strt Stable Diffusion Webui
|
159 |
print("Done\nStarting Webui...")
|
160 |
os.chdir(user_home / r"stable-diffusion-webui")
|
161 |
+
|
162 |
+
# ==CPU Option==
|
163 |
+
# this is the default startup setting if you're not planning to
|
164 |
+
# run your duplicated space on a GPU.
|
165 |
+
# if you are planning to run your duplicated space on
|
166 |
+
# CPU upgrade, this default startup setting is pretty much
|
167 |
+
# enough as it gets, since it's more or less the same as the
|
168 |
+
# the other option, albeit a faster processor and more system RAM...
|
169 |
+
# yeah, that's supported, so it's fine I guess.
|
170 |
+
|
171 |
while True:
|
172 |
ret=subprocess.run([executable ,user_home / r"stable-diffusion-webui" / r"launch.py",r"--precision",r"full",r"--no-half",r"--no-half-vae",r"--enable-insecure-extension-access",r"--medvram",r"--skip-torch-cuda-test",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json")])
|
173 |
if(ret.returncode == 0 ):
|
|
|
175 |
gc.collect()
|
176 |
else :
|
177 |
del ret
|
178 |
+
del os ,user_home ,pyexecutable ,subprocess
|
179 |
+
|
180 |
+
# ==GPU Option (UNTESTED)==
|
181 |
+
# if you are planning to run your duplicated space on a GPU, you must
|
182 |
+
# first comment out the default startup setting above this message
|
183 |
+
# to do so, and then after that, uncomment this below that is commented
|
184 |
+
# out by default in order to make the most out of it, if this is
|
185 |
+
# going to run on a GPU.
|
186 |
+
#
|
187 |
+
# do not use this option if the space is running on
|
188 |
+
# CPU upgrade, instead, use the default option above if you are
|
189 |
+
# planning to run your duplicated space on CPU upgrade.
|
190 |
+
#
|
191 |
+
# do not leave the former uncommented if you are going to
|
192 |
+
# uncomment the other startup option in case if you're running
|
193 |
+
# it on a GPU. You must pick one option, but not both at the
|
194 |
+
# same time, because it might cause issues and/or runtime
|
195 |
+
# errors in that case.
|
196 |
+
#
|
197 |
+
# if there's any issues and/or errors for this option below,
|
198 |
+
# be sure to report any issues about this option or maybe
|
199 |
+
# at least give feedback on this anyway, because it's not
|
200 |
+
# really tested that much at the moment.
|
201 |
+
|
202 |
+
#while True:
|
203 |
+
# ret=subprocess.run([executable ,user_home / r"stable-diffusion-webui" / r"launch.py",r"--xformers",r"--precision",r"full",r"--no-half-vae",r"--enable-insecure-extension-access",r"--skip-torch-cuda-test",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json")])
|
204 |
+
# if(ret.returncode == 0 ):
|
205 |
+
# del ret
|
206 |
+
# gc.collect()
|
207 |
+
# else :
|
208 |
+
# del ret
|
209 |
+
#del os ,user_home ,pyexecutable ,subprocess
|