Commit
·
c567133
1
Parent(s):
f168bd4
Upload 3 files
Browse files
Scripts/mainpaperspaceA1111.py
CHANGED
@@ -98,9 +98,9 @@ def repo():
|
|
98 |
print('[1;32mInstalling/Updating the repo...')
|
99 |
os.chdir('/notebooks')
|
100 |
if not os.path.exists('/notebooks/sd/stablediffusion'):
|
101 |
-
call('wget -q -O
|
102 |
-
call('tar --zstd -xf
|
103 |
-
call('rm
|
104 |
|
105 |
os.chdir('/notebooks/sd')
|
106 |
if not os.path.exists('stable-diffusion-webui'):
|
@@ -279,8 +279,11 @@ def sdui(User, Password, model):
|
|
279 |
|
280 |
|
281 |
os.chdir('/notebooks/sd/stable-diffusion-webui/modules')
|
282 |
-
|
283 |
-
call("sed -i 's
|
|
|
|
|
|
|
284 |
call("sed -i 's@\"quicksettings\": OptionInfo(.*@\"quicksettings\": OptionInfo(\"sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, inpainting_mask_weight, initial_noise_multiplier\", \"Quicksettings list\"),@' /notebooks/sd/stable-diffusion-webui/modules/shared.py", shell=True)
|
285 |
os.chdir('/notebooks/sd/stable-diffusion-webui')
|
286 |
clear_output()
|
|
|
98 |
print('[1;32mInstalling/Updating the repo...')
|
99 |
os.chdir('/notebooks')
|
100 |
if not os.path.exists('/notebooks/sd/stablediffusion'):
|
101 |
+
call('wget -q -O sd_mrep.tar.zst https://huggingface.co/TheLastBen/dependencies/resolve/main/sd_mrep.tar.zst', shell=True)
|
102 |
+
call('tar --zstd -xf sd_mrep.tar.zst', shell=True)
|
103 |
+
call('rm sd_mrep.tar.zst', shell=True)
|
104 |
|
105 |
os.chdir('/notebooks/sd')
|
106 |
if not os.path.exists('stable-diffusion-webui'):
|
|
|
279 |
|
280 |
|
281 |
os.chdir('/notebooks/sd/stable-diffusion-webui/modules')
|
282 |
+
|
283 |
+
call("sed -i 's@possible_sd_paths =.*@possible_sd_paths = [\"/notebooks/sd/stablediffusion\"]@' /notebooks/sd/stable-diffusion-webui/modules/paths.py", shell=True)
|
284 |
+
call("sed -i 's@\.\.\/@src/@g' /notebooks/sd/stable-diffusion-webui/modules/paths.py", shell=True)
|
285 |
+
call("sed -i 's@src\/generative-models@generative-models@g' /notebooks/sd/stable-diffusion-webui/modules/paths.py", shell=True)
|
286 |
+
|
287 |
call("sed -i 's@\"quicksettings\": OptionInfo(.*@\"quicksettings\": OptionInfo(\"sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, inpainting_mask_weight, initial_noise_multiplier\", \"Quicksettings list\"),@' /notebooks/sd/stable-diffusion-webui/modules/shared.py", shell=True)
|
288 |
os.chdir('/notebooks/sd/stable-diffusion-webui')
|
289 |
clear_output()
|
Scripts/mainpaperspacev1.py
CHANGED
@@ -772,9 +772,9 @@ def testui(Custom_Path, Previous_Session_Name, Session_Name, User, Password):
|
|
772 |
|
773 |
os.chdir('/notebooks')
|
774 |
if not os.path.exists('/notebooks/sd/stablediffusion'):
|
775 |
-
call('wget -q -O
|
776 |
-
call('tar --zstd -xf
|
777 |
-
call('rm
|
778 |
|
779 |
os.chdir('/notebooks/sd')
|
780 |
if not os.path.exists('stable-diffusion-webui'):
|
@@ -807,8 +807,11 @@ def testui(Custom_Path, Previous_Session_Name, Session_Name, User, Password):
|
|
807 |
|
808 |
|
809 |
os.chdir('/notebooks/sd/stable-diffusion-webui/modules')
|
810 |
-
|
811 |
-
call("sed -i 's
|
|
|
|
|
|
|
812 |
call("sed -i 's@\"quicksettings\": OptionInfo(.*@\"quicksettings\": OptionInfo(\"sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, inpainting_mask_weight, initial_noise_multiplier\", \"Quicksettings list\"),@' /notebooks/sd/stable-diffusion-webui/modules/shared.py", shell=True)
|
813 |
os.chdir('/notebooks/sd/stable-diffusion-webui')
|
814 |
clear_output()
|
|
|
772 |
|
773 |
os.chdir('/notebooks')
|
774 |
if not os.path.exists('/notebooks/sd/stablediffusion'):
|
775 |
+
call('wget -q -O sd_mrep.tar.zst https://huggingface.co/TheLastBen/dependencies/resolve/main/sd_mrep.tar.zst', shell=True)
|
776 |
+
call('tar --zstd -xf sd_mrep.tar.zst', shell=True)
|
777 |
+
call('rm sd_mrep.tar.zst', shell=True)
|
778 |
|
779 |
os.chdir('/notebooks/sd')
|
780 |
if not os.path.exists('stable-diffusion-webui'):
|
|
|
807 |
|
808 |
|
809 |
os.chdir('/notebooks/sd/stable-diffusion-webui/modules')
|
810 |
+
|
811 |
+
call("sed -i 's@possible_sd_paths =.*@possible_sd_paths = [\"/notebooks/sd/stablediffusion\"]@' /notebooks/sd/stable-diffusion-webui/modules/paths.py", shell=True)
|
812 |
+
call("sed -i 's@\.\.\/@src/@g' /notebooks/sd/stable-diffusion-webui/modules/paths.py", shell=True)
|
813 |
+
call("sed -i 's@src\/generative-models@generative-models@g' /notebooks/sd/stable-diffusion-webui/modules/paths.py", shell=True)
|
814 |
+
|
815 |
call("sed -i 's@\"quicksettings\": OptionInfo(.*@\"quicksettings\": OptionInfo(\"sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, inpainting_mask_weight, initial_noise_multiplier\", \"Quicksettings list\"),@' /notebooks/sd/stable-diffusion-webui/modules/shared.py", shell=True)
|
816 |
os.chdir('/notebooks/sd/stable-diffusion-webui')
|
817 |
clear_output()
|
Scripts/mainpaperspacev2.py
CHANGED
@@ -820,9 +820,9 @@ def testui(Custom_Path, Previous_Session_Name, Session_Name, User, Password):
|
|
820 |
|
821 |
os.chdir('/notebooks')
|
822 |
if not os.path.exists('/notebooks/sd/stablediffusion'):
|
823 |
-
call('wget -q -O
|
824 |
-
call('tar --zstd -xf
|
825 |
-
call('rm
|
826 |
|
827 |
os.chdir('/notebooks/sd')
|
828 |
if not os.path.exists('stable-diffusion-webui'):
|
@@ -855,8 +855,11 @@ def testui(Custom_Path, Previous_Session_Name, Session_Name, User, Password):
|
|
855 |
|
856 |
|
857 |
os.chdir('/notebooks/sd/stable-diffusion-webui/modules')
|
858 |
-
|
859 |
-
call("sed -i 's
|
|
|
|
|
|
|
860 |
call("sed -i 's@\"quicksettings\": OptionInfo(.*@\"quicksettings\": OptionInfo(\"sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, inpainting_mask_weight, initial_noise_multiplier\", \"Quicksettings list\"),@' /notebooks/sd/stable-diffusion-webui/modules/shared.py", shell=True)
|
861 |
os.chdir('/notebooks/sd/stable-diffusion-webui')
|
862 |
clear_output()
|
|
|
820 |
|
821 |
os.chdir('/notebooks')
|
822 |
if not os.path.exists('/notebooks/sd/stablediffusion'):
|
823 |
+
call('wget -q -O sd_mrep.tar.zst https://huggingface.co/TheLastBen/dependencies/resolve/main/sd_mrep.tar.zst', shell=True)
|
824 |
+
call('tar --zstd -xf sd_mrep.tar.zst', shell=True)
|
825 |
+
call('rm sd_mrep.tar.zst', shell=True)
|
826 |
|
827 |
os.chdir('/notebooks/sd')
|
828 |
if not os.path.exists('stable-diffusion-webui'):
|
|
|
855 |
|
856 |
|
857 |
os.chdir('/notebooks/sd/stable-diffusion-webui/modules')
|
858 |
+
|
859 |
+
call("sed -i 's@possible_sd_paths =.*@possible_sd_paths = [\"/notebooks/sd/stablediffusion\"]@' /notebooks/sd/stable-diffusion-webui/modules/paths.py", shell=True)
|
860 |
+
call("sed -i 's@\.\.\/@src/@g' /notebooks/sd/stable-diffusion-webui/modules/paths.py", shell=True)
|
861 |
+
call("sed -i 's@src\/generative-models@generative-models@g' /notebooks/sd/stable-diffusion-webui/modules/paths.py", shell=True)
|
862 |
+
|
863 |
call("sed -i 's@\"quicksettings\": OptionInfo(.*@\"quicksettings\": OptionInfo(\"sd_model_checkpoint, sd_vae, CLIP_stop_at_last_layers, inpainting_mask_weight, initial_noise_multiplier\", \"Quicksettings list\"),@' /notebooks/sd/stable-diffusion-webui/modules/shared.py", shell=True)
|
864 |
os.chdir('/notebooks/sd/stable-diffusion-webui')
|
865 |
clear_output()
|