fix 1
Browse files
files_cells/notebooks/ru/downloading_ru.ipynb
CHANGED
@@ -80,7 +80,7 @@
|
|
80 |
" },\n",
|
81 |
" \"Kaggle\": {\n",
|
82 |
" \"xformers\": \"pip install -q xformers==0.0.23.post1 triton==2.1.0\",\n",
|
83 |
-
" \"torch\": \"pip install -q torch==2.1.2+cu121 --extra-index-url https://download.pytorch.org/whl/cu121\"\n",
|
84 |
" },\n",
|
85 |
" \"SageMaker Studio Lab\": {\n",
|
86 |
" \"opencv\": \"pip install -q opencv-python-headless\",\n",
|
@@ -100,7 +100,7 @@
|
|
100 |
"\n",
|
101 |
" # Loop through libraries and execute install commands\n",
|
102 |
" for index, (package, install_cmd) in enumerate(install_lib.items(), start=1):\n",
|
103 |
-
" print(f\"\\r
|
104 |
" subprocess.run(install_cmd, shell=True, capture_output=True)\n",
|
105 |
"\n",
|
106 |
" # Additional manual installation steps for specific packages\n",
|
@@ -113,7 +113,7 @@
|
|
113 |
"\n",
|
114 |
" clear_output()\n",
|
115 |
"\n",
|
116 |
-
" #
|
117 |
" with open(flag_file, \"w\") as f:\n",
|
118 |
" f.write(\">W<'\")\n",
|
119 |
"\n",
|
|
|
80 |
" },\n",
|
81 |
" \"Kaggle\": {\n",
|
82 |
" \"xformers\": \"pip install -q xformers==0.0.23.post1 triton==2.1.0\",\n",
|
83 |
+
" \"torch\": \"pip install -q torch==2.1.2+cu121 torchvision==0.16.2+cu121 torchaudio==2.1.2 --extra-index-url https://download.pytorch.org/whl/cu121\"\n",
|
84 |
" },\n",
|
85 |
" \"SageMaker Studio Lab\": {\n",
|
86 |
" \"opencv\": \"pip install -q opencv-python-headless\",\n",
|
|
|
100 |
"\n",
|
101 |
" # Loop through libraries and execute install commands\n",
|
102 |
" for index, (package, install_cmd) in enumerate(install_lib.items(), start=1):\n",
|
103 |
+
" print(f\"\\r[{index}/{len(install_lib)}] \\033[32m>>\\033[0m Installing \\033[33m{package}\\033[96m...\\033[0m\", end='')\n",
|
104 |
" subprocess.run(install_cmd, shell=True, capture_output=True)\n",
|
105 |
"\n",
|
106 |
" # Additional manual installation steps for specific packages\n",
|
|
|
113 |
"\n",
|
114 |
" clear_output()\n",
|
115 |
"\n",
|
116 |
+
" # Save file install lib\n",
|
117 |
" with open(flag_file, \"w\") as f:\n",
|
118 |
" f.write(\">W<'\")\n",
|
119 |
"\n",
|
files_cells/python/ru/downloading_ru.py
CHANGED
@@ -61,7 +61,7 @@ if not os.path.exists(flag_file):
|
|
61 |
},
|
62 |
"Kaggle": {
|
63 |
"xformers": "pip install -q xformers==0.0.23.post1 triton==2.1.0",
|
64 |
-
"torch": "pip install -q torch==2.1.2+cu121 --extra-index-url https://download.pytorch.org/whl/cu121"
|
65 |
},
|
66 |
"SageMaker Studio Lab": {
|
67 |
"opencv": "pip install -q opencv-python-headless",
|
@@ -81,7 +81,7 @@ if not os.path.exists(flag_file):
|
|
81 |
|
82 |
# Loop through libraries and execute install commands
|
83 |
for index, (package, install_cmd) in enumerate(install_lib.items(), start=1):
|
84 |
-
print(f"\r
|
85 |
subprocess.run(install_cmd, shell=True, capture_output=True)
|
86 |
|
87 |
# Additional manual installation steps for specific packages
|
@@ -94,7 +94,7 @@ if not os.path.exists(flag_file):
|
|
94 |
|
95 |
clear_output()
|
96 |
|
97 |
-
#
|
98 |
with open(flag_file, "w") as f:
|
99 |
f.write(">W<'")
|
100 |
|
|
|
61 |
},
|
62 |
"Kaggle": {
|
63 |
"xformers": "pip install -q xformers==0.0.23.post1 triton==2.1.0",
|
64 |
+
"torch": "pip install -q torch==2.1.2+cu121 torchvision==0.16.2+cu121 torchaudio==2.1.2 --extra-index-url https://download.pytorch.org/whl/cu121"
|
65 |
},
|
66 |
"SageMaker Studio Lab": {
|
67 |
"opencv": "pip install -q opencv-python-headless",
|
|
|
81 |
|
82 |
# Loop through libraries and execute install commands
|
83 |
for index, (package, install_cmd) in enumerate(install_lib.items(), start=1):
|
84 |
+
print(f"\r[{index}/{len(install_lib)}] \033[32m>>\033[0m Installing \033[33m{package}\033[96m...\033[0m", end='')
|
85 |
subprocess.run(install_cmd, shell=True, capture_output=True)
|
86 |
|
87 |
# Additional manual installation steps for specific packages
|
|
|
94 |
|
95 |
clear_output()
|
96 |
|
97 |
+
# Save file install lib
|
98 |
with open(flag_file, "w") as f:
|
99 |
f.write(">W<'")
|
100 |
|