NagisaNao commited on
Commit
5519450
1 Parent(s): 1bb0f07

test forge

Browse files
files_cells/notebooks/en/downloading_en.ipynb CHANGED
@@ -109,7 +109,7 @@
109
  "variables = [\n",
110
  " 'Model', 'Model_Num', 'Inpainting_Model',\n",
111
  " 'Vae', 'Vae_Num',\n",
112
- " 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
113
  " 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
114
  " 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
115
  " 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
@@ -139,7 +139,10 @@
139
  " start_install = int(time.time())\n",
140
  " print(\"⌚ Unpacking Stable Diffusion...\", end='')\n",
141
  " with capture.capture_output() as cap:\n",
142
- " !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/NagisaNao/fast_repo/resolve/main/FULL_REPO.zip -o repo.zip\n",
 
 
 
143
  " !unzip -q -o repo.zip -d {webui_path}\n",
144
  " !rm -rf repo.zip\n",
145
  "\n",
 
109
  "variables = [\n",
110
  " 'Model', 'Model_Num', 'Inpainting_Model',\n",
111
  " 'Vae', 'Vae_Num',\n",
112
+ " 'latest_webui', 'latest_exstensions', 'change_webui', 'detailed_download',\n",
113
  " 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
114
  " 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
115
  " 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
 
139
  " start_install = int(time.time())\n",
140
  " print(\"⌚ Unpacking Stable Diffusion...\", end='')\n",
141
  " with capture.capture_output() as cap:\n",
142
+ " aria2_command = \"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M\"\n",
143
+ " url = \"https://huggingface.co/NagisaNao/fast_repo/resolve/main/FULL_REPO.zip\" if change_webui != 'Forge' else \"https://huggingface.co/NagisaNao/test/resolve/main/FULL_REPO_forge.zip\"\n",
144
+ " !{aria2_command} {url} -o repo.zip\n",
145
+ "\n",
146
  " !unzip -q -o repo.zip -d {webui_path}\n",
147
  " !rm -rf repo.zip\n",
148
  "\n",
files_cells/notebooks/en/widgets_en.ipynb CHANGED
@@ -503,8 +503,9 @@
503
  "additional_header = widgets.HTML('<div class=\"header\">Additional</div>')\n",
504
  "latest_webui_widget = widgets.Checkbox(value=True, description='Update WebUI', style=style)\n",
505
  "latest_exstensions_widget = widgets.Checkbox(value=True, description='Update Extensions', style=style)\n",
 
506
  "detailed_download_widget = widgets.Dropdown(options=['off', 'on'], value='off', description='Detailed Download:', style=style)\n",
507
- "latest_changes_widget = HBox([latest_webui_widget, latest_exstensions_widget, detailed_download_widget], layout=widgets.Layout(justify_content='space-between'))\n",
508
  "controlnet_options = ['none', 'ALL', '1.canny',\n",
509
  " '2.openpose', '3.depth',\n",
510
  " '4.normal_map', '5.mlsd',\n",
@@ -531,6 +532,8 @@
531
  "additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]\n",
532
  "if free_plan and env == \"Google Colab\": # remove ngrok from colab\n",
533
  " additional_widget_list.remove(ngrok_widget)\n",
 
 
534
  "# ```\n",
535
  "all_additional_box = widgets.VBox(additional_widget_list).add_class(\"container\").add_class(\"image_3\")\n",
536
  "display(all_additional_box)\n",
@@ -586,7 +589,7 @@
586
  "settings_keys = [\n",
587
  " 'Model', 'Model_Num', 'Inpainting_Model',\n",
588
  " 'Vae', 'Vae_Num',\n",
589
- " 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
590
  " 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
591
  " 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
592
  " 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
 
503
  "additional_header = widgets.HTML('<div class=\"header\">Additional</div>')\n",
504
  "latest_webui_widget = widgets.Checkbox(value=True, description='Update WebUI', style=style)\n",
505
  "latest_exstensions_widget = widgets.Checkbox(value=True, description='Update Extensions', style=style)\n",
506
+ "change_webui_widget = widgets.Dropdown(options=['A1111', 'Forge'], value='A1111', description='Change WebUI:', style=style)\n",
507
  "detailed_download_widget = widgets.Dropdown(options=['off', 'on'], value='off', description='Detailed Download:', style=style)\n",
508
+ "latest_changes_widget = HBox([latest_webui_widget, latest_exstensions_widget, change_webui_widget, detailed_download_widget], layout=widgets.Layout(justify_content='space-between'))\n",
509
  "controlnet_options = ['none', 'ALL', '1.canny',\n",
510
  " '2.openpose', '3.depth',\n",
511
  " '4.normal_map', '5.mlsd',\n",
 
532
  "additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]\n",
533
  "if free_plan and env == \"Google Colab\": # remove ngrok from colab\n",
534
  " additional_widget_list.remove(ngrok_widget)\n",
535
+ "if os.path.exists(webui_path): # remove selection after selection ;3\n",
536
+ " latest_changes_widget.children = [widget for widget in latest_changes_widget.children if widget != change_webui_widget]\n",
537
  "# ```\n",
538
  "all_additional_box = widgets.VBox(additional_widget_list).add_class(\"container\").add_class(\"image_3\")\n",
539
  "display(all_additional_box)\n",
 
589
  "settings_keys = [\n",
590
  " 'Model', 'Model_Num', 'Inpainting_Model',\n",
591
  " 'Vae', 'Vae_Num',\n",
592
+ " 'latest_webui', 'latest_exstensions', 'change_webui', 'detailed_download',\n",
593
  " 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
594
  " 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
595
  " 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
files_cells/notebooks/ru/downloading_ru.ipynb CHANGED
@@ -109,7 +109,7 @@
109
  "variables = [\n",
110
  " 'Model', 'Model_Num', 'Inpainting_Model',\n",
111
  " 'Vae', 'Vae_Num',\n",
112
- " 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
113
  " 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
114
  " 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
115
  " 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
@@ -137,9 +137,12 @@
137
  "# ================= MAIN CODE =================\n",
138
  "if not os.path.exists(webui_path):\n",
139
  " start_install = int(time.time())\n",
140
- " print(\"⌚ Распаковка Stable Diffusion...\", end='')\n",
141
  " with capture.capture_output() as cap:\n",
142
- " !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/NagisaNao/fast_repo/resolve/main/FULL_REPO.zip -o repo.zip\n",
 
 
 
143
  " !unzip -q -o repo.zip -d {webui_path}\n",
144
  " !rm -rf repo.zip\n",
145
  "\n",
@@ -579,7 +582,7 @@
579
  "\n",
580
  "## Install of Custom extensions\n",
581
  "if len(extension_repo) > 0:\n",
582
- " print(\"✨ Устанвока кастомных расширений...\", end='', flush=True)\n",
583
  " with capture.capture_output() as cap:\n",
584
  " for repo, repo_name in extension_repo:\n",
585
  " if not repo_name:\n",
 
109
  "variables = [\n",
110
  " 'Model', 'Model_Num', 'Inpainting_Model',\n",
111
  " 'Vae', 'Vae_Num',\n",
112
+ " 'latest_webui', 'latest_exstensions', 'change_webui', 'detailed_download',\n",
113
  " 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
114
  " 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
115
  " 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
 
137
  "# ================= MAIN CODE =================\n",
138
  "if not os.path.exists(webui_path):\n",
139
  " start_install = int(time.time())\n",
140
+ " print(\"⌚ Распаковка Stable Diffusion...\" if change_webui != 'Forge' else \"⌚ Распаковка Stable Diffusion (Forge)...\", end='')\n",
141
  " with capture.capture_output() as cap:\n",
142
+ " aria2_command = \"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M\"\n",
143
+ " url = \"https://huggingface.co/NagisaNao/fast_repo/resolve/main/FULL_REPO.zip\" if change_webui != 'Forge' else \"https://huggingface.co/NagisaNao/test/resolve/main/FULL_REPO_forge.zip\"\n",
144
+ " !{aria2_command} {url} -o repo.zip\n",
145
+ "\n",
146
  " !unzip -q -o repo.zip -d {webui_path}\n",
147
  " !rm -rf repo.zip\n",
148
  "\n",
 
582
  "\n",
583
  "## Install of Custom extensions\n",
584
  "if len(extension_repo) > 0:\n",
585
+ " print(\"✨ Установка кастомных расширений...\", end='', flush=True)\n",
586
  " with capture.capture_output() as cap:\n",
587
  " for repo, repo_name in extension_repo:\n",
588
  " if not repo_name:\n",
files_cells/notebooks/ru/widgets_ru.ipynb CHANGED
@@ -503,8 +503,9 @@
503
  "additional_header = widgets.HTML('<div class=\"header\">Дополнительно</div>')\n",
504
  "latest_webui_widget = widgets.Checkbox(value=True, description='Обновить WebUI', style=style)\n",
505
  "latest_exstensions_widget = widgets.Checkbox(value=True, description='Обновить Расширения', style=style)\n",
 
506
  "detailed_download_widget = widgets.Dropdown(options=['off', 'on'], value='off', description='Подробная Загрузка:', style=style)\n",
507
- "latest_changes_widget = HBox([latest_webui_widget, latest_exstensions_widget, detailed_download_widget], layout=widgets.Layout(justify_content='space-between'))\n",
508
  "controlnet_options = ['none', 'ALL', '1.canny',\n",
509
  " '2.openpose', '3.depth',\n",
510
  " '4.normal_map', '5.mlsd',\n",
@@ -531,6 +532,8 @@
531
  "additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]\n",
532
  "if free_plan and env == \"Google Colab\": # remove ngrok from colab\n",
533
  " additional_widget_list.remove(ngrok_widget)\n",
 
 
534
  "# ```\n",
535
  "all_additional_box = widgets.VBox(additional_widget_list).add_class(\"container\").add_class(\"image_3\")\n",
536
  "display(all_additional_box)\n",
@@ -586,7 +589,7 @@
586
  "settings_keys = [\n",
587
  " 'Model', 'Model_Num', 'Inpainting_Model',\n",
588
  " 'Vae', 'Vae_Num',\n",
589
- " 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
590
  " 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
591
  " 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
592
  " 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
 
503
  "additional_header = widgets.HTML('<div class=\"header\">Дополнительно</div>')\n",
504
  "latest_webui_widget = widgets.Checkbox(value=True, description='Обновить WebUI', style=style)\n",
505
  "latest_exstensions_widget = widgets.Checkbox(value=True, description='Обновить Расширения', style=style)\n",
506
+ "change_webui_widget = widgets.Dropdown(options=['A1111', 'Forge'], value='A1111', description='Изменить WebUI:', style=style)\n",
507
  "detailed_download_widget = widgets.Dropdown(options=['off', 'on'], value='off', description='Подробная Загрузка:', style=style)\n",
508
+ "latest_changes_widget = HBox([latest_webui_widget, latest_exstensions_widget, change_webui_widget, detailed_download_widget], layout=widgets.Layout(justify_content='space-between'))\n",
509
  "controlnet_options = ['none', 'ALL', '1.canny',\n",
510
  " '2.openpose', '3.depth',\n",
511
  " '4.normal_map', '5.mlsd',\n",
 
532
  "additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]\n",
533
  "if free_plan and env == \"Google Colab\": # remove ngrok from colab\n",
534
  " additional_widget_list.remove(ngrok_widget)\n",
535
+ "if os.path.exists(webui_path): # remove selection after selection ;3\n",
536
+ " latest_changes_widget.children = [widget for widget in latest_changes_widget.children if widget != change_webui_widget]\n",
537
  "# ```\n",
538
  "all_additional_box = widgets.VBox(additional_widget_list).add_class(\"container\").add_class(\"image_3\")\n",
539
  "display(all_additional_box)\n",
 
589
  "settings_keys = [\n",
590
  " 'Model', 'Model_Num', 'Inpainting_Model',\n",
591
  " 'Vae', 'Vae_Num',\n",
592
+ " 'latest_webui', 'latest_exstensions', 'change_webui', 'detailed_download',\n",
593
  " 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
594
  " 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
595
  " 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
files_cells/python/en/downloading_en.py CHANGED
@@ -99,7 +99,7 @@ settings = load_settings(f'{root_path}/settings.json')
99
  variables = [
100
  'Model', 'Model_Num', 'Inpainting_Model',
101
  'Vae', 'Vae_Num',
102
- 'latest_webui', 'latest_exstensions', 'detailed_download',
103
  'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
104
  'ngrok_token', 'zrok_token', 'commandline_arguments',
105
  'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
@@ -129,7 +129,10 @@ if not os.path.exists(webui_path):
129
  start_install = int(time.time())
130
  print("⌚ Unpacking Stable Diffusion...", end='')
131
  with capture.capture_output() as cap:
132
- get_ipython().system('aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/NagisaNao/fast_repo/resolve/main/FULL_REPO.zip -o repo.zip')
 
 
 
133
  get_ipython().system('unzip -q -o repo.zip -d {webui_path}')
134
  get_ipython().system('rm -rf repo.zip')
135
 
 
99
  variables = [
100
  'Model', 'Model_Num', 'Inpainting_Model',
101
  'Vae', 'Vae_Num',
102
+ 'latest_webui', 'latest_exstensions', 'change_webui', 'detailed_download',
103
  'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
104
  'ngrok_token', 'zrok_token', 'commandline_arguments',
105
  'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
 
129
  start_install = int(time.time())
130
  print("⌚ Unpacking Stable Diffusion...", end='')
131
  with capture.capture_output() as cap:
132
+ aria2_command = "aria2c --console-log-level=error -c -x 16 -s 16 -k 1M"
133
+ url = "https://huggingface.co/NagisaNao/fast_repo/resolve/main/FULL_REPO.zip" if change_webui != 'Forge' else "https://huggingface.co/NagisaNao/test/resolve/main/FULL_REPO_forge.zip"
134
+ get_ipython().system('{aria2_command} {url} -o repo.zip')
135
+
136
  get_ipython().system('unzip -q -o repo.zip -d {webui_path}')
137
  get_ipython().system('rm -rf repo.zip')
138
 
files_cells/python/en/widgets_en.py CHANGED
@@ -10,7 +10,7 @@ from IPython.display import display, HTML, Javascript, clear_output
10
 
11
  # ================= DETECT ENV =================
12
  def detect_environment():
13
- free_plan = (os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES') / (1024. ** 3) <= 20)
14
  environments = {
15
  'COLAB_GPU': ('Google Colab', "/root" if free_plan else "/content"),
16
  'KAGGLE_URL_BASE': ('Kaggle', "/kaggle/working/content")
@@ -484,8 +484,9 @@ display(all_vae_box)
484
  additional_header = widgets.HTML('<div class="header">Additional</div>')
485
  latest_webui_widget = widgets.Checkbox(value=True, description='Update WebUI', style=style)
486
  latest_exstensions_widget = widgets.Checkbox(value=True, description='Update Extensions', style=style)
 
487
  detailed_download_widget = widgets.Dropdown(options=['off', 'on'], value='off', description='Detailed Download:', style=style)
488
- latest_changes_widget = HBox([latest_webui_widget, latest_exstensions_widget, detailed_download_widget], layout=widgets.Layout(justify_content='space-between'))
489
  controlnet_options = ['none', 'ALL', '1.canny',
490
  '2.openpose', '3.depth',
491
  '4.normal_map', '5.mlsd',
@@ -512,6 +513,8 @@ commandline_arguments_widget = widgets.Text(description='Arguments:', value=comm
512
  additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]
513
  if free_plan and env == "Google Colab": # remove ngrok from colab
514
  additional_widget_list.remove(ngrok_widget)
 
 
515
  # ```
516
  all_additional_box = widgets.VBox(additional_widget_list).add_class("container").add_class("image_3")
517
  display(all_additional_box)
@@ -567,7 +570,7 @@ SETTINGS_FILE = f'{root_path}/settings.json'
567
  settings_keys = [
568
  'Model', 'Model_Num', 'Inpainting_Model',
569
  'Vae', 'Vae_Num',
570
- 'latest_webui', 'latest_exstensions', 'detailed_download',
571
  'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
572
  'ngrok_token', 'zrok_token', 'commandline_arguments',
573
  'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
 
10
 
11
  # ================= DETECT ENV =================
12
  def detect_environment():
13
+ free_plan = (os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES') / (1024 ** 3) <= 20)
14
  environments = {
15
  'COLAB_GPU': ('Google Colab', "/root" if free_plan else "/content"),
16
  'KAGGLE_URL_BASE': ('Kaggle', "/kaggle/working/content")
 
484
  additional_header = widgets.HTML('<div class="header">Additional</div>')
485
  latest_webui_widget = widgets.Checkbox(value=True, description='Update WebUI', style=style)
486
  latest_exstensions_widget = widgets.Checkbox(value=True, description='Update Extensions', style=style)
487
+ change_webui_widget = widgets.Dropdown(options=['A1111', 'Forge'], value='A1111', description='Change WebUI:', style=style)
488
  detailed_download_widget = widgets.Dropdown(options=['off', 'on'], value='off', description='Detailed Download:', style=style)
489
+ latest_changes_widget = HBox([latest_webui_widget, latest_exstensions_widget, change_webui_widget, detailed_download_widget], layout=widgets.Layout(justify_content='space-between'))
490
  controlnet_options = ['none', 'ALL', '1.canny',
491
  '2.openpose', '3.depth',
492
  '4.normal_map', '5.mlsd',
 
513
  additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]
514
  if free_plan and env == "Google Colab": # remove ngrok from colab
515
  additional_widget_list.remove(ngrok_widget)
516
+ if os.path.exists(webui_path): # remove selection after selection ;3
517
+ latest_changes_widget.children = [widget for widget in latest_changes_widget.children if widget != change_webui_widget]
518
  # ```
519
  all_additional_box = widgets.VBox(additional_widget_list).add_class("container").add_class("image_3")
520
  display(all_additional_box)
 
570
  settings_keys = [
571
  'Model', 'Model_Num', 'Inpainting_Model',
572
  'Vae', 'Vae_Num',
573
+ 'latest_webui', 'latest_exstensions', 'change_webui', 'detailed_download',
574
  'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
575
  'ngrok_token', 'zrok_token', 'commandline_arguments',
576
  'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
files_cells/python/ru/downloading_ru.py CHANGED
@@ -99,7 +99,7 @@ settings = load_settings(f'{root_path}/settings.json')
99
  variables = [
100
  'Model', 'Model_Num', 'Inpainting_Model',
101
  'Vae', 'Vae_Num',
102
- 'latest_webui', 'latest_exstensions', 'detailed_download',
103
  'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
104
  'ngrok_token', 'zrok_token', 'commandline_arguments',
105
  'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
@@ -127,9 +127,12 @@ adetailer_dir = f"{webui_path}/models/adetailer"
127
  # ================= MAIN CODE =================
128
  if not os.path.exists(webui_path):
129
  start_install = int(time.time())
130
- print("⌚ Распаковка Stable Diffusion...", end='')
131
  with capture.capture_output() as cap:
132
- get_ipython().system('aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/NagisaNao/fast_repo/resolve/main/FULL_REPO.zip -o repo.zip')
 
 
 
133
  get_ipython().system('unzip -q -o repo.zip -d {webui_path}')
134
  get_ipython().system('rm -rf repo.zip')
135
 
@@ -569,7 +572,7 @@ get_ipython().system('find {webui_path} \\( -type d \\( -name ".ipynb_checkpoint
569
 
570
  ## Install of Custom extensions
571
  if len(extension_repo) > 0:
572
- print("✨ Устанвока кастомных расширений...", end='', flush=True)
573
  with capture.capture_output() as cap:
574
  for repo, repo_name in extension_repo:
575
  if not repo_name:
 
99
  variables = [
100
  'Model', 'Model_Num', 'Inpainting_Model',
101
  'Vae', 'Vae_Num',
102
+ 'latest_webui', 'latest_exstensions', 'change_webui', 'detailed_download',
103
  'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
104
  'ngrok_token', 'zrok_token', 'commandline_arguments',
105
  'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
 
127
  # ================= MAIN CODE =================
128
  if not os.path.exists(webui_path):
129
  start_install = int(time.time())
130
+ print("⌚ Распаковка Stable Diffusion..." if change_webui != 'Forge' else "⌚ Распаковка Stable Diffusion (Forge)...", end='')
131
  with capture.capture_output() as cap:
132
+ aria2_command = "aria2c --console-log-level=error -c -x 16 -s 16 -k 1M"
133
+ url = "https://huggingface.co/NagisaNao/fast_repo/resolve/main/FULL_REPO.zip" if change_webui != 'Forge' else "https://huggingface.co/NagisaNao/test/resolve/main/FULL_REPO_forge.zip"
134
+ get_ipython().system('{aria2_command} {url} -o repo.zip')
135
+
136
  get_ipython().system('unzip -q -o repo.zip -d {webui_path}')
137
  get_ipython().system('rm -rf repo.zip')
138
 
 
572
 
573
  ## Install of Custom extensions
574
  if len(extension_repo) > 0:
575
+ print("✨ Установка кастомных расширений...", end='', flush=True)
576
  with capture.capture_output() as cap:
577
  for repo, repo_name in extension_repo:
578
  if not repo_name:
files_cells/python/ru/widgets_ru.py CHANGED
@@ -10,7 +10,7 @@ from IPython.display import display, HTML, Javascript, clear_output
10
 
11
  # ================= DETECT ENV =================
12
  def detect_environment():
13
- free_plan = (os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES') / (1024. ** 3) <= 20)
14
  environments = {
15
  'COLAB_GPU': ('Google Colab', "/root" if free_plan else "/content"),
16
  'KAGGLE_URL_BASE': ('Kaggle', "/kaggle/working/content")
@@ -484,8 +484,9 @@ display(all_vae_box)
484
  additional_header = widgets.HTML('<div class="header">Дополнительно</div>')
485
  latest_webui_widget = widgets.Checkbox(value=True, description='Обновить WebUI', style=style)
486
  latest_exstensions_widget = widgets.Checkbox(value=True, description='Обновить Расширения', style=style)
 
487
  detailed_download_widget = widgets.Dropdown(options=['off', 'on'], value='off', description='Подробная Загрузка:', style=style)
488
- latest_changes_widget = HBox([latest_webui_widget, latest_exstensions_widget, detailed_download_widget], layout=widgets.Layout(justify_content='space-between'))
489
  controlnet_options = ['none', 'ALL', '1.canny',
490
  '2.openpose', '3.depth',
491
  '4.normal_map', '5.mlsd',
@@ -512,6 +513,8 @@ commandline_arguments_widget = widgets.Text(description='Аргументы:', v
512
  additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]
513
  if free_plan and env == "Google Colab": # remove ngrok from colab
514
  additional_widget_list.remove(ngrok_widget)
 
 
515
  # ```
516
  all_additional_box = widgets.VBox(additional_widget_list).add_class("container").add_class("image_3")
517
  display(all_additional_box)
@@ -567,7 +570,7 @@ SETTINGS_FILE = f'{root_path}/settings.json'
567
  settings_keys = [
568
  'Model', 'Model_Num', 'Inpainting_Model',
569
  'Vae', 'Vae_Num',
570
- 'latest_webui', 'latest_exstensions', 'detailed_download',
571
  'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
572
  'ngrok_token', 'zrok_token', 'commandline_arguments',
573
  'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
 
10
 
11
  # ================= DETECT ENV =================
12
  def detect_environment():
13
+ free_plan = (os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES') / (1024 ** 3) <= 20)
14
  environments = {
15
  'COLAB_GPU': ('Google Colab', "/root" if free_plan else "/content"),
16
  'KAGGLE_URL_BASE': ('Kaggle', "/kaggle/working/content")
 
484
  additional_header = widgets.HTML('<div class="header">Дополнительно</div>')
485
  latest_webui_widget = widgets.Checkbox(value=True, description='Обновить WebUI', style=style)
486
  latest_exstensions_widget = widgets.Checkbox(value=True, description='Обновить Расширения', style=style)
487
+ change_webui_widget = widgets.Dropdown(options=['A1111', 'Forge'], value='A1111', description='Изменить WebUI:', style=style)
488
  detailed_download_widget = widgets.Dropdown(options=['off', 'on'], value='off', description='Подробная Загрузка:', style=style)
489
+ latest_changes_widget = HBox([latest_webui_widget, latest_exstensions_widget, change_webui_widget, detailed_download_widget], layout=widgets.Layout(justify_content='space-between'))
490
  controlnet_options = ['none', 'ALL', '1.canny',
491
  '2.openpose', '3.depth',
492
  '4.normal_map', '5.mlsd',
 
513
  additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]
514
  if free_plan and env == "Google Colab": # remove ngrok from colab
515
  additional_widget_list.remove(ngrok_widget)
516
+ if os.path.exists(webui_path): # remove selection after selection ;3
517
+ latest_changes_widget.children = [widget for widget in latest_changes_widget.children if widget != change_webui_widget]
518
  # ```
519
  all_additional_box = widgets.VBox(additional_widget_list).add_class("container").add_class("image_3")
520
  display(all_additional_box)
 
570
  settings_keys = [
571
  'Model', 'Model_Num', 'Inpainting_Model',
572
  'Vae', 'Vae_Num',
573
+ 'latest_webui', 'latest_exstensions', 'change_webui', 'detailed_download',
574
  'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
575
  'ngrok_token', 'zrok_token', 'commandline_arguments',
576
  'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'