TheLastBen
commited on
Commit
•
61c2639
1
Parent(s):
cdd04b6
Update Scripts/mainpaperspaceA1111.py
Browse files
Scripts/mainpaperspaceA1111.py
CHANGED
@@ -327,10 +327,13 @@ def sdui(User, Password, Ngrok_token, model):
|
|
327 |
clear_output()
|
328 |
|
329 |
|
330 |
-
if
|
331 |
-
mdlpth="
|
332 |
else:
|
333 |
-
|
|
|
|
|
|
|
334 |
|
335 |
|
336 |
configf="--disable-console-progressbars --no-half-vae --disable-safe-unpickle --api --no-download-sd-model --xformers --enable-insecure-extension-access --skip-version-check "+auth+" "+share+" "+mdlpth
|
|
|
327 |
clear_output()
|
328 |
|
329 |
|
330 |
+
if model=="":
|
331 |
+
mdlpth=""
|
332 |
else:
|
333 |
+
if os.path.isfile(model):
|
334 |
+
mdlpth="--ckpt "+model
|
335 |
+
else:
|
336 |
+
mdlpth="--ckpt-dir "+model
|
337 |
|
338 |
|
339 |
configf="--disable-console-progressbars --no-half-vae --disable-safe-unpickle --api --no-download-sd-model --xformers --enable-insecure-extension-access --skip-version-check "+auth+" "+share+" "+mdlpth
|