NagisaNao commited on
Commit
938adde
·
verified ·
1 Parent(s): 047211d
files_cells/notebooks/en/downloading_en.ipynb CHANGED
@@ -50,9 +50,9 @@
50
  "# ----------------------------------------------\n",
51
  "\n",
52
  "\n",
53
- "# == ONLY SAGEMAKER ===\n",
54
  "if env == \"SageMaker Studio Lab\":\n",
55
- " print(\"Обновление зависимостей, может занять некоторое время...\")\n",
56
  " !pip install -q --upgrade torchsde\n",
57
  " !pip install -q --upgrade pip\n",
58
  " !pip install -q --upgrade psutil\n",
@@ -78,8 +78,11 @@
78
  " if env == \"SageMaker Studio Lab\":\n",
79
  " %pip install -q opencv-python-headless huggingface-hub\n",
80
  " %conda update -q -n base conda\n",
 
81
  " %conda install -q -y glib\n",
82
  "\n",
 
 
83
  " if env == \"Google Colab\":\n",
84
  " !pip install -q xformers==0.0.22.post7\n",
85
  " else:\n",
 
50
  "# ----------------------------------------------\n",
51
  "\n",
52
  "\n",
53
+ "# === ONLY SAGEMAKER ===\n",
54
  "if env == \"SageMaker Studio Lab\":\n",
55
+ " print(\"Updating dependencies, may take some time...\")\n",
56
  " !pip install -q --upgrade torchsde\n",
57
  " !pip install -q --upgrade pip\n",
58
  " !pip install -q --upgrade psutil\n",
 
78
  " if env == \"SageMaker Studio Lab\":\n",
79
  " %pip install -q opencv-python-headless huggingface-hub\n",
80
  " %conda update -q -n base conda\n",
81
+ " %conda install -q -y aria2\n",
82
  " %conda install -q -y glib\n",
83
  "\n",
84
+ " !wget -P /home/studio-lab-user https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/FULL_DELETED_NOTEBOOK.ipynb\n",
85
+ "\n",
86
  " if env == \"Google Colab\":\n",
87
  " !pip install -q xformers==0.0.22.post7\n",
88
  " else:\n",
files_cells/notebooks/ru/downloading_ru.ipynb CHANGED
@@ -50,6 +50,16 @@
50
  "# ----------------------------------------------\n",
51
  "\n",
52
  "\n",
 
 
 
 
 
 
 
 
 
 
53
  "# ================ LIBRARIES ================\n",
54
  "flag_file = f\"{root_path}/libraries_installed.txt\"\n",
55
  "\n",
@@ -68,8 +78,11 @@
68
  " if env == \"SageMaker Studio Lab\":\n",
69
  " %pip install -q opencv-python-headless huggingface-hub\n",
70
  " %conda update -q -n base conda\n",
 
71
  " %conda install -q -y glib\n",
72
  "\n",
 
 
73
  " if env == \"Google Colab\":\n",
74
  " !pip install -q xformers==0.0.22.post7\n",
75
  " else:\n",
 
50
  "# ----------------------------------------------\n",
51
  "\n",
52
  "\n",
53
+ "# === ONLY SAGEMAKER ===\n",
54
+ "if env == \"SageMaker Studio Lab\":\n",
55
+ " print(\"Обновление зависимостей, может занять некоторое время...\")\n",
56
+ " !pip install -q --upgrade torchsde\n",
57
+ " !pip install -q --upgrade pip\n",
58
+ " !pip install -q --upgrade psutil\n",
59
+ "\n",
60
+ " clear_output()\n",
61
+ "\n",
62
+ "\n",
63
  "# ================ LIBRARIES ================\n",
64
  "flag_file = f\"{root_path}/libraries_installed.txt\"\n",
65
  "\n",
 
78
  " if env == \"SageMaker Studio Lab\":\n",
79
  " %pip install -q opencv-python-headless huggingface-hub\n",
80
  " %conda update -q -n base conda\n",
81
+ " %conda install -q -y aria2\n",
82
  " %conda install -q -y glib\n",
83
  "\n",
84
+ " !wget -P /home/studio-lab-user https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/FULL_DELETED_NOTEBOOK.ipynb\n",
85
+ "\n",
86
  " if env == \"Google Colab\":\n",
87
  " !pip install -q xformers==0.0.22.post7\n",
88
  " else:\n",
files_cells/python/en/downloading_en.py CHANGED
@@ -37,9 +37,9 @@ webui_path = f"{root_path}/sdw"
37
  # ----------------------------------------------
38
 
39
 
40
- # == ONLY SAGEMAKER ===
41
  if env == "SageMaker Studio Lab":
42
- print("Обновление зависимостей, может занять некоторое время...")
43
  get_ipython().system('pip install -q --upgrade torchsde')
44
  get_ipython().system('pip install -q --upgrade pip')
45
  get_ipython().system('pip install -q --upgrade psutil')
@@ -65,8 +65,11 @@ if not os.path.exists(flag_file):
65
  if env == "SageMaker Studio Lab":
66
  get_ipython().run_line_magic('pip', 'install -q opencv-python-headless huggingface-hub')
67
  get_ipython().run_line_magic('conda', 'update -q -n base conda')
 
68
  get_ipython().run_line_magic('conda', 'install -q -y glib')
69
 
 
 
70
  if env == "Google Colab":
71
  get_ipython().system('pip install -q xformers==0.0.22.post7')
72
  else:
 
37
  # ----------------------------------------------
38
 
39
 
40
+ # === ONLY SAGEMAKER ===
41
  if env == "SageMaker Studio Lab":
42
+ print("Updating dependencies, may take some time...")
43
  get_ipython().system('pip install -q --upgrade torchsde')
44
  get_ipython().system('pip install -q --upgrade pip')
45
  get_ipython().system('pip install -q --upgrade psutil')
 
65
  if env == "SageMaker Studio Lab":
66
  get_ipython().run_line_magic('pip', 'install -q opencv-python-headless huggingface-hub')
67
  get_ipython().run_line_magic('conda', 'update -q -n base conda')
68
+ get_ipython().run_line_magic('conda', 'install -q -y aria2')
69
  get_ipython().run_line_magic('conda', 'install -q -y glib')
70
 
71
+ get_ipython().system('wget -P /home/studio-lab-user https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/FULL_DELETED_NOTEBOOK.ipynb')
72
+
73
  if env == "Google Colab":
74
  get_ipython().system('pip install -q xformers==0.0.22.post7')
75
  else:
files_cells/python/ru/downloading_ru.py CHANGED
@@ -37,6 +37,16 @@ webui_path = f"{root_path}/sdw"
37
  # ----------------------------------------------
38
 
39
 
 
 
 
 
 
 
 
 
 
 
40
  # ================ LIBRARIES ================
41
  flag_file = f"{root_path}/libraries_installed.txt"
42
 
@@ -55,8 +65,11 @@ if not os.path.exists(flag_file):
55
  if env == "SageMaker Studio Lab":
56
  get_ipython().run_line_magic('pip', 'install -q opencv-python-headless huggingface-hub')
57
  get_ipython().run_line_magic('conda', 'update -q -n base conda')
 
58
  get_ipython().run_line_magic('conda', 'install -q -y glib')
59
 
 
 
60
  if env == "Google Colab":
61
  get_ipython().system('pip install -q xformers==0.0.22.post7')
62
  else:
 
37
  # ----------------------------------------------
38
 
39
 
40
+ # === ONLY SAGEMAKER ===
41
+ if env == "SageMaker Studio Lab":
42
+ print("Обновление зависимостей, может занять некоторое время...")
43
+ get_ipython().system('pip install -q --upgrade torchsde')
44
+ get_ipython().system('pip install -q --upgrade pip')
45
+ get_ipython().system('pip install -q --upgrade psutil')
46
+
47
+ clear_output()
48
+
49
+
50
  # ================ LIBRARIES ================
51
  flag_file = f"{root_path}/libraries_installed.txt"
52
 
 
65
  if env == "SageMaker Studio Lab":
66
  get_ipython().run_line_magic('pip', 'install -q opencv-python-headless huggingface-hub')
67
  get_ipython().run_line_magic('conda', 'update -q -n base conda')
68
+ get_ipython().run_line_magic('conda', 'install -q -y aria2')
69
  get_ipython().run_line_magic('conda', 'install -q -y glib')
70
 
71
+ get_ipython().system('wget -P /home/studio-lab-user https://huggingface.co/NagisaNao/fast_repo/resolve/main/sagemaker/FULL_DELETED_NOTEBOOK.ipynb')
72
+
73
  if env == "Google Colab":
74
  get_ipython().system('pip install -q xformers==0.0.22.post7')
75
  else: