Spaces:
Running
Running
stlaurentjr
commited on
Commit
•
0ae0a2e
1
Parent(s):
dca07ad
Update scripts/mainrunpodA1111.py
Browse files
scripts/mainrunpodA1111.py
CHANGED
@@ -131,8 +131,6 @@ def repo(Huggingface_token_optional):
|
|
131 |
if not os.path.exists('stable-diffusion-webui'):
|
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')
|
@@ -419,6 +417,10 @@ def sd(User, Password, model):
|
|
419 |
|
420 |
call("sed -i 's@\[\"sd_model_checkpoint\"\]@\[\"sd_model_checkpoint\", \"sd_vae\", \"CLIP_stop_at_last_layers\", \"inpainting_mask_weight\", \"initial_noise_multiplier\"\]@g' /workspace/sd/stable-diffusion-webui/modules/shared.py", shell=True)
|
421 |
|
|
|
|
|
|
|
|
|
422 |
call("sed -i 's@print(\"No module.*@@' /workspace/sd/stablediffusion/ldm/modules/diffusionmodules/model.py", shell=True)
|
423 |
|
424 |
os.chdir('/workspace/sd/stable-diffusion-webui')
|
|
|
131 |
if not os.path.exists('stable-diffusion-webui'):
|
132 |
call('git clone -q --depth 1 --branch master https://github.com/AUTOMATIC1111/stable-diffusion-webui', shell=True)
|
133 |
|
|
|
|
|
134 |
os.chdir('/workspace/sd/stable-diffusion-webui/')
|
135 |
call('git reset --hard', shell=True)
|
136 |
print('[1;32m')
|
|
|
417 |
|
418 |
call("sed -i 's@\[\"sd_model_checkpoint\"\]@\[\"sd_model_checkpoint\", \"sd_vae\", \"CLIP_stop_at_last_layers\", \"inpainting_mask_weight\", \"initial_noise_multiplier\"\]@g' /workspace/sd/stable-diffusion-webui/modules/shared.py", shell=True)
|
419 |
|
420 |
+
call("sed -i 's@\[\"sd_model_checkpoint\"\]@\[\"sd_model_checkpoint\", \"sd_vae\", \"CLIP_stop_at_last_layers\", \"inpainting_mask_weight\", \"initial_noise_multiplier\"\]@g' /workspace/sd/stable-diffusion-webui/modules/shared.py", shell=True)
|
421 |
+
|
422 |
+
call("sed -i 's/\"CLIP_stop_at_last_layers\": 1/\"CLIP_stop_at_last_layers\": 2/g' /workspace/sd/stable-diffusion-webui/config.json", shell=True)
|
423 |
+
|
424 |
call("sed -i 's@print(\"No module.*@@' /workspace/sd/stablediffusion/ldm/modules/diffusionmodules/model.py", shell=True)
|
425 |
|
426 |
os.chdir('/workspace/sd/stable-diffusion-webui')
|