πβ¨ποΈ | I kinda fixed a lot of things :3
Browse files
files_cells/notebooks/en/downloading_en.ipynb
CHANGED
@@ -473,19 +473,44 @@
|
|
473 |
"\n",
|
474 |
"''' SubModels - Added URLs '''\n",
|
475 |
"\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
476 |
"def add_submodels(selection, num_selection, model_dict, dst_dir):\n",
|
|
|
477 |
" if selection == \"none\":\n",
|
478 |
-
" return
|
479 |
" if selection == \"ALL\":\n",
|
480 |
-
" all_models = []\n",
|
481 |
" for models in model_dict.values():\n",
|
482 |
-
"
|
483 |
-
" selected_models = all_models\n",
|
484 |
" else:\n",
|
485 |
-
"
|
486 |
-
"
|
487 |
-
"
|
488 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
489 |
" name = list(model_dict)[num - 1]\n",
|
490 |
" selected_models.extend(model_dict[name])\n",
|
491 |
"\n",
|
|
|
473 |
"\n",
|
474 |
"''' SubModels - Added URLs '''\n",
|
475 |
"\n",
|
476 |
+
"# Separation of merged numbers\n",
|
477 |
+
"def split_numbers(num_str, max_num):\n",
|
478 |
+
" def helper(s):\n",
|
479 |
+
" if not s:\n",
|
480 |
+
" return []\n",
|
481 |
+
" for length in range(2, 0, -1):\n",
|
482 |
+
" if len(s) >= length:\n",
|
483 |
+
" part = int(s[:length])\n",
|
484 |
+
" if part <= max_num:\n",
|
485 |
+
" result = helper(s[length:])\n",
|
486 |
+
" if result is not None:\n",
|
487 |
+
" return [part] + result\n",
|
488 |
+
" return None\n",
|
489 |
+
" return helper(num_str)\n",
|
490 |
+
"\n",
|
491 |
"def add_submodels(selection, num_selection, model_dict, dst_dir):\n",
|
492 |
+
" selected_models = []\n",
|
493 |
" if selection == \"none\":\n",
|
494 |
+
" return selected_models\n",
|
495 |
" if selection == \"ALL\":\n",
|
|
|
496 |
" for models in model_dict.values():\n",
|
497 |
+
" selected_models.extend(models)\n",
|
|
|
498 |
" else:\n",
|
499 |
+
" if selection in model_dict:\n",
|
500 |
+
" selected_models.extend(model_dict[selection])\n",
|
501 |
+
" nums = num_selection.replace(',', ' ').split()\n",
|
502 |
+
" max_num = len(model_dict)\n",
|
503 |
+
" selected_nums = []\n",
|
504 |
+
"\n",
|
505 |
+
" for num_part in nums:\n",
|
506 |
+
" split_nums = split_numbers(num_part, max_num)\n",
|
507 |
+
" if split_nums:\n",
|
508 |
+
" selected_nums.extend(split_nums)\n",
|
509 |
+
"\n",
|
510 |
+
" unique_nums = list(set(selected_nums))\n",
|
511 |
+
"\n",
|
512 |
+
" for num in unique_nums:\n",
|
513 |
+
" if 1 <= num <= max_num:\n",
|
514 |
" name = list(model_dict)[num - 1]\n",
|
515 |
" selected_models.extend(model_dict[name])\n",
|
516 |
"\n",
|
files_cells/notebooks/ru/downloading_ru.ipynb
CHANGED
@@ -473,19 +473,44 @@
|
|
473 |
"\n",
|
474 |
"''' SubModels - Added URLs '''\n",
|
475 |
"\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
476 |
"def add_submodels(selection, num_selection, model_dict, dst_dir):\n",
|
|
|
477 |
" if selection == \"none\":\n",
|
478 |
-
" return
|
479 |
" if selection == \"ALL\":\n",
|
480 |
-
" all_models = []\n",
|
481 |
" for models in model_dict.values():\n",
|
482 |
-
"
|
483 |
-
" selected_models = all_models\n",
|
484 |
" else:\n",
|
485 |
-
"
|
486 |
-
"
|
487 |
-
"
|
488 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
489 |
" name = list(model_dict)[num - 1]\n",
|
490 |
" selected_models.extend(model_dict[name])\n",
|
491 |
"\n",
|
|
|
473 |
"\n",
|
474 |
"''' SubModels - Added URLs '''\n",
|
475 |
"\n",
|
476 |
+
"# Separation of merged numbers\n",
|
477 |
+
"def split_numbers(num_str, max_num):\n",
|
478 |
+
" def helper(s):\n",
|
479 |
+
" if not s:\n",
|
480 |
+
" return []\n",
|
481 |
+
" for length in range(2, 0, -1):\n",
|
482 |
+
" if len(s) >= length:\n",
|
483 |
+
" part = int(s[:length])\n",
|
484 |
+
" if part <= max_num:\n",
|
485 |
+
" result = helper(s[length:])\n",
|
486 |
+
" if result is not None:\n",
|
487 |
+
" return [part] + result\n",
|
488 |
+
" return None\n",
|
489 |
+
" return helper(num_str)\n",
|
490 |
+
"\n",
|
491 |
"def add_submodels(selection, num_selection, model_dict, dst_dir):\n",
|
492 |
+
" selected_models = []\n",
|
493 |
" if selection == \"none\":\n",
|
494 |
+
" return selected_models\n",
|
495 |
" if selection == \"ALL\":\n",
|
|
|
496 |
" for models in model_dict.values():\n",
|
497 |
+
" selected_models.extend(models)\n",
|
|
|
498 |
" else:\n",
|
499 |
+
" if selection in model_dict:\n",
|
500 |
+
" selected_models.extend(model_dict[selection])\n",
|
501 |
+
" nums = num_selection.replace(',', ' ').split()\n",
|
502 |
+
" max_num = len(model_dict)\n",
|
503 |
+
" selected_nums = []\n",
|
504 |
+
"\n",
|
505 |
+
" for num_part in nums:\n",
|
506 |
+
" split_nums = split_numbers(num_part, max_num)\n",
|
507 |
+
" if split_nums:\n",
|
508 |
+
" selected_nums.extend(split_nums)\n",
|
509 |
+
"\n",
|
510 |
+
" unique_nums = list(set(selected_nums))\n",
|
511 |
+
"\n",
|
512 |
+
" for num in unique_nums:\n",
|
513 |
+
" if 1 <= num <= max_num:\n",
|
514 |
" name = list(model_dict)[num - 1]\n",
|
515 |
" selected_models.extend(model_dict[name])\n",
|
516 |
"\n",
|
files_cells/python/en/downloading_en.py
CHANGED
@@ -463,19 +463,44 @@ def manual_download(url, dst_dir, file_name, prefix=None):
|
|
463 |
|
464 |
''' SubModels - Added URLs '''
|
465 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
def add_submodels(selection, num_selection, model_dict, dst_dir):
|
|
|
467 |
if selection == "none":
|
468 |
-
return
|
469 |
if selection == "ALL":
|
470 |
-
all_models = []
|
471 |
for models in model_dict.values():
|
472 |
-
|
473 |
-
selected_models = all_models
|
474 |
else:
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
name = list(model_dict)[num - 1]
|
480 |
selected_models.extend(model_dict[name])
|
481 |
|
|
|
463 |
|
464 |
''' SubModels - Added URLs '''
|
465 |
|
466 |
+
# Separation of merged numbers
|
467 |
+
def split_numbers(num_str, max_num):
|
468 |
+
def helper(s):
|
469 |
+
if not s:
|
470 |
+
return []
|
471 |
+
for length in range(2, 0, -1):
|
472 |
+
if len(s) >= length:
|
473 |
+
part = int(s[:length])
|
474 |
+
if part <= max_num:
|
475 |
+
result = helper(s[length:])
|
476 |
+
if result is not None:
|
477 |
+
return [part] + result
|
478 |
+
return None
|
479 |
+
return helper(num_str)
|
480 |
+
|
481 |
def add_submodels(selection, num_selection, model_dict, dst_dir):
|
482 |
+
selected_models = []
|
483 |
if selection == "none":
|
484 |
+
return selected_models
|
485 |
if selection == "ALL":
|
|
|
486 |
for models in model_dict.values():
|
487 |
+
selected_models.extend(models)
|
|
|
488 |
else:
|
489 |
+
if selection in model_dict:
|
490 |
+
selected_models.extend(model_dict[selection])
|
491 |
+
nums = num_selection.replace(',', ' ').split()
|
492 |
+
max_num = len(model_dict)
|
493 |
+
selected_nums = []
|
494 |
+
|
495 |
+
for num_part in nums:
|
496 |
+
split_nums = split_numbers(num_part, max_num)
|
497 |
+
if split_nums:
|
498 |
+
selected_nums.extend(split_nums)
|
499 |
+
|
500 |
+
unique_nums = list(set(selected_nums))
|
501 |
+
|
502 |
+
for num in unique_nums:
|
503 |
+
if 1 <= num <= max_num:
|
504 |
name = list(model_dict)[num - 1]
|
505 |
selected_models.extend(model_dict[name])
|
506 |
|
files_cells/python/ru/downloading_ru.py
CHANGED
@@ -463,19 +463,44 @@ def manual_download(url, dst_dir, file_name, prefix=None):
|
|
463 |
|
464 |
''' SubModels - Added URLs '''
|
465 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
def add_submodels(selection, num_selection, model_dict, dst_dir):
|
|
|
467 |
if selection == "none":
|
468 |
-
return
|
469 |
if selection == "ALL":
|
470 |
-
all_models = []
|
471 |
for models in model_dict.values():
|
472 |
-
|
473 |
-
selected_models = all_models
|
474 |
else:
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
name = list(model_dict)[num - 1]
|
480 |
selected_models.extend(model_dict[name])
|
481 |
|
|
|
463 |
|
464 |
''' SubModels - Added URLs '''
|
465 |
|
466 |
+
# Separation of merged numbers
|
467 |
+
def split_numbers(num_str, max_num):
|
468 |
+
def helper(s):
|
469 |
+
if not s:
|
470 |
+
return []
|
471 |
+
for length in range(2, 0, -1):
|
472 |
+
if len(s) >= length:
|
473 |
+
part = int(s[:length])
|
474 |
+
if part <= max_num:
|
475 |
+
result = helper(s[length:])
|
476 |
+
if result is not None:
|
477 |
+
return [part] + result
|
478 |
+
return None
|
479 |
+
return helper(num_str)
|
480 |
+
|
481 |
def add_submodels(selection, num_selection, model_dict, dst_dir):
|
482 |
+
selected_models = []
|
483 |
if selection == "none":
|
484 |
+
return selected_models
|
485 |
if selection == "ALL":
|
|
|
486 |
for models in model_dict.values():
|
487 |
+
selected_models.extend(models)
|
|
|
488 |
else:
|
489 |
+
if selection in model_dict:
|
490 |
+
selected_models.extend(model_dict[selection])
|
491 |
+
nums = num_selection.replace(',', ' ').split()
|
492 |
+
max_num = len(model_dict)
|
493 |
+
selected_nums = []
|
494 |
+
|
495 |
+
for num_part in nums:
|
496 |
+
split_nums = split_numbers(num_part, max_num)
|
497 |
+
if split_nums:
|
498 |
+
selected_nums.extend(split_nums)
|
499 |
+
|
500 |
+
unique_nums = list(set(selected_nums))
|
501 |
+
|
502 |
+
for num in unique_nums:
|
503 |
+
if 1 <= num <= max_num:
|
504 |
name = list(model_dict)[num - 1]
|
505 |
selected_models.extend(model_dict[name])
|
506 |
|
modules/models_data.py
CHANGED
@@ -8,12 +8,12 @@ model_list = {
|
|
8 |
{"url": "https://civitai.com/api/download/models/363850", "name": "BluMix_V7-inpainting.safetensors"}
|
9 |
],
|
10 |
"3.Cetus-Mix [Anime] [V4] + INP": [
|
11 |
-
{"url": "https://
|
12 |
-
{"url": "https://
|
13 |
],
|
14 |
"4.Counterfeit [Anime] [V3] + INP": [
|
15 |
-
{"url": "https://huggingface.co/
|
16 |
-
{"url": "https://
|
17 |
],
|
18 |
"5.CuteColor [Anime] [V3]": [
|
19 |
{"url": "https://civitai.com/api/download/models/138754", "name": "CuteColor_V3.safetensors"}
|
@@ -31,16 +31,21 @@ model_list = {
|
|
31 |
{"url": "https://civitai.com/api/download/models/120702", "name": "MeinaMix_V11-inpainting.safetensors"}
|
32 |
],
|
33 |
"9.Mix-Pro [Anime] [V4] + INP": [
|
34 |
-
{"url": "https://
|
35 |
-
{"url": "https://
|
|
|
|
|
36 |
]
|
37 |
}
|
38 |
|
39 |
vae_list = {
|
40 |
-
"1.Anime.vae": [
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
44 |
"5.WD.vae": [{"url": "https://huggingface.co/NoCrypt/resources/resolve/main/VAE/wd.vae.safetensors", "name": "WD.vae.safetensors"}]
|
45 |
}
|
46 |
|
|
|
8 |
{"url": "https://civitai.com/api/download/models/363850", "name": "BluMix_V7-inpainting.safetensors"}
|
9 |
],
|
10 |
"3.Cetus-Mix [Anime] [V4] + INP": [
|
11 |
+
{"url": "https://huggingface.co/fp16-guy/Cetus-Mix_v4_fp16_cleaned/resolve/main/cetusMix_v4_fp16.safetensors", "name": "CetusMix_V4.safetensors"},
|
12 |
+
{"url": "https://huggingface.co/fp16-guy/Cetus-Mix_v4_fp16_cleaned/resolve/main/cetusMix_v4_inp_fp16.safetensors", "name": "CetusMix_V4-inpainting.safetensors"}
|
13 |
],
|
14 |
"4.Counterfeit [Anime] [V3] + INP": [
|
15 |
+
{"url": "https://huggingface.co/fp16-guy/Counterfeit-V3.0_fp16_cleaned/resolve/main/CounterfeitV30_v30_fp16.safetensors", "name": "Counterfeit_V3.safetensors"},
|
16 |
+
{"url": "https://huggingface.co/fp16-guy/Counterfeit-V3.0_fp16_cleaned/resolve/main/CounterfeitV30_v30_inp_fp16.safetensors", "name": "Counterfeit_V3-inpainting.safetensors"}
|
17 |
],
|
18 |
"5.CuteColor [Anime] [V3]": [
|
19 |
{"url": "https://civitai.com/api/download/models/138754", "name": "CuteColor_V3.safetensors"}
|
|
|
31 |
{"url": "https://civitai.com/api/download/models/120702", "name": "MeinaMix_V11-inpainting.safetensors"}
|
32 |
],
|
33 |
"9.Mix-Pro [Anime] [V4] + INP": [
|
34 |
+
{"url": "https://huggingface.co/fp16-guy/MIX-Pro-V4_fp16_cleaned/resolve/main/mixProV4_v4_fp16.safetensors", "name": "MixPro_V4.safetensors"},
|
35 |
+
{"url": "https://huggingface.co/fp16-guy/MIX-Pro-V4_fp16_cleaned/resolve/main/mixProV4_v4_inp_fp16.safetensors", "name": "MixPro_V4-inpainting.safetensors"},
|
36 |
+
{"url": "https://huggingface.co/fp16-guy/MIX-Pro-V4.5_fp16_cleaned/resolve/main/mixProV45Colorbox_v45_fp16.safetensors", "name": "MixPro_V4_5.safetensors"},
|
37 |
+
{"url": "https://huggingface.co/fp16-guy/MIX-Pro-V4.5_fp16_cleaned/resolve/main/mixProV45Colorbox_v45_inp_fp16.safetensors", "name": "MixPro_V4_5-inpainting.safetensors"}
|
38 |
]
|
39 |
}
|
40 |
|
41 |
vae_list = {
|
42 |
+
"1.Anime.vae": [
|
43 |
+
{"url": "https://huggingface.co/fp16-guy/anything_kl-f8-anime2_vae-ft-mse-840000-ema-pruned_blessed_clearvae_fp16_cleaned/resolve/main/kl-f8-anime2_fp16.safetensors", "name": "Anime-kl-f8.vae.safetensors"},
|
44 |
+
{"url": "https://huggingface.co/fp16-guy/anything_kl-f8-anime2_vae-ft-mse-840000-ema-pruned_blessed_clearvae_fp16_cleaned/resolve/main/vae-ft-mse-840000-ema-pruned_fp16.safetensors", "name": "Anime-mse.vae.safetensors"}
|
45 |
+
],
|
46 |
+
"2.Anything.vae": [{"url": "https://huggingface.co/fp16-guy/anything_kl-f8-anime2_vae-ft-mse-840000-ema-pruned_blessed_clearvae_fp16_cleaned/resolve/main/anything_fp16.safetensors", "name": "Anything.vae.safetensors"}],
|
47 |
+
"3.Blessed2.vae": [{"url": "https://huggingface.co/fp16-guy/anything_kl-f8-anime2_vae-ft-mse-840000-ema-pruned_blessed_clearvae_fp16_cleaned/resolve/main/blessed2_fp16.safetensors", "name": "Blessed2.vae.safetensors"}],
|
48 |
+
"4.ClearVae.vae": [{"url": "https://huggingface.co/fp16-guy/anything_kl-f8-anime2_vae-ft-mse-840000-ema-pruned_blessed_clearvae_fp16_cleaned/resolve/main/ClearVAE_V2.3_fp16.safetensors", "name": "ClearVae_23.vae.safetensors"}],
|
49 |
"5.WD.vae": [{"url": "https://huggingface.co/NoCrypt/resources/resolve/main/VAE/wd.vae.safetensors", "name": "WD.vae.safetensors"}]
|
50 |
}
|
51 |
|