fixing launch code
Browse files- files_cells/notebooks/en/downloading_en.ipynb +2 -2
- files_cells/notebooks/en/launch_en.ipynb +3 -3
- files_cells/notebooks/ru/downloading_ru.ipynb +2 -2
- files_cells/notebooks/ru/launch_ru.ipynb +3 -3
- files_cells/python/en/downloading_en.py +3 -3
- files_cells/python/en/launch_en.py +3 -3
- files_cells/python/ru/downloading_ru.py +2 -2
- files_cells/python/ru/launch_ru.py +3 -3
files_cells/notebooks/en/downloading_en.ipynb
CHANGED
@@ -136,7 +136,7 @@
|
|
136 |
"loras_dir = f\"{webui_path}/models/Lora\"\n",
|
137 |
"extensions_dir = f\"{webui_path}/extensions\"\n",
|
138 |
"control_dir = f\"{webui_path}/models/ControlNet\"\n",
|
139 |
-
"adetailer_dir = f\"{webui_path}/models/adetailer
|
140 |
"\n",
|
141 |
"\n",
|
142 |
"# ================= MAIN CODE =================\n",
|
@@ -387,7 +387,7 @@
|
|
387 |
" if '/blob/' in url:\n",
|
388 |
" url = url.replace('/blob/', '/resolve/')\n",
|
389 |
" if file_name:\n",
|
390 |
-
" !aria2c {header_option} --optimize-concurrent-downloads --console-log-level=error --summary-interval=10 -c -j5 -x16 -s16 -k1M -d {dst_dir} -o {basename} {url}\n",
|
391 |
" else:\n",
|
392 |
" parsed_link = f'\\n{url}\\n\\tout={unquote(url.split(\"/\")[-1])}'\n",
|
393 |
" !echo -e \"{parsed_link}\" | aria2c {header_option} --console-log-level=error --summary-interval=10 -i- -j5 -x16 -s16 -k1M -c -d \"{dst_dir}\" -o {basename}\n",
|
|
|
136 |
"loras_dir = f\"{webui_path}/models/Lora\"\n",
|
137 |
"extensions_dir = f\"{webui_path}/extensions\"\n",
|
138 |
"control_dir = f\"{webui_path}/models/ControlNet\"\n",
|
139 |
+
"adetailer_dir = f\"{webui_path}/models/adetailer\"\n",
|
140 |
"\n",
|
141 |
"\n",
|
142 |
"# ================= MAIN CODE =================\n",
|
|
|
387 |
" if '/blob/' in url:\n",
|
388 |
" url = url.replace('/blob/', '/resolve/')\n",
|
389 |
" if file_name:\n",
|
390 |
+
" !aria2c {header_option} --optimize-concurrent-downloads --console-log-level=error --summary-interval=10 -c -j5 -x16 -s16 -k1M -c -d {dst_dir} -o {basename} {url}\n",
|
391 |
" else:\n",
|
392 |
" parsed_link = f'\\n{url}\\n\\tout={unquote(url.split(\"/\")[-1])}'\n",
|
393 |
" !echo -e \"{parsed_link}\" | aria2c {header_option} --console-log-level=error --summary-interval=10 -i- -j5 -x16 -s16 -k1M -c -d \"{dst_dir}\" -o {basename}\n",
|
files_cells/notebooks/en/launch_en.ipynb
CHANGED
@@ -90,9 +90,9 @@
|
|
90 |
"\n",
|
91 |
"\n",
|
92 |
"# automatic fixing path V2\n",
|
93 |
-
"!sed -i 's
|
94 |
-
"!sed -i 's
|
95 |
-
"!sed -i
|
96 |
"# ---\n",
|
97 |
"!sed -i 's/\"sd_checkpoint_hash\": \".*\"/\"sd_checkpoint_hash\": \"\"/g; s/\"sd_model_checkpoint\": \".*\"/\"sd_model_checkpoint\": \"\"/g; s/\"sd_vae\": \".*\"/\"sd_vae\": \"None\"/g' {webui_path}/config.json\n",
|
98 |
"\n",
|
|
|
90 |
"\n",
|
91 |
"\n",
|
92 |
"# automatic fixing path V2\n",
|
93 |
+
"!sed -i 's|\"tagger_hf_cache_dir\": \".*\"|\"tagger_hf_cache_dir\": \"{webui_path}/models/interrogators/\"|' {webui_path}/config.json\n",
|
94 |
+
"!sed -i 's|\"additional_networks_extra_lora_path\": \".*\"|\"additional_networks_extra_lora_path\": \"{webui_path}/models/Lora/\"|' {webui_path}/config.json\n",
|
95 |
+
"!sed -i 's|\"ad_extra_models_dir\": \".*\"|\"ad_extra_models_dir\": \"{webui_path}/models/adetailer/\"|' {webui_path}/config.json\n",
|
96 |
"# ---\n",
|
97 |
"!sed -i 's/\"sd_checkpoint_hash\": \".*\"/\"sd_checkpoint_hash\": \"\"/g; s/\"sd_model_checkpoint\": \".*\"/\"sd_model_checkpoint\": \"\"/g; s/\"sd_vae\": \".*\"/\"sd_vae\": \"None\"/g' {webui_path}/config.json\n",
|
98 |
"\n",
|
files_cells/notebooks/ru/downloading_ru.ipynb
CHANGED
@@ -136,7 +136,7 @@
|
|
136 |
"loras_dir = f\"{webui_path}/models/Lora\"\n",
|
137 |
"extensions_dir = f\"{webui_path}/extensions\"\n",
|
138 |
"control_dir = f\"{webui_path}/models/ControlNet\"\n",
|
139 |
-
"adetailer_dir = f\"{webui_path}/models/adetailer
|
140 |
"\n",
|
141 |
"\n",
|
142 |
"# ================= MAIN CODE =================\n",
|
@@ -387,7 +387,7 @@
|
|
387 |
" if '/blob/' in url:\n",
|
388 |
" url = url.replace('/blob/', '/resolve/')\n",
|
389 |
" if file_name:\n",
|
390 |
-
" !aria2c {header_option} --optimize-concurrent-downloads --console-log-level=error --summary-interval=10 -c -j5 -x16 -s16 -k1M -d {dst_dir} -o {basename} {url}\n",
|
391 |
" else:\n",
|
392 |
" parsed_link = f'\\n{url}\\n\\tout={unquote(url.split(\"/\")[-1])}'\n",
|
393 |
" !echo -e \"{parsed_link}\" | aria2c {header_option} --console-log-level=error --summary-interval=10 -i- -j5 -x16 -s16 -k1M -c -d \"{dst_dir}\" -o {basename}\n",
|
|
|
136 |
"loras_dir = f\"{webui_path}/models/Lora\"\n",
|
137 |
"extensions_dir = f\"{webui_path}/extensions\"\n",
|
138 |
"control_dir = f\"{webui_path}/models/ControlNet\"\n",
|
139 |
+
"adetailer_dir = f\"{webui_path}/models/adetailer\"\n",
|
140 |
"\n",
|
141 |
"\n",
|
142 |
"# ================= MAIN CODE =================\n",
|
|
|
387 |
" if '/blob/' in url:\n",
|
388 |
" url = url.replace('/blob/', '/resolve/')\n",
|
389 |
" if file_name:\n",
|
390 |
+
" !aria2c {header_option} --optimize-concurrent-downloads --console-log-level=error --summary-interval=10 -c -j5 -x16 -s16 -k1M -c -d {dst_dir} -o {basename} {url}\n",
|
391 |
" else:\n",
|
392 |
" parsed_link = f'\\n{url}\\n\\tout={unquote(url.split(\"/\")[-1])}'\n",
|
393 |
" !echo -e \"{parsed_link}\" | aria2c {header_option} --console-log-level=error --summary-interval=10 -i- -j5 -x16 -s16 -k1M -c -d \"{dst_dir}\" -o {basename}\n",
|
files_cells/notebooks/ru/launch_ru.ipynb
CHANGED
@@ -90,9 +90,9 @@
|
|
90 |
"\n",
|
91 |
"\n",
|
92 |
"# automatic fixing path V2\n",
|
93 |
-
"!sed -i 's
|
94 |
-
"!sed -i 's
|
95 |
-
"!sed -i
|
96 |
"# ---\n",
|
97 |
"!sed -i 's/\"sd_checkpoint_hash\": \".*\"/\"sd_checkpoint_hash\": \"\"/g; s/\"sd_model_checkpoint\": \".*\"/\"sd_model_checkpoint\": \"\"/g; s/\"sd_vae\": \".*\"/\"sd_vae\": \"None\"/g' {webui_path}/config.json\n",
|
98 |
"\n",
|
|
|
90 |
"\n",
|
91 |
"\n",
|
92 |
"# automatic fixing path V2\n",
|
93 |
+
"!sed -i 's|\"tagger_hf_cache_dir\": \".*\"|\"tagger_hf_cache_dir\": \"{webui_path}/models/interrogators/\"|' {webui_path}/config.json\n",
|
94 |
+
"!sed -i 's|\"additional_networks_extra_lora_path\": \".*\"|\"additional_networks_extra_lora_path\": \"{webui_path}/models/Lora/\"|' {webui_path}/config.json\n",
|
95 |
+
"!sed -i 's|\"ad_extra_models_dir\": \".*\"|\"ad_extra_models_dir\": \"{webui_path}/models/adetailer/\"|' {webui_path}/config.json\n",
|
96 |
"# ---\n",
|
97 |
"!sed -i 's/\"sd_checkpoint_hash\": \".*\"/\"sd_checkpoint_hash\": \"\"/g; s/\"sd_model_checkpoint\": \".*\"/\"sd_model_checkpoint\": \"\"/g; s/\"sd_vae\": \".*\"/\"sd_vae\": \"None\"/g' {webui_path}/config.json\n",
|
98 |
"\n",
|
files_cells/python/en/downloading_en.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
##~ DOWNLOADING CODE | BY: ANXETY ~##
|
2 |
|
3 |
import os
|
4 |
import re
|
@@ -117,7 +117,7 @@ embeddings_dir = f"{webui_path}/embeddings"
|
|
117 |
loras_dir = f"{webui_path}/models/Lora"
|
118 |
extensions_dir = f"{webui_path}/extensions"
|
119 |
control_dir = f"{webui_path}/models/ControlNet"
|
120 |
-
adetailer_dir = f"{webui_path}/models/adetailer
|
121 |
|
122 |
|
123 |
# ================= MAIN CODE =================
|
@@ -368,7 +368,7 @@ def manual_download(url, dst_dir, file_name):
|
|
368 |
if '/blob/' in url:
|
369 |
url = url.replace('/blob/', '/resolve/')
|
370 |
if file_name:
|
371 |
-
get_ipython().system('aria2c {header_option} --optimize-concurrent-downloads --console-log-level=error --summary-interval=10 -c -j5 -x16 -s16 -k1M -d {dst_dir} -o {basename} {url}')
|
372 |
else:
|
373 |
parsed_link = f'\n{url}\n\tout={unquote(url.split("/")[-1])}'
|
374 |
get_ipython().system('echo -e "{parsed_link}" | aria2c {header_option} --console-log-level=error --summary-interval=10 -i- -j5 -x16 -s16 -k1M -c -d "{dst_dir}" -o {basename}')
|
|
|
1 |
+
0##~ DOWNLOADING CODE | BY: ANXETY ~##
|
2 |
|
3 |
import os
|
4 |
import re
|
|
|
117 |
loras_dir = f"{webui_path}/models/Lora"
|
118 |
extensions_dir = f"{webui_path}/extensions"
|
119 |
control_dir = f"{webui_path}/models/ControlNet"
|
120 |
+
adetailer_dir = f"{webui_path}/models/adetailer"
|
121 |
|
122 |
|
123 |
# ================= MAIN CODE =================
|
|
|
368 |
if '/blob/' in url:
|
369 |
url = url.replace('/blob/', '/resolve/')
|
370 |
if file_name:
|
371 |
+
get_ipython().system('aria2c {header_option} --optimize-concurrent-downloads --console-log-level=error --summary-interval=10 -c -j5 -x16 -s16 -k1M -c -d {dst_dir} -o {basename} {url}')
|
372 |
else:
|
373 |
parsed_link = f'\n{url}\n\tout={unquote(url.split("/")[-1])}'
|
374 |
get_ipython().system('echo -e "{parsed_link}" | aria2c {header_option} --console-log-level=error --summary-interval=10 -i- -j5 -x16 -s16 -k1M -c -d "{dst_dir}" -o {basename}')
|
files_cells/python/en/launch_en.py
CHANGED
@@ -66,9 +66,9 @@ if zrok_token:
|
|
66 |
|
67 |
|
68 |
# automatic fixing path V2
|
69 |
-
get_ipython().system('sed -i \'s
|
70 |
-
get_ipython().system('sed -i \'s
|
71 |
-
get_ipython().system('sed -i \'s
|
72 |
# ---
|
73 |
get_ipython().system('sed -i \'s/"sd_checkpoint_hash": ".*"/"sd_checkpoint_hash": ""/g; s/"sd_model_checkpoint": ".*"/"sd_model_checkpoint": ""/g; s/"sd_vae": ".*"/"sd_vae": "None"/g\' {webui_path}/config.json')
|
74 |
|
|
|
66 |
|
67 |
|
68 |
# automatic fixing path V2
|
69 |
+
get_ipython().system('sed -i \'s|"tagger_hf_cache_dir": ".*"|"tagger_hf_cache_dir": "{webui_path}/models/interrogators/"|\' {webui_path}/config.json')
|
70 |
+
get_ipython().system('sed -i \'s|"additional_networks_extra_lora_path": ".*"|"additional_networks_extra_lora_path": "{webui_path}/models/Lora/"|\' {webui_path}/config.json')
|
71 |
+
get_ipython().system('sed -i \'s|"ad_extra_models_dir": ".*"|"ad_extra_models_dir": "{webui_path}/models/adetailer/"|\' {webui_path}/config.json')
|
72 |
# ---
|
73 |
get_ipython().system('sed -i \'s/"sd_checkpoint_hash": ".*"/"sd_checkpoint_hash": ""/g; s/"sd_model_checkpoint": ".*"/"sd_model_checkpoint": ""/g; s/"sd_vae": ".*"/"sd_vae": "None"/g\' {webui_path}/config.json')
|
74 |
|
files_cells/python/ru/downloading_ru.py
CHANGED
@@ -117,7 +117,7 @@ embeddings_dir = f"{webui_path}/embeddings"
|
|
117 |
loras_dir = f"{webui_path}/models/Lora"
|
118 |
extensions_dir = f"{webui_path}/extensions"
|
119 |
control_dir = f"{webui_path}/models/ControlNet"
|
120 |
-
adetailer_dir = f"{webui_path}/models/adetailer
|
121 |
|
122 |
|
123 |
# ================= MAIN CODE =================
|
@@ -368,7 +368,7 @@ def manual_download(url, dst_dir, file_name):
|
|
368 |
if '/blob/' in url:
|
369 |
url = url.replace('/blob/', '/resolve/')
|
370 |
if file_name:
|
371 |
-
get_ipython().system('aria2c {header_option} --optimize-concurrent-downloads --console-log-level=error --summary-interval=10 -c -j5 -x16 -s16 -k1M -d {dst_dir} -o {basename} {url}')
|
372 |
else:
|
373 |
parsed_link = f'\n{url}\n\tout={unquote(url.split("/")[-1])}'
|
374 |
get_ipython().system('echo -e "{parsed_link}" | aria2c {header_option} --console-log-level=error --summary-interval=10 -i- -j5 -x16 -s16 -k1M -c -d "{dst_dir}" -o {basename}')
|
|
|
117 |
loras_dir = f"{webui_path}/models/Lora"
|
118 |
extensions_dir = f"{webui_path}/extensions"
|
119 |
control_dir = f"{webui_path}/models/ControlNet"
|
120 |
+
adetailer_dir = f"{webui_path}/models/adetailer"
|
121 |
|
122 |
|
123 |
# ================= MAIN CODE =================
|
|
|
368 |
if '/blob/' in url:
|
369 |
url = url.replace('/blob/', '/resolve/')
|
370 |
if file_name:
|
371 |
+
get_ipython().system('aria2c {header_option} --optimize-concurrent-downloads --console-log-level=error --summary-interval=10 -c -j5 -x16 -s16 -k1M -c -d {dst_dir} -o {basename} {url}')
|
372 |
else:
|
373 |
parsed_link = f'\n{url}\n\tout={unquote(url.split("/")[-1])}'
|
374 |
get_ipython().system('echo -e "{parsed_link}" | aria2c {header_option} --console-log-level=error --summary-interval=10 -i- -j5 -x16 -s16 -k1M -c -d "{dst_dir}" -o {basename}')
|
files_cells/python/ru/launch_ru.py
CHANGED
@@ -66,9 +66,9 @@ if zrok_token:
|
|
66 |
|
67 |
|
68 |
# automatic fixing path V2
|
69 |
-
get_ipython().system('sed -i \'s
|
70 |
-
get_ipython().system('sed -i \'s
|
71 |
-
get_ipython().system('sed -i \'s
|
72 |
# ---
|
73 |
get_ipython().system('sed -i \'s/"sd_checkpoint_hash": ".*"/"sd_checkpoint_hash": ""/g; s/"sd_model_checkpoint": ".*"/"sd_model_checkpoint": ""/g; s/"sd_vae": ".*"/"sd_vae": "None"/g\' {webui_path}/config.json')
|
74 |
|
|
|
66 |
|
67 |
|
68 |
# automatic fixing path V2
|
69 |
+
get_ipython().system('sed -i \'s|"tagger_hf_cache_dir": ".*"|"tagger_hf_cache_dir": "{webui_path}/models/interrogators/"|\' {webui_path}/config.json')
|
70 |
+
get_ipython().system('sed -i \'s|"additional_networks_extra_lora_path": ".*"|"additional_networks_extra_lora_path": "{webui_path}/models/Lora/"|\' {webui_path}/config.json')
|
71 |
+
get_ipython().system('sed -i \'s|"ad_extra_models_dir": ".*"|"ad_extra_models_dir": "{webui_path}/models/adetailer/"|\' {webui_path}/config.json')
|
72 |
# ---
|
73 |
get_ipython().system('sed -i \'s/"sd_checkpoint_hash": ".*"/"sd_checkpoint_hash": ""/g; s/"sd_model_checkpoint": ".*"/"sd_model_checkpoint": ""/g; s/"sd_vae": ".*"/"sd_vae": "None"/g\' {webui_path}/config.json')
|
74 |
|