NagisaNao commited on
Commit
ccb5633
·
verified ·
1 Parent(s): cb1cba1

~update model/vae`

Browse files
files_cells/notebooks/en/downloading_en.ipynb CHANGED
@@ -214,8 +214,8 @@
214
  "print(\"📦 Downloading models and stuff...\", end='')\n",
215
  "model_list = {\n",
216
  " \"1.Anime (by Xpuct) + INP\": [\n",
217
- " {\"url\": \"https://huggingface.co/XpucT/Anime/resolve/main/Anime_v1.safetensors\", \"name\": \"Anime.safetensors\"},\n",
218
- " {\"url\": \"https://huggingface.co/XpucT/Anime/resolve/main/Anime_v1-inpainting.safetensors\", \"name\": \"Anime-inpainting.safetensors\"}\n",
219
  " ],\n",
220
  " \"2.Cetus-Mix [Anime] [V4] + INP\": [\n",
221
  " {\"url\": \"https://civitai.com/api/download/models/130298\", \"name\": \"CetusMix_V4.safetensors\"},\n",
@@ -245,11 +245,16 @@
245
  " ]\n",
246
  "}\n",
247
  "\n",
 
248
  "vae_list = {\n",
249
- " \"1.Anime.vae\": [{\"url\": \"https://civitai.com/api/download/models/131654\", \"name\": \"Anime.vae.safetensors\"}],\n",
250
- " \"2.Anything.vae\": [{\"url\": \"https://huggingface.co/NoCrypt/resources/resolve/main/VAE/any.vae.safetensors\", \"name\": \"Anything.vae.safetensors\"}],\n",
251
- " \"3.blessed2.vae\": [{\"url\": \"https://huggingface.co/NoCrypt/resources/resolve/main/VAE/blessed2.vae.safetensors\", \"name\": \"Blessed2.vae.safetensors\"}],\n",
252
- " \"4.WD.vae\": [{\"url\": \"https://huggingface.co/NoCrypt/resources/resolve/main/VAE/wd.vae.safetensors\", \"name\": \"WD.vae.safetensors\"}]\n",
 
 
 
 
253
  "}\n",
254
  "\n",
255
  "controlnet_list = {\n",
@@ -421,40 +426,32 @@
421
  "\n",
422
  "def process_file_download(file_url):\n",
423
  " global Model_url, Vae_url, LoRA_url, Embedding_url, Extensions_url\n",
424
- "\n",
425
- " tags = ['model', 'vae', 'embed', 'lora', 'extension']\n",
426
- " current_tag = None\n",
 
 
 
 
427
  "\n",
428
  " if file_url.startswith(\"http\"):\n",
429
  " if \"blob\" in file_url:\n",
430
  " file_url = file_url.replace(\"blob\", \"raw\")\n",
431
- "\n",
432
  " response = requests.get(file_url)\n",
433
  " lines = response.text.split('\\n')\n",
434
  " else:\n",
435
  " with open(file_url, 'r') as file:\n",
436
  " lines = file.readlines()\n",
437
  "\n",
 
438
  " for line in lines:\n",
439
- " if not line.strip():\n",
440
- " continue\n",
441
- "\n",
442
  " if line.strip().startswith('#'):\n",
443
- " current_tag = next((tag for tag in tags if tag in line.lower()), None)\n",
444
- " elif current_tag:\n",
445
  " urls = [url.strip() for url in line.split()]\n",
446
  " for url in urls:\n",
447
- " if url and (url.startswith(\"http\") or url.startswith(\"https\")):\n",
448
- " if current_tag == 'model':\n",
449
- " Model_url += \", \" + url\n",
450
- " elif current_tag == 'vae':\n",
451
- " Vae_url += \", \" + url\n",
452
- " elif current_tag == 'embed':\n",
453
- " Embedding_url += \", \" + url\n",
454
- " elif current_tag == 'lora':\n",
455
- " LoRA_url += \", \" + url\n",
456
- " elif current_tag == 'extension':\n",
457
- " Extensions_url += \", \" + url\n",
458
  "\n",
459
  "# fix all possible errors/options and function call\n",
460
  "if custom_file_urls:\n",
@@ -536,8 +533,8 @@
536
  "# === OTHER ===\n",
537
  "# Downlaod discord tags UmiWildcards\n",
538
  "files_umi = [\n",
539
- " \"https://huggingface.co/NagisaNao/test/resolve/main/extensions/UmiWildacrd/discord/200_pan_gen.txt\",\n",
540
- " \"https://huggingface.co/NagisaNao/test/resolve/main/extensions/UmiWildacrd/discord/150_bra_gen.txt\"\n",
541
  "]\n",
542
  "save_dir_path = f\"{webui_path}/extensions/Umi-AI-Wildcards/wildcards/discord\"\n",
543
  "\n",
 
214
  "print(\"📦 Downloading models and stuff...\", end='')\n",
215
  "model_list = {\n",
216
  " \"1.Anime (by Xpuct) + INP\": [\n",
217
+ " {\"url\": \"https://huggingface.co/XpucT/Anime/resolve/main/Anime_v2.safetensors\", \"name\": \"Anime_v2.safetensors\"},\n",
218
+ " {\"url\": \"https://huggingface.co/XpucT/Anime/resolve/main/Anime_v2-inpainting.safetensors\", \"name\": \"Anime_v2-inpainting.safetensors\"}\n",
219
  " ],\n",
220
  " \"2.Cetus-Mix [Anime] [V4] + INP\": [\n",
221
  " {\"url\": \"https://civitai.com/api/download/models/130298\", \"name\": \"CetusMix_V4.safetensors\"},\n",
 
245
  " ]\n",
246
  "}\n",
247
  "\n",
248
+ "# 1-4 (fp16/cleaned)\n",
249
  "vae_list = {\n",
250
+ " \"1.Anime.vae\": [\n",
251
+ " {\"url\": \"https://civitai.com/api/download/models/131654\", \"name\": \"Anime.vae.safetensors\"},\n",
252
+ " {\"url\": \"https://civitai.com/api/download/models/131658\", \"name\": \"vae-ft-mse.vae.safetensors\"}\n",
253
+ " ],\n",
254
+ " \"2.Anything.vae\": [{\"url\": \"https://civitai.com/api/download/models/131656\", \"name\": \"Anything.vae.safetensors\"}],\n",
255
+ " \"3.Blessed2.vae\": [{\"url\": \"https://civitai.com/api/download/models/142467\", \"name\": \"Blessed2.vae.safetensors\"}],\n",
256
+ " \"4.ClearVae.vae\": [{\"url\": \"https://civitai.com/api/download/models/133362\", \"name\": \"ClearVae_23.vae.safetensors\"}],\n",
257
+ " \"5.WD.vae\": [{\"url\": \"https://huggingface.co/NoCrypt/resources/resolve/main/VAE/wd.vae.safetensors\", \"name\": \"WD.vae.safetensors\"}]\n",
258
  "}\n",
259
  "\n",
260
  "controlnet_list = {\n",
 
426
  "\n",
427
  "def process_file_download(file_url):\n",
428
  " global Model_url, Vae_url, LoRA_url, Embedding_url, Extensions_url\n",
429
+ " urls_dict = {\n",
430
+ " 'model': 'Model_url',\n",
431
+ " 'vae': 'Vae_url',\n",
432
+ " 'embed': 'Embedding_url',\n",
433
+ " 'lora': 'LoRA_url',\n",
434
+ " 'extension': 'Extensions_url'\n",
435
+ " }\n",
436
  "\n",
437
  " if file_url.startswith(\"http\"):\n",
438
  " if \"blob\" in file_url:\n",
439
  " file_url = file_url.replace(\"blob\", \"raw\")\n",
 
440
  " response = requests.get(file_url)\n",
441
  " lines = response.text.split('\\n')\n",
442
  " else:\n",
443
  " with open(file_url, 'r') as file:\n",
444
  " lines = file.readlines()\n",
445
  "\n",
446
+ " current_tag = None\n",
447
  " for line in lines:\n",
 
 
 
448
  " if line.strip().startswith('#'):\n",
449
+ " current_tag = next((tag for tag in urls_dict if tag in line.lower()), None)\n",
450
+ " elif current_tag and line.strip():\n",
451
  " urls = [url.strip() for url in line.split()]\n",
452
  " for url in urls:\n",
453
+ " if url.startswith(\"http\"):\n",
454
+ " globals()[urls_dict[current_tag]] += \", \" + url\n",
 
 
 
 
 
 
 
 
 
455
  "\n",
456
  "# fix all possible errors/options and function call\n",
457
  "if custom_file_urls:\n",
 
533
  "# === OTHER ===\n",
534
  "# Downlaod discord tags UmiWildcards\n",
535
  "files_umi = [\n",
536
+ " \"https://huggingface.co/NagisaNao/fast_repo/resolve/main/extensions/UmiWildacrd/discord/200_pan_gen.txt\",\n",
537
+ " \"https://huggingface.co/NagisaNao/fast_repo/resolve/main/extensions/UmiWildacrd/discord/150_bra_gen.txt\"\n",
538
  "]\n",
539
  "save_dir_path = f\"{webui_path}/extensions/Umi-AI-Wildcards/wildcards/discord\"\n",
540
  "\n",
files_cells/notebooks/en/widgets_en.ipynb CHANGED
@@ -330,9 +330,10 @@
330
  "vae_options = ['none',\n",
331
  " '1.Anime.vae',\n",
332
  " '2.Anything.vae',\n",
333
- " '3.blessed2.vae',\n",
334
- " '4.WD.vae']\n",
335
- "Vae_widget = widgets.Dropdown(options=vae_options, value='1.Anime.vae', description='Vae:', style=style, layout=layout)\n",
 
336
  "Vae_Num_widget = widgets.Text(description='Vae number:', placeholder='Enter the vae numbers to be downloaded using comma/space.', style=style, layout=layout)\n",
337
  "\n",
338
  "display(widgets.VBox([vae_header, Vae_widget, Vae_Num_widget]).add_class(\"container\"))\n",
 
330
  "vae_options = ['none',\n",
331
  " '1.Anime.vae',\n",
332
  " '2.Anything.vae',\n",
333
+ " '3.Blessed2.vae',\n",
334
+ " '4.ClearVae.vae',\n",
335
+ " '5.WD.vae']\n",
336
+ "Vae_widget = widgets.Dropdown(options=vae_options, value='3.Blessed2.vae', description='Vae:', style=style, layout=layout)\n",
337
  "Vae_Num_widget = widgets.Text(description='Vae number:', placeholder='Enter the vae numbers to be downloaded using comma/space.', style=style, layout=layout)\n",
338
  "\n",
339
  "display(widgets.VBox([vae_header, Vae_widget, Vae_Num_widget]).add_class(\"container\"))\n",
files_cells/notebooks/ru/downloading_ru.ipynb CHANGED
@@ -214,8 +214,8 @@
214
  "print(\"📦 Скачивание моделей и прочего...\", end='')\n",
215
  "model_list = {\n",
216
  " \"1.Anime (by Xpuct) + INP\": [\n",
217
- " {\"url\": \"https://huggingface.co/XpucT/Anime/resolve/main/Anime_v1.safetensors\", \"name\": \"Anime.safetensors\"},\n",
218
- " {\"url\": \"https://huggingface.co/XpucT/Anime/resolve/main/Anime_v1-inpainting.safetensors\", \"name\": \"Anime-inpainting.safetensors\"}\n",
219
  " ],\n",
220
  " \"2.Cetus-Mix [Anime] [V4] + INP\": [\n",
221
  " {\"url\": \"https://civitai.com/api/download/models/130298\", \"name\": \"CetusMix_V4.safetensors\"},\n",
@@ -245,11 +245,16 @@
245
  " ]\n",
246
  "}\n",
247
  "\n",
 
248
  "vae_list = {\n",
249
- " \"1.Anime.vae\": [{\"url\": \"https://civitai.com/api/download/models/131654\", \"name\": \"Anime.vae.safetensors\"}],\n",
250
- " \"2.Anything.vae\": [{\"url\": \"https://huggingface.co/NoCrypt/resources/resolve/main/VAE/any.vae.safetensors\", \"name\": \"Anything.vae.safetensors\"}],\n",
251
- " \"3.blessed2.vae\": [{\"url\": \"https://huggingface.co/NoCrypt/resources/resolve/main/VAE/blessed2.vae.safetensors\", \"name\": \"Blessed2.vae.safetensors\"}],\n",
252
- " \"4.WD.vae\": [{\"url\": \"https://huggingface.co/NoCrypt/resources/resolve/main/VAE/wd.vae.safetensors\", \"name\": \"WD.vae.safetensors\"}]\n",
 
 
 
 
253
  "}\n",
254
  "\n",
255
  "controlnet_list = {\n",
@@ -421,40 +426,32 @@
421
  "\n",
422
  "def process_file_download(file_url):\n",
423
  " global Model_url, Vae_url, LoRA_url, Embedding_url, Extensions_url\n",
424
- "\n",
425
- " tags = ['model', 'vae', 'embed', 'lora', 'extension']\n",
426
- " current_tag = None\n",
 
 
 
 
427
  "\n",
428
  " if file_url.startswith(\"http\"):\n",
429
  " if \"blob\" in file_url:\n",
430
  " file_url = file_url.replace(\"blob\", \"raw\")\n",
431
- "\n",
432
  " response = requests.get(file_url)\n",
433
  " lines = response.text.split('\\n')\n",
434
  " else:\n",
435
  " with open(file_url, 'r') as file:\n",
436
  " lines = file.readlines()\n",
437
  "\n",
 
438
  " for line in lines:\n",
439
- " if not line.strip():\n",
440
- " continue\n",
441
- "\n",
442
  " if line.strip().startswith('#'):\n",
443
- " current_tag = next((tag for tag in tags if tag in line.lower()), None)\n",
444
- " elif current_tag:\n",
445
  " urls = [url.strip() for url in line.split()]\n",
446
  " for url in urls:\n",
447
- " if url and (url.startswith(\"http\") or url.startswith(\"https\")):\n",
448
- " if current_tag == 'model':\n",
449
- " Model_url += \", \" + url\n",
450
- " elif current_tag == 'vae':\n",
451
- " Vae_url += \", \" + url\n",
452
- " elif current_tag == 'embed':\n",
453
- " Embedding_url += \", \" + url\n",
454
- " elif current_tag == 'lora':\n",
455
- " LoRA_url += \", \" + url\n",
456
- " elif current_tag == 'extension':\n",
457
- " Extensions_url += \", \" + url\n",
458
  "\n",
459
  "# fix all possible errors/options and function call\n",
460
  "if custom_file_urls:\n",
@@ -536,8 +533,8 @@
536
  "# === OTHER ===\n",
537
  "# Downlaod discord tags UmiWildcards\n",
538
  "files_umi = [\n",
539
- " \"https://huggingface.co/NagisaNao/test/resolve/main/extensions/UmiWildacrd/discord/200_pan_gen.txt\",\n",
540
- " \"https://huggingface.co/NagisaNao/test/resolve/main/extensions/UmiWildacrd/discord/150_bra_gen.txt\"\n",
541
  "]\n",
542
  "save_dir_path = f\"{webui_path}/extensions/Umi-AI-Wildcards/wildcards/discord\"\n",
543
  "\n",
 
214
  "print(\"📦 Скачивание моделей и прочего...\", end='')\n",
215
  "model_list = {\n",
216
  " \"1.Anime (by Xpuct) + INP\": [\n",
217
+ " {\"url\": \"https://huggingface.co/XpucT/Anime/resolve/main/Anime_v2.safetensors\", \"name\": \"Anime_v2.safetensors\"},\n",
218
+ " {\"url\": \"https://huggingface.co/XpucT/Anime/resolve/main/Anime_v2-inpainting.safetensors\", \"name\": \"Anime_v2-inpainting.safetensors\"}\n",
219
  " ],\n",
220
  " \"2.Cetus-Mix [Anime] [V4] + INP\": [\n",
221
  " {\"url\": \"https://civitai.com/api/download/models/130298\", \"name\": \"CetusMix_V4.safetensors\"},\n",
 
245
  " ]\n",
246
  "}\n",
247
  "\n",
248
+ "# 1-4 (fp16/cleaned)\n",
249
  "vae_list = {\n",
250
+ " \"1.Anime.vae\": [\n",
251
+ " {\"url\": \"https://civitai.com/api/download/models/131654\", \"name\": \"Anime.vae.safetensors\"},\n",
252
+ " {\"url\": \"https://civitai.com/api/download/models/131658\", \"name\": \"vae-ft-mse.vae.safetensors\"}\n",
253
+ " ],\n",
254
+ " \"2.Anything.vae\": [{\"url\": \"https://civitai.com/api/download/models/131656\", \"name\": \"Anything.vae.safetensors\"}],\n",
255
+ " \"3.Blessed2.vae\": [{\"url\": \"https://civitai.com/api/download/models/142467\", \"name\": \"Blessed2.vae.safetensors\"}],\n",
256
+ " \"4.ClearVae.vae\": [{\"url\": \"https://civitai.com/api/download/models/133362\", \"name\": \"ClearVae_23.vae.safetensors\"}],\n",
257
+ " \"5.WD.vae\": [{\"url\": \"https://huggingface.co/NoCrypt/resources/resolve/main/VAE/wd.vae.safetensors\", \"name\": \"WD.vae.safetensors\"}]\n",
258
  "}\n",
259
  "\n",
260
  "controlnet_list = {\n",
 
426
  "\n",
427
  "def process_file_download(file_url):\n",
428
  " global Model_url, Vae_url, LoRA_url, Embedding_url, Extensions_url\n",
429
+ " urls_dict = {\n",
430
+ " 'model': 'Model_url',\n",
431
+ " 'vae': 'Vae_url',\n",
432
+ " 'embed': 'Embedding_url',\n",
433
+ " 'lora': 'LoRA_url',\n",
434
+ " 'extension': 'Extensions_url'\n",
435
+ " }\n",
436
  "\n",
437
  " if file_url.startswith(\"http\"):\n",
438
  " if \"blob\" in file_url:\n",
439
  " file_url = file_url.replace(\"blob\", \"raw\")\n",
 
440
  " response = requests.get(file_url)\n",
441
  " lines = response.text.split('\\n')\n",
442
  " else:\n",
443
  " with open(file_url, 'r') as file:\n",
444
  " lines = file.readlines()\n",
445
  "\n",
446
+ " current_tag = None\n",
447
  " for line in lines:\n",
 
 
 
448
  " if line.strip().startswith('#'):\n",
449
+ " current_tag = next((tag for tag in urls_dict if tag in line.lower()), None)\n",
450
+ " elif current_tag and line.strip():\n",
451
  " urls = [url.strip() for url in line.split()]\n",
452
  " for url in urls:\n",
453
+ " if url.startswith(\"http\"):\n",
454
+ " globals()[urls_dict[current_tag]] += \", \" + url\n",
 
 
 
 
 
 
 
 
 
455
  "\n",
456
  "# fix all possible errors/options and function call\n",
457
  "if custom_file_urls:\n",
 
533
  "# === OTHER ===\n",
534
  "# Downlaod discord tags UmiWildcards\n",
535
  "files_umi = [\n",
536
+ " \"https://huggingface.co/NagisaNao/fast_repo/resolve/main/extensions/UmiWildacrd/discord/200_pan_gen.txt\",\n",
537
+ " \"https://huggingface.co/NagisaNao/fast_repo/resolve/main/extensions/UmiWildacrd/discord/150_bra_gen.txt\"\n",
538
  "]\n",
539
  "save_dir_path = f\"{webui_path}/extensions/Umi-AI-Wildcards/wildcards/discord\"\n",
540
  "\n",
files_cells/notebooks/ru/widgets_ru.ipynb CHANGED
@@ -330,9 +330,10 @@
330
  "vae_options = ['none',\n",
331
  " '1.Anime.vae',\n",
332
  " '2.Anything.vae',\n",
333
- " '3.blessed2.vae',\n",
334
- " '4.WD.vae']\n",
335
- "Vae_widget = widgets.Dropdown(options=vae_options, value='1.Anime.vae', description='Vae:', style=style, layout=layout)\n",
 
336
  "Vae_Num_widget = widgets.Text(description='Номер Vae:', placeholder='Введите номера vae для скачивания через запятую/пробел.', style=style, layout=layout)\n",
337
  "\n",
338
  "display(widgets.VBox([vae_header, Vae_widget, Vae_Num_widget]).add_class(\"container\"))\n",
 
330
  "vae_options = ['none',\n",
331
  " '1.Anime.vae',\n",
332
  " '2.Anything.vae',\n",
333
+ " '3.Blessed2.vae',\n",
334
+ " '4.ClearVae.vae',\n",
335
+ " '5.WD.vae']\n",
336
+ "Vae_widget = widgets.Dropdown(options=vae_options, value='3.Blessed2.vae', description='Vae:', style=style, layout=layout)\n",
337
  "Vae_Num_widget = widgets.Text(description='Номер Vae:', placeholder='Введите номера vae для скачивания через запятую/пробел.', style=style, layout=layout)\n",
338
  "\n",
339
  "display(widgets.VBox([vae_header, Vae_widget, Vae_Num_widget]).add_class(\"container\"))\n",
files_cells/python/en/downloading_en.py CHANGED
@@ -201,8 +201,8 @@ if commit_hash:
201
  print("📦 Downloading models and stuff...", end='')
202
  model_list = {
203
  "1.Anime (by Xpuct) + INP": [
204
- {"url": "https://huggingface.co/XpucT/Anime/resolve/main/Anime_v1.safetensors", "name": "Anime.safetensors"},
205
- {"url": "https://huggingface.co/XpucT/Anime/resolve/main/Anime_v1-inpainting.safetensors", "name": "Anime-inpainting.safetensors"}
206
  ],
207
  "2.Cetus-Mix [Anime] [V4] + INP": [
208
  {"url": "https://civitai.com/api/download/models/130298", "name": "CetusMix_V4.safetensors"},
@@ -232,11 +232,16 @@ model_list = {
232
  ]
233
  }
234
 
 
235
  vae_list = {
236
- "1.Anime.vae": [{"url": "https://civitai.com/api/download/models/131654", "name": "Anime.vae.safetensors"}],
237
- "2.Anything.vae": [{"url": "https://huggingface.co/NoCrypt/resources/resolve/main/VAE/any.vae.safetensors", "name": "Anything.vae.safetensors"}],
238
- "3.blessed2.vae": [{"url": "https://huggingface.co/NoCrypt/resources/resolve/main/VAE/blessed2.vae.safetensors", "name": "Blessed2.vae.safetensors"}],
239
- "4.WD.vae": [{"url": "https://huggingface.co/NoCrypt/resources/resolve/main/VAE/wd.vae.safetensors", "name": "WD.vae.safetensors"}]
 
 
 
 
240
  }
241
 
242
  controlnet_list = {
@@ -408,40 +413,32 @@ for submodel in submodels:
408
 
409
  def process_file_download(file_url):
410
  global Model_url, Vae_url, LoRA_url, Embedding_url, Extensions_url
411
-
412
- tags = ['model', 'vae', 'embed', 'lora', 'extension']
413
- current_tag = None
 
 
 
 
414
 
415
  if file_url.startswith("http"):
416
  if "blob" in file_url:
417
  file_url = file_url.replace("blob", "raw")
418
-
419
  response = requests.get(file_url)
420
  lines = response.text.split('\n')
421
  else:
422
  with open(file_url, 'r') as file:
423
  lines = file.readlines()
424
 
 
425
  for line in lines:
426
- if not line.strip():
427
- continue
428
-
429
  if line.strip().startswith('#'):
430
- current_tag = next((tag for tag in tags if tag in line.lower()), None)
431
- elif current_tag:
432
  urls = [url.strip() for url in line.split()]
433
  for url in urls:
434
- if url and (url.startswith("http") or url.startswith("https")):
435
- if current_tag == 'model':
436
- Model_url += ", " + url
437
- elif current_tag == 'vae':
438
- Vae_url += ", " + url
439
- elif current_tag == 'embed':
440
- Embedding_url += ", " + url
441
- elif current_tag == 'lora':
442
- LoRA_url += ", " + url
443
- elif current_tag == 'extension':
444
- Extensions_url += ", " + url
445
 
446
  # fix all possible errors/options and function call
447
  if custom_file_urls:
 
201
  print("📦 Downloading models and stuff...", end='')
202
  model_list = {
203
  "1.Anime (by Xpuct) + INP": [
204
+ {"url": "https://huggingface.co/XpucT/Anime/resolve/main/Anime_v2.safetensors", "name": "Anime_v2.safetensors"},
205
+ {"url": "https://huggingface.co/XpucT/Anime/resolve/main/Anime_v2-inpainting.safetensors", "name": "Anime_v2-inpainting.safetensors"}
206
  ],
207
  "2.Cetus-Mix [Anime] [V4] + INP": [
208
  {"url": "https://civitai.com/api/download/models/130298", "name": "CetusMix_V4.safetensors"},
 
232
  ]
233
  }
234
 
235
+ # 1-4 (fp16/cleaned)
236
  vae_list = {
237
+ "1.Anime.vae": [
238
+ {"url": "https://civitai.com/api/download/models/131654", "name": "Anime.vae.safetensors"},
239
+ {"url": "https://civitai.com/api/download/models/131658", "name": "vae-ft-mse.vae.safetensors"}
240
+ ],
241
+ "2.Anything.vae": [{"url": "https://civitai.com/api/download/models/131656", "name": "Anything.vae.safetensors"}],
242
+ "3.Blessed2.vae": [{"url": "https://civitai.com/api/download/models/142467", "name": "Blessed2.vae.safetensors"}],
243
+ "4.ClearVae.vae": [{"url": "https://civitai.com/api/download/models/133362", "name": "ClearVae_23.vae.safetensors"}],
244
+ "5.WD.vae": [{"url": "https://huggingface.co/NoCrypt/resources/resolve/main/VAE/wd.vae.safetensors", "name": "WD.vae.safetensors"}]
245
  }
246
 
247
  controlnet_list = {
 
413
 
414
  def process_file_download(file_url):
415
  global Model_url, Vae_url, LoRA_url, Embedding_url, Extensions_url
416
+ urls_dict = {
417
+ 'model': 'Model_url',
418
+ 'vae': 'Vae_url',
419
+ 'embed': 'Embedding_url',
420
+ 'lora': 'LoRA_url',
421
+ 'extension': 'Extensions_url'
422
+ }
423
 
424
  if file_url.startswith("http"):
425
  if "blob" in file_url:
426
  file_url = file_url.replace("blob", "raw")
 
427
  response = requests.get(file_url)
428
  lines = response.text.split('\n')
429
  else:
430
  with open(file_url, 'r') as file:
431
  lines = file.readlines()
432
 
433
+ current_tag = None
434
  for line in lines:
 
 
 
435
  if line.strip().startswith('#'):
436
+ current_tag = next((tag for tag in urls_dict if tag in line.lower()), None)
437
+ elif current_tag and line.strip():
438
  urls = [url.strip() for url in line.split()]
439
  for url in urls:
440
+ if url.startswith("http"):
441
+ globals()[urls_dict[current_tag]] += ", " + url
 
 
 
 
 
 
 
 
 
442
 
443
  # fix all possible errors/options and function call
444
  if custom_file_urls:
files_cells/python/en/widgets_en.py CHANGED
@@ -317,9 +317,10 @@ vae_header = widgets.HTML('<div class="header" >VAE Selection</div>')
317
  vae_options = ['none',
318
  '1.Anime.vae',
319
  '2.Anything.vae',
320
- '3.blessed2.vae',
321
- '4.WD.vae']
322
- Vae_widget = widgets.Dropdown(options=vae_options, value='1.Anime.vae', description='Vae:', style=style, layout=layout)
 
323
  Vae_Num_widget = widgets.Text(description='Vae number:', placeholder='Enter the vae numbers to be downloaded using comma/space.', style=style, layout=layout)
324
 
325
  display(widgets.VBox([vae_header, Vae_widget, Vae_Num_widget]).add_class("container"))
 
317
  vae_options = ['none',
318
  '1.Anime.vae',
319
  '2.Anything.vae',
320
+ '3.Blessed2.vae',
321
+ '4.ClearVae.vae',
322
+ '5.WD.vae']
323
+ Vae_widget = widgets.Dropdown(options=vae_options, value='3.Blessed2.vae', description='Vae:', style=style, layout=layout)
324
  Vae_Num_widget = widgets.Text(description='Vae number:', placeholder='Enter the vae numbers to be downloaded using comma/space.', style=style, layout=layout)
325
 
326
  display(widgets.VBox([vae_header, Vae_widget, Vae_Num_widget]).add_class("container"))
files_cells/python/ru/downloading_ru.py CHANGED
@@ -201,8 +201,8 @@ if commit_hash:
201
  print("📦 Скачивание моделей и прочего...", end='')
202
  model_list = {
203
  "1.Anime (by Xpuct) + INP": [
204
- {"url": "https://huggingface.co/XpucT/Anime/resolve/main/Anime_v1.safetensors", "name": "Anime.safetensors"},
205
- {"url": "https://huggingface.co/XpucT/Anime/resolve/main/Anime_v1-inpainting.safetensors", "name": "Anime-inpainting.safetensors"}
206
  ],
207
  "2.Cetus-Mix [Anime] [V4] + INP": [
208
  {"url": "https://civitai.com/api/download/models/130298", "name": "CetusMix_V4.safetensors"},
@@ -232,11 +232,16 @@ model_list = {
232
  ]
233
  }
234
 
 
235
  vae_list = {
236
- "1.Anime.vae": [{"url": "https://civitai.com/api/download/models/131654", "name": "Anime.vae.safetensors"}],
237
- "2.Anything.vae": [{"url": "https://huggingface.co/NoCrypt/resources/resolve/main/VAE/any.vae.safetensors", "name": "Anything.vae.safetensors"}],
238
- "3.blessed2.vae": [{"url": "https://huggingface.co/NoCrypt/resources/resolve/main/VAE/blessed2.vae.safetensors", "name": "Blessed2.vae.safetensors"}],
239
- "4.WD.vae": [{"url": "https://huggingface.co/NoCrypt/resources/resolve/main/VAE/wd.vae.safetensors", "name": "WD.vae.safetensors"}]
 
 
 
 
240
  }
241
 
242
  controlnet_list = {
@@ -408,40 +413,32 @@ for submodel in submodels:
408
 
409
  def process_file_download(file_url):
410
  global Model_url, Vae_url, LoRA_url, Embedding_url, Extensions_url
411
-
412
- tags = ['model', 'vae', 'embed', 'lora', 'extension']
413
- current_tag = None
 
 
 
 
414
 
415
  if file_url.startswith("http"):
416
  if "blob" in file_url:
417
  file_url = file_url.replace("blob", "raw")
418
-
419
  response = requests.get(file_url)
420
  lines = response.text.split('\n')
421
  else:
422
  with open(file_url, 'r') as file:
423
  lines = file.readlines()
424
 
 
425
  for line in lines:
426
- if not line.strip():
427
- continue
428
-
429
  if line.strip().startswith('#'):
430
- current_tag = next((tag for tag in tags if tag in line.lower()), None)
431
- elif current_tag:
432
  urls = [url.strip() for url in line.split()]
433
  for url in urls:
434
- if url and (url.startswith("http") or url.startswith("https")):
435
- if current_tag == 'model':
436
- Model_url += ", " + url
437
- elif current_tag == 'vae':
438
- Vae_url += ", " + url
439
- elif current_tag == 'embed':
440
- Embedding_url += ", " + url
441
- elif current_tag == 'lora':
442
- LoRA_url += ", " + url
443
- elif current_tag == 'extension':
444
- Extensions_url += ", " + url
445
 
446
  # fix all possible errors/options and function call
447
  if custom_file_urls:
 
201
  print("📦 Скачивание моделей и прочего...", end='')
202
  model_list = {
203
  "1.Anime (by Xpuct) + INP": [
204
+ {"url": "https://huggingface.co/XpucT/Anime/resolve/main/Anime_v2.safetensors", "name": "Anime_v2.safetensors"},
205
+ {"url": "https://huggingface.co/XpucT/Anime/resolve/main/Anime_v2-inpainting.safetensors", "name": "Anime_v2-inpainting.safetensors"}
206
  ],
207
  "2.Cetus-Mix [Anime] [V4] + INP": [
208
  {"url": "https://civitai.com/api/download/models/130298", "name": "CetusMix_V4.safetensors"},
 
232
  ]
233
  }
234
 
235
+ # 1-4 (fp16/cleaned)
236
  vae_list = {
237
+ "1.Anime.vae": [
238
+ {"url": "https://civitai.com/api/download/models/131654", "name": "Anime.vae.safetensors"},
239
+ {"url": "https://civitai.com/api/download/models/131658", "name": "vae-ft-mse.vae.safetensors"}
240
+ ],
241
+ "2.Anything.vae": [{"url": "https://civitai.com/api/download/models/131656", "name": "Anything.vae.safetensors"}],
242
+ "3.Blessed2.vae": [{"url": "https://civitai.com/api/download/models/142467", "name": "Blessed2.vae.safetensors"}],
243
+ "4.ClearVae.vae": [{"url": "https://civitai.com/api/download/models/133362", "name": "ClearVae_23.vae.safetensors"}],
244
+ "5.WD.vae": [{"url": "https://huggingface.co/NoCrypt/resources/resolve/main/VAE/wd.vae.safetensors", "name": "WD.vae.safetensors"}]
245
  }
246
 
247
  controlnet_list = {
 
413
 
414
  def process_file_download(file_url):
415
  global Model_url, Vae_url, LoRA_url, Embedding_url, Extensions_url
416
+ urls_dict = {
417
+ 'model': 'Model_url',
418
+ 'vae': 'Vae_url',
419
+ 'embed': 'Embedding_url',
420
+ 'lora': 'LoRA_url',
421
+ 'extension': 'Extensions_url'
422
+ }
423
 
424
  if file_url.startswith("http"):
425
  if "blob" in file_url:
426
  file_url = file_url.replace("blob", "raw")
 
427
  response = requests.get(file_url)
428
  lines = response.text.split('\n')
429
  else:
430
  with open(file_url, 'r') as file:
431
  lines = file.readlines()
432
 
433
+ current_tag = None
434
  for line in lines:
 
 
 
435
  if line.strip().startswith('#'):
436
+ current_tag = next((tag for tag in urls_dict if tag in line.lower()), None)
437
+ elif current_tag and line.strip():
438
  urls = [url.strip() for url in line.split()]
439
  for url in urls:
440
+ if url.startswith("http"):
441
+ globals()[urls_dict[current_tag]] += ", " + url
 
 
 
 
 
 
 
 
 
442
 
443
  # fix all possible errors/options and function call
444
  if custom_file_urls:
files_cells/python/ru/widgets_ru.py CHANGED
@@ -317,9 +317,10 @@ vae_header = widgets.HTML('<div class="header" >Выбор VAE</div>')
317
  vae_options = ['none',
318
  '1.Anime.vae',
319
  '2.Anything.vae',
320
- '3.blessed2.vae',
321
- '4.WD.vae']
322
- Vae_widget = widgets.Dropdown(options=vae_options, value='1.Anime.vae', description='Vae:', style=style, layout=layout)
 
323
  Vae_Num_widget = widgets.Text(description='Номер Vae:', placeholder='Введите номера vae для скачивания через запятую/пробел.', style=style, layout=layout)
324
 
325
  display(widgets.VBox([vae_header, Vae_widget, Vae_Num_widget]).add_class("container"))
 
317
  vae_options = ['none',
318
  '1.Anime.vae',
319
  '2.Anything.vae',
320
+ '3.Blessed2.vae',
321
+ '4.ClearVae.vae',
322
+ '5.WD.vae']
323
+ Vae_widget = widgets.Dropdown(options=vae_options, value='3.Blessed2.vae', description='Vae:', style=style, layout=layout)
324
  Vae_Num_widget = widgets.Text(description='Номер Vae:', placeholder='Введите номера vae для скачивания через запятую/пробел.', style=style, layout=layout)
325
 
326
  display(widgets.VBox([vae_header, Vae_widget, Vae_Num_widget]).add_class("container"))