Spaces:
Running
Running
stlaurentjr
commited on
Commit
•
d456aa2
1
Parent(s):
a1f31ad
Update scripts/mainrunpodA1111.py
Browse files
scripts/mainrunpodA1111.py
CHANGED
@@ -132,13 +132,13 @@ def repo(Huggingface_token_optional):
|
|
132 |
call('git clone -q --depth 1 --branch master https://github.com/AUTOMATIC1111/stable-diffusion-webui', shell=True)
|
133 |
|
134 |
call('wget -O /workspace/sd/stable-diffusion-webui/config.json https://huggingface.co/spaces/stlaurentjr/RNPD/raw/main/config/config.json', shell=True)
|
135 |
-
|
136 |
os.chdir('/workspace/sd/stable-diffusion-webui/')
|
137 |
call('git reset --hard', shell=True)
|
138 |
print('[1;32m')
|
139 |
call('git pull', shell=True)
|
140 |
os.chdir('/workspace')
|
141 |
-
clear_output()
|
142 |
done()
|
143 |
|
144 |
|
@@ -446,7 +446,7 @@ def sd(User, Password, model):
|
|
446 |
else:
|
447 |
mdlpth="--ckpt-dir "+model
|
448 |
|
449 |
-
configf="--disable-console-progressbars --no-half-vae --disable-safe-unpickle --api --no-download-sd-model --opt-sdp-attention --enable-insecure-extension-access --skip-version-check --listen --port 3000 "+auth+" "+mdlpth
|
450 |
|
451 |
return configf
|
452 |
|
|
|
132 |
call('git clone -q --depth 1 --branch master https://github.com/AUTOMATIC1111/stable-diffusion-webui', shell=True)
|
133 |
|
134 |
call('wget -O /workspace/sd/stable-diffusion-webui/config.json https://huggingface.co/spaces/stlaurentjr/RNPD/raw/main/config/config.json', shell=True)
|
135 |
+
|
136 |
os.chdir('/workspace/sd/stable-diffusion-webui/')
|
137 |
call('git reset --hard', shell=True)
|
138 |
print('[1;32m')
|
139 |
call('git pull', shell=True)
|
140 |
os.chdir('/workspace')
|
141 |
+
# clear_output()
|
142 |
done()
|
143 |
|
144 |
|
|
|
446 |
else:
|
447 |
mdlpth="--ckpt-dir "+model
|
448 |
|
449 |
+
configf="--vae-path /workspace/sd/stable-diffusion-webui/VAE/vae-ft-mse-840000-ema-pruned.safetensors --disable-console-progressbars --no-half-vae --disable-safe-unpickle --api --no-download-sd-model --opt-sdp-attention --enable-insecure-extension-access --skip-version-check --listen --port 3000 "+auth+" "+mdlpth
|
450 |
|
451 |
return configf
|
452 |
|