NagisaNao commited on
Commit
6014396
·
verified ·
1 Parent(s): ca31448

oopss~ fixin extensions (encrypt-image)

Browse files
files_cells/notebooks/en/downloading_en.ipynb CHANGED
@@ -70,7 +70,7 @@
70
  " # xformers = \"xformers==0.0.20 triton==2.0.0\"\n",
71
  " # torch = \"torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118\"\n",
72
  "\n",
73
- " # automatic1111 update webui to 1.8.0\n",
74
  " xformers = \"xformers==0.0.23.post1 triton==2.1.0\"\n",
75
  " torch = \"torch==2.1.2+cu121 torchvision==0.16.2+cu121 --extra-index-url https://download.pytorch.org/whl/cu121\"\n",
76
  "\n",
@@ -168,14 +168,6 @@
168
  " print(f\"⌚️ You have been conducting this session for - \\033[33m{time_since_start}\\033[0m\")\n",
169
  "\n",
170
  "\n",
171
- "# === ONLY SAGEMAKER FIXIN EXTENSIONS ===\n",
172
- "if env == \"SageMaker Studio Lab\":\n",
173
- " with capture.capture_output() as cap:\n",
174
- " # --- SuperMerger ---\n",
175
- " !wget -O {webui_path}/extensions/supermerger/scripts/mergers/mergers.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/extensions/supermerger/scripts/mergers/mergers.py\n",
176
- " del cap\n",
177
- "\n",
178
- "\n",
179
  "## Changes extensions and WebUi\n",
180
  "if latest_webui or latest_exstensions:\n",
181
  " action = \"Updating WebUI and Extensions\" if latest_webui and latest_exstensions else (\"WebUI Update\" if latest_webui else \"Update Extensions\")\n",
@@ -202,6 +194,17 @@
202
  " print(f\"\\r✨ {action} Completed!\")\n",
203
  "\n",
204
  "\n",
 
 
 
 
 
 
 
 
 
 
 
205
  "## Version switching\n",
206
  "if commit_hash:\n",
207
  " print('⏳ Time machine activation...', end=\"\", flush=True)\n",
 
70
  " # xformers = \"xformers==0.0.20 triton==2.0.0\"\n",
71
  " # torch = \"torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118\"\n",
72
  "\n",
73
+ " # A1111 update webui to 1.8.0\n",
74
  " xformers = \"xformers==0.0.23.post1 triton==2.1.0\"\n",
75
  " torch = \"torch==2.1.2+cu121 torchvision==0.16.2+cu121 --extra-index-url https://download.pytorch.org/whl/cu121\"\n",
76
  "\n",
 
168
  " print(f\"⌚️ You have been conducting this session for - \\033[33m{time_since_start}\\033[0m\")\n",
169
  "\n",
170
  "\n",
 
 
 
 
 
 
 
 
171
  "## Changes extensions and WebUi\n",
172
  "if latest_webui or latest_exstensions:\n",
173
  " action = \"Updating WebUI and Extensions\" if latest_webui and latest_exstensions else (\"WebUI Update\" if latest_webui else \"Update Extensions\")\n",
 
194
  " print(f\"\\r✨ {action} Completed!\")\n",
195
  "\n",
196
  "\n",
197
+ "# === FIXIN EXTENSIONS ===\n",
198
+ "# --- All ---\n",
199
+ "!sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js\n",
200
+ "# --- SageMaker ---\n",
201
+ "if env == \"SageMaker Studio Lab\":\n",
202
+ " with capture.capture_output() as cap:\n",
203
+ " # --- SuperMerger ---\n",
204
+ " !wget -O {webui_path}/extensions/supermerger/scripts/mergers/mergers.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/extensions/supermerger/scripts/mergers/mergers.py\n",
205
+ " del cap\n",
206
+ "\n",
207
+ "\n",
208
  "## Version switching\n",
209
  "if commit_hash:\n",
210
  " print('⏳ Time machine activation...', end=\"\", flush=True)\n",
files_cells/notebooks/ru/downloading_ru.ipynb CHANGED
@@ -168,14 +168,6 @@
168
  " print(f\"⌚️ Вы проводите эту сессию в течение - \\033[33m{time_since_start}\\033[0m\")\n",
169
  "\n",
170
  "\n",
171
- "# === ONLY SAGEMAKER FIXIN EXTENSIONS ===\n",
172
- "if env == \"SageMaker Studio Lab\":\n",
173
- " with capture.capture_output() as cap:\n",
174
- " # --- SuperMerger ---\n",
175
- " !wget -O {webui_path}/extensions/supermerger/scripts/mergers/mergers.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/extensions/supermerger/scripts/mergers/mergers.py\n",
176
- " del cap\n",
177
- "\n",
178
- "\n",
179
  "## Changes extensions and WebUi\n",
180
  "if latest_webui or latest_exstensions:\n",
181
  " action = \"Обновление WebUI и Расширений\" if latest_webui and latest_exstensions else (\"Обновление WebUI\" if latest_webui else \"Обновление Расширений\")\n",
@@ -202,6 +194,17 @@
202
  " print(f\"\\r✨ {action} Завершено!\")\n",
203
  "\n",
204
  "\n",
 
 
 
 
 
 
 
 
 
 
 
205
  "## Version switching\n",
206
  "if commit_hash:\n",
207
  " print('⏳ Активация машины времени...', end=\"\", flush=True)\n",
 
168
  " print(f\"⌚️ Вы проводите эту сессию в течение - \\033[33m{time_since_start}\\033[0m\")\n",
169
  "\n",
170
  "\n",
 
 
 
 
 
 
 
 
171
  "## Changes extensions and WebUi\n",
172
  "if latest_webui or latest_exstensions:\n",
173
  " action = \"Обновление WebUI и Расширений\" if latest_webui and latest_exstensions else (\"Обновление WebUI\" if latest_webui else \"Обновление Расширений\")\n",
 
194
  " print(f\"\\r✨ {action} Завершено!\")\n",
195
  "\n",
196
  "\n",
197
+ "# === FIXIN EXTENSIONS ===\n",
198
+ "# --- All ---\n",
199
+ "!sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js\n",
200
+ "# --- SageMaker ---\n",
201
+ "if env == \"SageMaker Studio Lab\":\n",
202
+ " with capture.capture_output() as cap:\n",
203
+ " # --- SuperMerger ---\n",
204
+ " !wget -O {webui_path}/extensions/supermerger/scripts/mergers/mergers.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/extensions/supermerger/scripts/mergers/mergers.py\n",
205
+ " del cap\n",
206
+ "\n",
207
+ "\n",
208
  "## Version switching\n",
209
  "if commit_hash:\n",
210
  " print('⏳ Активация машины времени...', end=\"\", flush=True)\n",
files_cells/python/en/downloading_en.py CHANGED
@@ -57,7 +57,7 @@ if not os.path.exists(flag_file):
57
  # xformers = "xformers==0.0.20 triton==2.0.0"
58
  # torch = "torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118"
59
 
60
- # automatic1111 update webui to 1.8.0
61
  xformers = "xformers==0.0.23.post1 triton==2.1.0"
62
  torch = "torch==2.1.2+cu121 torchvision==0.16.2+cu121 --extra-index-url https://download.pytorch.org/whl/cu121"
63
 
@@ -155,14 +155,6 @@ else:
155
  print(f"⌚️ You have been conducting this session for - \033[33m{time_since_start}\033[0m")
156
 
157
 
158
- # === ONLY SAGEMAKER FIXIN EXTENSIONS ===
159
- if env == "SageMaker Studio Lab":
160
- with capture.capture_output() as cap:
161
- # --- SuperMerger ---
162
- get_ipython().system('wget -O {webui_path}/extensions/supermerger/scripts/mergers/mergers.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/extensions/supermerger/scripts/mergers/mergers.py')
163
- del cap
164
-
165
-
166
  ## Changes extensions and WebUi
167
  if latest_webui or latest_exstensions:
168
  action = "Updating WebUI and Extensions" if latest_webui and latest_exstensions else ("WebUI Update" if latest_webui else "Update Extensions")
@@ -189,6 +181,17 @@ if latest_webui or latest_exstensions:
189
  print(f"\r✨ {action} Completed!")
190
 
191
 
 
 
 
 
 
 
 
 
 
 
 
192
  ## Version switching
193
  if commit_hash:
194
  print('⏳ Time machine activation...', end="", flush=True)
 
57
  # xformers = "xformers==0.0.20 triton==2.0.0"
58
  # torch = "torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118"
59
 
60
+ # A1111 update webui to 1.8.0
61
  xformers = "xformers==0.0.23.post1 triton==2.1.0"
62
  torch = "torch==2.1.2+cu121 torchvision==0.16.2+cu121 --extra-index-url https://download.pytorch.org/whl/cu121"
63
 
 
155
  print(f"⌚️ You have been conducting this session for - \033[33m{time_since_start}\033[0m")
156
 
157
 
 
 
 
 
 
 
 
 
158
  ## Changes extensions and WebUi
159
  if latest_webui or latest_exstensions:
160
  action = "Updating WebUI and Extensions" if latest_webui and latest_exstensions else ("WebUI Update" if latest_webui else "Update Extensions")
 
181
  print(f"\r✨ {action} Completed!")
182
 
183
 
184
+ # === FIXIN EXTENSIONS ===
185
+ # --- All ---
186
+ get_ipython().system("sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js")
187
+ # --- SageMaker ---
188
+ if env == "SageMaker Studio Lab":
189
+ with capture.capture_output() as cap:
190
+ # --- SuperMerger ---
191
+ get_ipython().system('wget -O {webui_path}/extensions/supermerger/scripts/mergers/mergers.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/extensions/supermerger/scripts/mergers/mergers.py')
192
+ del cap
193
+
194
+
195
  ## Version switching
196
  if commit_hash:
197
  print('⏳ Time machine activation...', end="", flush=True)
files_cells/python/ru/downloading_ru.py CHANGED
@@ -155,14 +155,6 @@ else:
155
  print(f"⌚️ Вы проводите эту сессию в течение - \033[33m{time_since_start}\033[0m")
156
 
157
 
158
- # === ONLY SAGEMAKER FIXIN EXTENSIONS ===
159
- if env == "SageMaker Studio Lab":
160
- with capture.capture_output() as cap:
161
- # --- SuperMerger ---
162
- get_ipython().system('wget -O {webui_path}/extensions/supermerger/scripts/mergers/mergers.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/extensions/supermerger/scripts/mergers/mergers.py')
163
- del cap
164
-
165
-
166
  ## Changes extensions and WebUi
167
  if latest_webui or latest_exstensions:
168
  action = "Обновление WebUI и Расширений" if latest_webui and latest_exstensions else ("Обновление WebUI" if latest_webui else "Обновление Расширений")
@@ -189,6 +181,17 @@ if latest_webui or latest_exstensions:
189
  print(f"\r✨ {action} Завершено!")
190
 
191
 
 
 
 
 
 
 
 
 
 
 
 
192
  ## Version switching
193
  if commit_hash:
194
  print('⏳ Активация машины времени...', end="", flush=True)
 
155
  print(f"⌚️ Вы проводите эту сессию в течение - \033[33m{time_since_start}\033[0m")
156
 
157
 
 
 
 
 
 
 
 
 
158
  ## Changes extensions and WebUi
159
  if latest_webui or latest_exstensions:
160
  action = "Обновление WebUI и Расширений" if latest_webui and latest_exstensions else ("Обновление WebUI" if latest_webui else "Обновление Расширений")
 
181
  print(f"\r✨ {action} Завершено!")
182
 
183
 
184
+ # === FIXIN EXTENSIONS ===
185
+ # --- All ---
186
+ get_ipython().system("sed -i '9,37d' {webui_path}/extensions/Encrypt-Image/javascript/encrypt_images_info.js")
187
+ # --- SageMaker ---
188
+ if env == "SageMaker Studio Lab":
189
+ with capture.capture_output() as cap:
190
+ # --- SuperMerger ---
191
+ get_ipython().system('wget -O {webui_path}/extensions/supermerger/scripts/mergers/mergers.py https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/fixing/extensions/supermerger/scripts/mergers/mergers.py')
192
+ del cap
193
+
194
+
195
  ## Version switching
196
  if commit_hash:
197
  print('⏳ Активация машины времени...', end="", flush=True)