NagisaNao commited on
Commit
961c8e3
1 Parent(s): 91d8917

➖ remove the addition network

Browse files
files_cells/notebooks/en/downloading_en.ipynb CHANGED
@@ -27,7 +27,6 @@
27
  "from IPython.display import clear_output\n",
28
  "from urllib.parse import urlparse, parse_qs\n",
29
  "\n",
30
- "os.chdir(os.path.expanduser('~'))\n",
31
  "\n",
32
  "# Setup Env\n",
33
  "env = os.getenv('ENV_NAME')\n",
@@ -38,6 +37,7 @@
38
  "UI = os.getenv('SDW_UI')\n",
39
  "OLD_UI = os.getenv('SDW_OLD_UI')\n",
40
  "\n",
 
41
  "\n",
42
  "# ============ loading settings V4 =============\n",
43
  "def load_settings(path):\n",
@@ -236,8 +236,6 @@
236
  " !sed -i '521s/open=\\(False\\|True\\)/open=False/' {webui_path}/extensions/Umi-AI-Wildcards/scripts/wildcard_recursive.py # Closed accordion by default\n",
237
  " # --- Encrypt-Image ---\n",
238
  " !sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js # Removes the weird text in webui\n",
239
- " # --- Additional-Networks ---\n",
240
- " !wget -O {webui_path}/extensions/additional-networks/scripts/metadata_editor.py {anxety_repos}/extensions/Additional-Networks/fix/metadata_editor.py # Fixing an error due to old style\n",
241
  "del cap\n",
242
  "\n",
243
  "\n",
@@ -293,7 +291,7 @@
293
  " print(f\"\\033[33mFILE NAME: \\033[34m{file_name}\\033[0m\")\n",
294
  "\n",
295
  " if 'civitai' in url and image_url:\n",
296
- " print(f\"\\033[32m[Preview DL]:\\033[0m {image_name} - {image_url}\\n\")\n",
297
  "\n",
298
  "''' GET CivitAi API - DATA '''\n",
299
  "\n",
@@ -437,9 +435,9 @@
437
  " \"\"\" Formatted info output \"\"\"\n",
438
  " model_name_or_basename = file_name if file_name else basename\n",
439
  " try:\n",
440
- " format_output(clean_url or url, dst_dir, model_name_or_basename, image_name, image_url)\n",
441
  " except UnboundLocalError:\n",
442
- " format_output(clean_url or url, dst_dir, model_name_or_basename, None, None)\n",
443
  "\n",
444
  " # =====================\n",
445
  " def run_aria2c(url, dst_dir, file_name=None, args=\"\", header=\"\"):\n",
@@ -474,57 +472,62 @@
474
  "\n",
475
  "# Separation of merged numbers\n",
476
  "def split_numbers(num_str, max_num):\n",
477
- " def helper(s):\n",
478
- " if not s:\n",
479
- " return []\n",
 
480
  " for length in range(2, 0, -1):\n",
481
- " if len(s) >= length:\n",
482
- " part = int(s[:length])\n",
483
  " if part <= max_num:\n",
484
- " result = helper(s[length:])\n",
485
- " if result is not None:\n",
486
- " return [part] + result\n",
487
- " return None\n",
488
- " return helper(num_str)\n",
 
 
489
  "\n",
490
  "def add_submodels(selection, num_selection, model_dict, dst_dir):\n",
491
- " selected_models = []\n",
492
  " if selection == \"none\":\n",
493
- " return selected_models\n",
 
 
494
  " if selection == \"ALL\":\n",
495
- " for models in model_dict.values():\n",
496
- " selected_models.extend(models)\n",
497
  " else:\n",
498
  " if selection in model_dict:\n",
499
  " selected_models.extend(model_dict[selection])\n",
 
500
  " nums = num_selection.replace(',', ' ').split()\n",
501
  " max_num = len(model_dict)\n",
502
- " selected_nums = []\n",
503
  "\n",
504
  " for num_part in nums:\n",
505
  " split_nums = split_numbers(num_part, max_num)\n",
506
- " if split_nums:\n",
507
- " selected_nums.extend(split_nums)\n",
508
- "\n",
509
- " unique_nums = list(set(selected_nums))\n",
510
  "\n",
511
  " for num in unique_nums:\n",
512
  " if 1 <= num <= max_num:\n",
513
- " name = list(model_dict)[num - 1]\n",
514
  " selected_models.extend(model_dict[name])\n",
515
  "\n",
516
- " unique_models = list({model['name']: model for model in selected_models}.values())\n",
 
517
  " for model in unique_models:\n",
518
  " model['dst_dir'] = dst_dir\n",
519
  "\n",
520
- " return unique_models\n",
521
  "\n",
522
  "def handle_submodels(selection, num_selection, model_dict, dst_dir, url):\n",
523
  " submodels = add_submodels(selection, num_selection, model_dict, dst_dir)\n",
 
524
  " for submodel in submodels:\n",
525
  " if not inpainting_model and \"inpainting\" in submodel['name']:\n",
526
  " continue\n",
527
- " url += f\"{submodel['url']} {submodel['dst_dir']} {submodel['name']}, \"\n",
 
 
528
  " return url\n",
529
  "\n",
530
  "url = handle_submodels(model, model_num, model_list, models_dir, url)\n",
 
27
  "from IPython.display import clear_output\n",
28
  "from urllib.parse import urlparse, parse_qs\n",
29
  "\n",
 
30
  "\n",
31
  "# Setup Env\n",
32
  "env = os.getenv('ENV_NAME')\n",
 
37
  "UI = os.getenv('SDW_UI')\n",
38
  "OLD_UI = os.getenv('SDW_OLD_UI')\n",
39
  "\n",
40
+ "os.chdir(root_path)\n",
41
  "\n",
42
  "# ============ loading settings V4 =============\n",
43
  "def load_settings(path):\n",
 
236
  " !sed -i '521s/open=\\(False\\|True\\)/open=False/' {webui_path}/extensions/Umi-AI-Wildcards/scripts/wildcard_recursive.py # Closed accordion by default\n",
237
  " # --- Encrypt-Image ---\n",
238
  " !sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js # Removes the weird text in webui\n",
 
 
239
  "del cap\n",
240
  "\n",
241
  "\n",
 
291
  " print(f\"\\033[33mFILE NAME: \\033[34m{file_name}\\033[0m\")\n",
292
  "\n",
293
  " if 'civitai' in url and image_url:\n",
294
+ " print(f\"\\033[32m[Preview IMG]:\\033[0m {image_name} - {image_url}\\n\")\n",
295
  "\n",
296
  "''' GET CivitAi API - DATA '''\n",
297
  "\n",
 
435
  " \"\"\" Formatted info output \"\"\"\n",
436
  " model_name_or_basename = file_name if file_name else basename\n",
437
  " try:\n",
438
+ " format_output(clean_url, dst_dir, model_name_or_basename, image_name, image_url)\n",
439
  " except UnboundLocalError:\n",
440
+ " format_output(clean_url, dst_dir, model_name_or_basename, None, None)\n",
441
  "\n",
442
  " # =====================\n",
443
  " def run_aria2c(url, dst_dir, file_name=None, args=\"\", header=\"\"):\n",
 
472
  "\n",
473
  "# Separation of merged numbers\n",
474
  "def split_numbers(num_str, max_num):\n",
475
+ " result = []\n",
476
+ " i = 0\n",
477
+ " while i < len(num_str):\n",
478
+ " found = False\n",
479
  " for length in range(2, 0, -1):\n",
480
+ " if i + length <= len(num_str):\n",
481
+ " part = int(num_str[i:i + length])\n",
482
  " if part <= max_num:\n",
483
+ " result.append(part)\n",
484
+ " i += length\n",
485
+ " found = True\n",
486
+ " break\n",
487
+ " if not found:\n",
488
+ " break\n",
489
+ " return result\n",
490
  "\n",
491
  "def add_submodels(selection, num_selection, model_dict, dst_dir):\n",
 
492
  " if selection == \"none\":\n",
493
+ " return []\n",
494
+ " selected_models = []\n",
495
+ "\n",
496
  " if selection == \"ALL\":\n",
497
+ " selected_models = sum(model_dict.values(), [])\n",
 
498
  " else:\n",
499
  " if selection in model_dict:\n",
500
  " selected_models.extend(model_dict[selection])\n",
501
+ "\n",
502
  " nums = num_selection.replace(',', ' ').split()\n",
503
  " max_num = len(model_dict)\n",
504
+ " unique_nums = set()\n",
505
  "\n",
506
  " for num_part in nums:\n",
507
  " split_nums = split_numbers(num_part, max_num)\n",
508
+ " unique_nums.update(split_nums)\n",
 
 
 
509
  "\n",
510
  " for num in unique_nums:\n",
511
  " if 1 <= num <= max_num:\n",
512
+ " name = list(model_dict.keys())[num - 1]\n",
513
  " selected_models.extend(model_dict[name])\n",
514
  "\n",
515
+ " unique_models = {model['name']: model for model in selected_models}.values()\n",
516
+ "\n",
517
  " for model in unique_models:\n",
518
  " model['dst_dir'] = dst_dir\n",
519
  "\n",
520
+ " return list(unique_models)\n",
521
  "\n",
522
  "def handle_submodels(selection, num_selection, model_dict, dst_dir, url):\n",
523
  " submodels = add_submodels(selection, num_selection, model_dict, dst_dir)\n",
524
+ " urls = []\n",
525
  " for submodel in submodels:\n",
526
  " if not inpainting_model and \"inpainting\" in submodel['name']:\n",
527
  " continue\n",
528
+ " urls.append(f\"{submodel['url']} {submodel['dst_dir']} {submodel['name']}\")\n",
529
+ "\n",
530
+ " url += \", \".join(urls) + ', '\n",
531
  " return url\n",
532
  "\n",
533
  "url = handle_submodels(model, model_num, model_list, models_dir, url)\n",
files_cells/notebooks/en/launch_en.ipynb CHANGED
@@ -106,7 +106,6 @@
106
  "# ================= Automatic Fixing Path V3 ================\n",
107
  "paths_to_check = {\n",
108
  " \"tagger_hf_cache_dir\": f\"{webui_path}/models/interrogators/\",\n",
109
- " \"additional_networks_extra_lora_path\": f\"{webui_path}/models/Lora/\",\n",
110
  " \"ad_extra_models_dir\": f\"{webui_path}/models/adetailer/\",\n",
111
  " \"sd_checkpoint_hash\": \"\",\n",
112
  " \"sd_model_checkpoint\": \"\",\n",
 
106
  "# ================= Automatic Fixing Path V3 ================\n",
107
  "paths_to_check = {\n",
108
  " \"tagger_hf_cache_dir\": f\"{webui_path}/models/interrogators/\",\n",
 
109
  " \"ad_extra_models_dir\": f\"{webui_path}/models/adetailer/\",\n",
110
  " \"sd_checkpoint_hash\": \"\",\n",
111
  " \"sd_model_checkpoint\": \"\",\n",
files_cells/notebooks/ru/downloading_ru.ipynb CHANGED
@@ -37,7 +37,7 @@
37
  "UI = os.getenv('SDW_UI')\n",
38
  "OLD_UI = os.getenv('SDW_OLD_UI')\n",
39
  "\n",
40
- "os.chdir(os.path.expanduser('~'))\n",
41
  "\n",
42
  "# ============ loading settings V4 =============\n",
43
  "def load_settings(path):\n",
@@ -236,8 +236,6 @@
236
  " !sed -i '521s/open=\\(False\\|True\\)/open=False/' {webui_path}/extensions/Umi-AI-Wildcards/scripts/wildcard_recursive.py # Closed accordion by default\n",
237
  " # --- Encrypt-Image ---\n",
238
  " !sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js # Removes the weird text in webui\n",
239
- " # --- Additional-Networks ---\n",
240
- " !wget -O {webui_path}/extensions/additional-networks/scripts/metadata_editor.py {anxety_repos}/extensions/Additional-Networks/fix/metadata_editor.py # Fixing an error due to old style\n",
241
  "del cap\n",
242
  "\n",
243
  "\n",
@@ -293,7 +291,7 @@
293
  " print(f\"\\033[33mFILE NAME: \\033[34m{file_name}\\033[0m\")\n",
294
  "\n",
295
  " if 'civitai' in url and image_url:\n",
296
- " print(f\"\\033[32m[Preview DL]:\\033[0m {image_name} - {image_url}\\n\")\n",
297
  "\n",
298
  "''' GET CivitAi API - DATA '''\n",
299
  "\n",
@@ -437,9 +435,9 @@
437
  " \"\"\" Formatted info output \"\"\"\n",
438
  " model_name_or_basename = file_name if file_name else basename\n",
439
  " try:\n",
440
- " format_output(clean_url or url, dst_dir, model_name_or_basename, image_name, image_url)\n",
441
  " except UnboundLocalError:\n",
442
- " format_output(clean_url or url, dst_dir, model_name_or_basename, None, None)\n",
443
  "\n",
444
  " # =====================\n",
445
  " def run_aria2c(url, dst_dir, file_name=None, args=\"\", header=\"\"):\n",
 
37
  "UI = os.getenv('SDW_UI')\n",
38
  "OLD_UI = os.getenv('SDW_OLD_UI')\n",
39
  "\n",
40
+ "os.chdir(root_path)\n",
41
  "\n",
42
  "# ============ loading settings V4 =============\n",
43
  "def load_settings(path):\n",
 
236
  " !sed -i '521s/open=\\(False\\|True\\)/open=False/' {webui_path}/extensions/Umi-AI-Wildcards/scripts/wildcard_recursive.py # Closed accordion by default\n",
237
  " # --- Encrypt-Image ---\n",
238
  " !sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js # Removes the weird text in webui\n",
 
 
239
  "del cap\n",
240
  "\n",
241
  "\n",
 
291
  " print(f\"\\033[33mFILE NAME: \\033[34m{file_name}\\033[0m\")\n",
292
  "\n",
293
  " if 'civitai' in url and image_url:\n",
294
+ " print(f\"\\033[32m[Preview IMG]:\\033[0m {image_name} - {image_url}\\n\")\n",
295
  "\n",
296
  "''' GET CivitAi API - DATA '''\n",
297
  "\n",
 
435
  " \"\"\" Formatted info output \"\"\"\n",
436
  " model_name_or_basename = file_name if file_name else basename\n",
437
  " try:\n",
438
+ " format_output(clean_url, dst_dir, model_name_or_basename, image_name, image_url)\n",
439
  " except UnboundLocalError:\n",
440
+ " format_output(clean_url, dst_dir, model_name_or_basename, None, None)\n",
441
  "\n",
442
  " # =====================\n",
443
  " def run_aria2c(url, dst_dir, file_name=None, args=\"\", header=\"\"):\n",
files_cells/notebooks/ru/launch_ru.ipynb CHANGED
@@ -106,7 +106,6 @@
106
  "# ================= Automatic Fixing Path V3 ================\n",
107
  "paths_to_check = {\n",
108
  " \"tagger_hf_cache_dir\": f\"{webui_path}/models/interrogators/\",\n",
109
- " \"additional_networks_extra_lora_path\": f\"{webui_path}/models/Lora/\",\n",
110
  " \"ad_extra_models_dir\": f\"{webui_path}/models/adetailer/\",\n",
111
  " \"sd_checkpoint_hash\": \"\",\n",
112
  " \"sd_model_checkpoint\": \"\",\n",
 
106
  "# ================= Automatic Fixing Path V3 ================\n",
107
  "paths_to_check = {\n",
108
  " \"tagger_hf_cache_dir\": f\"{webui_path}/models/interrogators/\",\n",
 
109
  " \"ad_extra_models_dir\": f\"{webui_path}/models/adetailer/\",\n",
110
  " \"sd_checkpoint_hash\": \"\",\n",
111
  " \"sd_model_checkpoint\": \"\",\n",
files_cells/python/en/downloading_en.py CHANGED
@@ -27,7 +27,7 @@ free_plan = os.getenv('FREE_PLAN')
27
  UI = os.getenv('SDW_UI')
28
  OLD_UI = os.getenv('SDW_OLD_UI')
29
 
30
- os.chdir(os.path.expanduser('~'))
31
 
32
  # ============ loading settings V4 =============
33
  def load_settings(path):
@@ -226,8 +226,6 @@ with capture.capture_output() as cap:
226
  get_ipython().system("sed -i '521s/open=\\(False\\|True\\)/open=False/' {webui_path}/extensions/Umi-AI-Wildcards/scripts/wildcard_recursive.py # Closed accordion by default")
227
  # --- Encrypt-Image ---
228
  get_ipython().system("sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js # Removes the weird text in webui")
229
- # --- Additional-Networks ---
230
- get_ipython().system('wget -O {webui_path}/extensions/additional-networks/scripts/metadata_editor.py {anxety_repos}/extensions/Additional-Networks/fix/metadata_editor.py # Fixing an error due to old style')
231
  del cap
232
 
233
 
@@ -283,7 +281,7 @@ def format_output(url, dst_dir, file_name, image_name=None, image_url=None):
283
  print(f"\033[33mFILE NAME: \033[34m{file_name}\033[0m")
284
 
285
  if 'civitai' in url and image_url:
286
- print(f"\033[32m[Preview DL]:\033[0m {image_name} - {image_url}\n")
287
 
288
  ''' GET CivitAi API - DATA '''
289
 
@@ -427,9 +425,9 @@ def manual_download(url, dst_dir, file_name, prefix=None):
427
  """ Formatted info output """
428
  model_name_or_basename = file_name if file_name else basename
429
  try:
430
- format_output(clean_url or url, dst_dir, model_name_or_basename, image_name, image_url)
431
  except UnboundLocalError:
432
- format_output(clean_url or url, dst_dir, model_name_or_basename, None, None)
433
 
434
  # =====================
435
  def run_aria2c(url, dst_dir, file_name=None, args="", header=""):
@@ -464,57 +462,62 @@ def manual_download(url, dst_dir, file_name, prefix=None):
464
 
465
  # Separation of merged numbers
466
  def split_numbers(num_str, max_num):
467
- def helper(s):
468
- if not s:
469
- return []
 
470
  for length in range(2, 0, -1):
471
- if len(s) >= length:
472
- part = int(s[:length])
473
  if part <= max_num:
474
- result = helper(s[length:])
475
- if result is not None:
476
- return [part] + result
477
- return None
478
- return helper(num_str)
 
 
479
 
480
  def add_submodels(selection, num_selection, model_dict, dst_dir):
481
- selected_models = []
482
  if selection == "none":
483
- return selected_models
 
 
484
  if selection == "ALL":
485
- for models in model_dict.values():
486
- selected_models.extend(models)
487
  else:
488
  if selection in model_dict:
489
  selected_models.extend(model_dict[selection])
 
490
  nums = num_selection.replace(',', ' ').split()
491
  max_num = len(model_dict)
492
- selected_nums = []
493
 
494
  for num_part in nums:
495
  split_nums = split_numbers(num_part, max_num)
496
- if split_nums:
497
- selected_nums.extend(split_nums)
498
-
499
- unique_nums = list(set(selected_nums))
500
 
501
  for num in unique_nums:
502
  if 1 <= num <= max_num:
503
- name = list(model_dict)[num - 1]
504
  selected_models.extend(model_dict[name])
505
 
506
- unique_models = list({model['name']: model for model in selected_models}.values())
 
507
  for model in unique_models:
508
  model['dst_dir'] = dst_dir
509
 
510
- return unique_models
511
 
512
  def handle_submodels(selection, num_selection, model_dict, dst_dir, url):
513
  submodels = add_submodels(selection, num_selection, model_dict, dst_dir)
 
514
  for submodel in submodels:
515
  if not inpainting_model and "inpainting" in submodel['name']:
516
  continue
517
- url += f"{submodel['url']} {submodel['dst_dir']} {submodel['name']}, "
 
 
518
  return url
519
 
520
  url = handle_submodels(model, model_num, model_list, models_dir, url)
 
27
  UI = os.getenv('SDW_UI')
28
  OLD_UI = os.getenv('SDW_OLD_UI')
29
 
30
+ os.chdir(root_path)
31
 
32
  # ============ loading settings V4 =============
33
  def load_settings(path):
 
226
  get_ipython().system("sed -i '521s/open=\\(False\\|True\\)/open=False/' {webui_path}/extensions/Umi-AI-Wildcards/scripts/wildcard_recursive.py # Closed accordion by default")
227
  # --- Encrypt-Image ---
228
  get_ipython().system("sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js # Removes the weird text in webui")
 
 
229
  del cap
230
 
231
 
 
281
  print(f"\033[33mFILE NAME: \033[34m{file_name}\033[0m")
282
 
283
  if 'civitai' in url and image_url:
284
+ print(f"\033[32m[Preview IMG]:\033[0m {image_name} - {image_url}\n")
285
 
286
  ''' GET CivitAi API - DATA '''
287
 
 
425
  """ Formatted info output """
426
  model_name_or_basename = file_name if file_name else basename
427
  try:
428
+ format_output(clean_url, dst_dir, model_name_or_basename, image_name, image_url)
429
  except UnboundLocalError:
430
+ format_output(clean_url, dst_dir, model_name_or_basename, None, None)
431
 
432
  # =====================
433
  def run_aria2c(url, dst_dir, file_name=None, args="", header=""):
 
462
 
463
  # Separation of merged numbers
464
  def split_numbers(num_str, max_num):
465
+ result = []
466
+ i = 0
467
+ while i < len(num_str):
468
+ found = False
469
  for length in range(2, 0, -1):
470
+ if i + length <= len(num_str):
471
+ part = int(num_str[i:i + length])
472
  if part <= max_num:
473
+ result.append(part)
474
+ i += length
475
+ found = True
476
+ break
477
+ if not found:
478
+ break
479
+ return result
480
 
481
  def add_submodels(selection, num_selection, model_dict, dst_dir):
 
482
  if selection == "none":
483
+ return []
484
+ selected_models = []
485
+
486
  if selection == "ALL":
487
+ selected_models = sum(model_dict.values(), [])
 
488
  else:
489
  if selection in model_dict:
490
  selected_models.extend(model_dict[selection])
491
+
492
  nums = num_selection.replace(',', ' ').split()
493
  max_num = len(model_dict)
494
+ unique_nums = set()
495
 
496
  for num_part in nums:
497
  split_nums = split_numbers(num_part, max_num)
498
+ unique_nums.update(split_nums)
 
 
 
499
 
500
  for num in unique_nums:
501
  if 1 <= num <= max_num:
502
+ name = list(model_dict.keys())[num - 1]
503
  selected_models.extend(model_dict[name])
504
 
505
+ unique_models = {model['name']: model for model in selected_models}.values()
506
+
507
  for model in unique_models:
508
  model['dst_dir'] = dst_dir
509
 
510
+ return list(unique_models)
511
 
512
  def handle_submodels(selection, num_selection, model_dict, dst_dir, url):
513
  submodels = add_submodels(selection, num_selection, model_dict, dst_dir)
514
+ urls = []
515
  for submodel in submodels:
516
  if not inpainting_model and "inpainting" in submodel['name']:
517
  continue
518
+ urls.append(f"{submodel['url']} {submodel['dst_dir']} {submodel['name']}")
519
+
520
+ url += ", ".join(urls) + ', '
521
  return url
522
 
523
  url = handle_submodels(model, model_num, model_list, models_dir, url)
files_cells/python/en/launch_en.py CHANGED
@@ -82,7 +82,6 @@ clear_output()
82
  # ================= Automatic Fixing Path V3 ================
83
  paths_to_check = {
84
  "tagger_hf_cache_dir": f"{webui_path}/models/interrogators/",
85
- "additional_networks_extra_lora_path": f"{webui_path}/models/Lora/",
86
  "ad_extra_models_dir": f"{webui_path}/models/adetailer/",
87
  "sd_checkpoint_hash": "",
88
  "sd_model_checkpoint": "",
 
82
  # ================= Automatic Fixing Path V3 ================
83
  paths_to_check = {
84
  "tagger_hf_cache_dir": f"{webui_path}/models/interrogators/",
 
85
  "ad_extra_models_dir": f"{webui_path}/models/adetailer/",
86
  "sd_checkpoint_hash": "",
87
  "sd_model_checkpoint": "",
files_cells/python/ru/downloading_ru.py CHANGED
@@ -27,7 +27,7 @@ free_plan = os.getenv('FREE_PLAN')
27
  UI = os.getenv('SDW_UI')
28
  OLD_UI = os.getenv('SDW_OLD_UI')
29
 
30
- os.chdir(os.path.expanduser('~'))
31
 
32
  # ============ loading settings V4 =============
33
  def load_settings(path):
@@ -226,8 +226,6 @@ with capture.capture_output() as cap:
226
  get_ipython().system("sed -i '521s/open=\\(False\\|True\\)/open=False/' {webui_path}/extensions/Umi-AI-Wildcards/scripts/wildcard_recursive.py # Closed accordion by default")
227
  # --- Encrypt-Image ---
228
  get_ipython().system("sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js # Removes the weird text in webui")
229
- # --- Additional-Networks ---
230
- get_ipython().system('wget -O {webui_path}/extensions/additional-networks/scripts/metadata_editor.py {anxety_repos}/extensions/Additional-Networks/fix/metadata_editor.py # Fixing an error due to old style')
231
  del cap
232
 
233
 
@@ -283,7 +281,7 @@ def format_output(url, dst_dir, file_name, image_name=None, image_url=None):
283
  print(f"\033[33mFILE NAME: \033[34m{file_name}\033[0m")
284
 
285
  if 'civitai' in url and image_url:
286
- print(f"\033[32m[Preview DL]:\033[0m {image_name} - {image_url}\n")
287
 
288
  ''' GET CivitAi API - DATA '''
289
 
@@ -427,9 +425,9 @@ def manual_download(url, dst_dir, file_name, prefix=None):
427
  """ Formatted info output """
428
  model_name_or_basename = file_name if file_name else basename
429
  try:
430
- format_output(clean_url or url, dst_dir, model_name_or_basename, image_name, image_url)
431
  except UnboundLocalError:
432
- format_output(clean_url or url, dst_dir, model_name_or_basename, None, None)
433
 
434
  # =====================
435
  def run_aria2c(url, dst_dir, file_name=None, args="", header=""):
 
27
  UI = os.getenv('SDW_UI')
28
  OLD_UI = os.getenv('SDW_OLD_UI')
29
 
30
+ os.chdir(root_path)
31
 
32
  # ============ loading settings V4 =============
33
  def load_settings(path):
 
226
  get_ipython().system("sed -i '521s/open=\\(False\\|True\\)/open=False/' {webui_path}/extensions/Umi-AI-Wildcards/scripts/wildcard_recursive.py # Closed accordion by default")
227
  # --- Encrypt-Image ---
228
  get_ipython().system("sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js # Removes the weird text in webui")
 
 
229
  del cap
230
 
231
 
 
281
  print(f"\033[33mFILE NAME: \033[34m{file_name}\033[0m")
282
 
283
  if 'civitai' in url and image_url:
284
+ print(f"\033[32m[Preview IMG]:\033[0m {image_name} - {image_url}\n")
285
 
286
  ''' GET CivitAi API - DATA '''
287
 
 
425
  """ Formatted info output """
426
  model_name_or_basename = file_name if file_name else basename
427
  try:
428
+ format_output(clean_url, dst_dir, model_name_or_basename, image_name, image_url)
429
  except UnboundLocalError:
430
+ format_output(clean_url, dst_dir, model_name_or_basename, None, None)
431
 
432
  # =====================
433
  def run_aria2c(url, dst_dir, file_name=None, args="", header=""):
files_cells/python/ru/launch_ru.py CHANGED
@@ -82,7 +82,6 @@ clear_output()
82
  # ================= Automatic Fixing Path V3 ================
83
  paths_to_check = {
84
  "tagger_hf_cache_dir": f"{webui_path}/models/interrogators/",
85
- "additional_networks_extra_lora_path": f"{webui_path}/models/Lora/",
86
  "ad_extra_models_dir": f"{webui_path}/models/adetailer/",
87
  "sd_checkpoint_hash": "",
88
  "sd_model_checkpoint": "",
 
82
  # ================= Automatic Fixing Path V3 ================
83
  paths_to_check = {
84
  "tagger_hf_cache_dir": f"{webui_path}/models/interrogators/",
 
85
  "ad_extra_models_dir": f"{webui_path}/models/adetailer/",
86
  "sd_checkpoint_hash": "",
87
  "sd_model_checkpoint": "",