Skip to content

Commit

Permalink
Merge branch 'latest' into add-clone-repo-with-git-checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-mokrov authored Nov 6, 2024
2 parents 3d5aff9 + fc60214 commit 3419072
Show file tree
Hide file tree
Showing 32 changed files with 1,099 additions and 171 deletions.
4 changes: 3 additions & 1 deletion notebooks/animate-anyone/animate-anyone.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
"REPO_PATH = Path(\"Moore-AnimateAnyone\")\n",
"if not REPO_PATH.exists():\n",
" !git clone -q \"https://github.com/itrushkin/Moore-AnimateAnyone.git\"\n",
"%pip install -q \"torch>=2.1\" torchvision einops omegaconf \"diffusers<=0.24\" transformers av accelerate \"openvino>=2024.0\" \"nncf>=2.9.0\" \"gradio>=4.19\" --extra-index-url \"https://download.pytorch.org/whl/cpu\"\n",
"%pip install -q \"torch>=2.1\" torchvision einops omegaconf \"diffusers<=0.24\" \"huggingface-hub<0.26.0\" transformers av accelerate \"gradio>=4.19\" --extra-index-url \"https://download.pytorch.org/whl/cpu\"\n",
"%pip install -q \"openvino>=2024.0\" \"nncf>=2.9.0\"\n",
"\n",
"import sys\n",
"\n",
"sys.path.insert(0, str(REPO_PATH.resolve()))\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"if platform.system() != \"Windows\":\n",
" %pip install -q \"matplotlib>=3.4\" \"tensorflow_datasets>=4.9.0\"\n",
"else:\n",
" %pip install -q \"matplotlib>=3.4,<3.7\" \"tensorflow_datasets>=4.9.0,<4.9.3\""
" %pip install -q \"matplotlib>=3.4\" \"tensorflow_datasets>=4.9.0,<4.9.3\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,8 @@
"metadata": {},
"outputs": [],
"source": [
"import platform\n",
"\n",
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu \"torch>=2.1.0\" torchvision \"transformers>=4.26.0\" \"gradio>=4.19\" \"openvino>=2023.3.0\" \"datasets>=2.14.6\" \"nncf>=2.8.1\" \"tqdm\"\n",
"if platform.system() != \"Windows\":\n",
" %pip install -q \"matplotlib>=3.4\"\n",
"else:\n",
" %pip install -q \"matplotlib>=3.4,<3.7\""
"%pip install -q \"matplotlib>=3.4\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"source": [
"# Install requirements\n",
"%pip install -q \"openvino>=2023.1.0\"\n",
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu transformers \"numpy<2\" \"torch>=2.1\" \"gradio>=4.19\""
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu transformers \"numpy<2\" \"torch>=2.1\" \"gradio>=4.19\" \"matplotlib>=3.4\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu \"openvino>=2023.3.0\" \"torch>=2.1\" \"torchaudio>=2.1\" \"encodec>=0.1.1\" \"gradio>=4.19\" \"librosa>=0.8.1\" \"matplotlib<=3.7\" tqdm"
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu \"openvino>=2023.3.0\" \"torch>=2.1\" \"torchaudio>=2.1\" \"encodec>=0.1.1\" \"gradio>=4.19\" \"librosa>=0.8.1\" \"matplotlib>=3.4\" tqdm"
]
},
{
Expand Down
8 changes: 2 additions & 6 deletions notebooks/explainable-ai-1-basic/explainable-ai-1-basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@
"metadata": {},
"outputs": [],
"source": [
"import platform\n",
"\n",
"# Install openvino package\n",
"%pip install -q \"openvino>=2024.2.0\" opencv-python tqdm\n",
"\n",
Expand All @@ -64,10 +62,7 @@
"%pip install -q -U \"numpy==1.*\"\n",
"%pip install -q scipy\n",
"\n",
"if platform.system() != \"Windows\":\n",
" %pip install -q \"matplotlib>=3.4\"\n",
"else:\n",
" %pip install -q \"matplotlib>=3.4,<3.7\""
"%pip install -q \"matplotlib>=3.4\""
]
},
{
Expand Down Expand Up @@ -384,6 +379,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "6d6e107b",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@
"%pip install -q -U \"numpy==1.*\"\n",
"%pip install -q scipy\n",
"\n",
"if platform.system() != \"Windows\":\n",
" %pip install -q \"matplotlib>=3.4\"\n",
"else:\n",
" %pip install -q \"matplotlib>=3.4,<3.7\""
"%pip install -q \"matplotlib>=3.4\""
]
},
{
Expand Down Expand Up @@ -471,6 +468,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -789,6 +787,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -864,6 +863,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -929,6 +929,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@
"%pip install -q -U \"numpy==1.*\"\n",
"%pip install -q scipy\n",
"\n",
"if platform.system() != \"Windows\":\n",
" %pip install -q \"matplotlib>=3.4\"\n",
"else:\n",
" %pip install -q \"matplotlib>=3.4,<3.7\""
"%pip install -q \"matplotlib>=3.4\""
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions notebooks/film-slowmo/film-slowmo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"metadata": {},
"outputs": [],
"source": [
"import platform\n",
"import os\n",
"\n",
"%pip install -q \"tensorflow-macos>=2.5; sys_platform == 'darwin' and platform_machine == 'arm64' and python_version > '3.8'\" # macOS M1 and M2\n",
Expand All @@ -79,10 +78,7 @@
"\n",
"%pip install -q tensorflow_hub tf_keras numpy \"opencv-python\" tqdm \"gradio>=4.19\" Pillow \"openvino>=2023.2.0\"\n",
"\n",
"if platform.system() != \"Windows\":\n",
" %pip install -q \"matplotlib>=3.4\"\n",
"else:\n",
" %pip install -q \"matplotlib>=3.4,<3.7\""
"%pip install -q \"matplotlib>=3.4\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/gpu-device/gpu-device.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
"ov_model_path = base_model_dir / model_name / f\"{model_name}.xml\"\n",
"\n",
"if not (ov_model_path).exists():\n",
" hf_hub.snapshot_download(\"katuni4ka/ssdlite_mobilenet_v2_fp16\", local_dir=base_model_dir)\n",
" hf_hub.snapshot_download(\"katuni4ka/ssdlite_mobilenet_v2_fp16\", local_dir=base_model_dir / model_name)\n",
"\n",
"model = core.read_model(ov_model_path)"
]
Expand Down
9 changes: 1 addition & 8 deletions notebooks/image-bind/image-bind.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,9 @@
},
"outputs": [],
"source": [
"import platform\n",
"\n",
"%pip install -q \"torch>=2.0.1\" \"torchvision>=0.15.2,<0.17.0\" \"torchaudio>=2.0.2\" \"matplotlib>=3.4\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q datasets regex librosa soundfile pytorchvideo ftfy \"timm>=0.6.7\" einops fvcore \"openvino>=2024.0.0\" \"nncf>=2.9.0\" numpy scipy --extra-index-url https://download.pytorch.org/whl/cpu\n",
"\n",
"\n",
"if platform.system() != \"Windows\":\n",
" %pip install -q \"matplotlib>=3.4\"\n",
"else:\n",
" %pip install -q \"matplotlib>=3.4,<3.7\""
"%pip install -q \"matplotlib>=3.4\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"\n",
"%pip install -q \"clip-benchmark>=1.4.0\" \"datasets>=2.8.0\" \"open-clip-torch>=2.20.0\" \"timm>=0.9.5\" \"torch>=1.13.1\" \"torchvision>=0.14.1\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"\n",
"%pip install -q \"openvino>=2024.0.0\" \"gradio>=4.19\" \"matplotlib\" \"Pillow\" \"altair\" \"pandas\" \"opencv-python\" \"tqdm\" \"matplotlib>=3.4\""
"%pip install -q \"openvino>=2024.0.0\" \"gradio>=4.19\" \"matplotlib>=3.4\" \"Pillow\" \"altair\" \"pandas\" \"opencv-python\" \"tqdm\" \"matplotlib>=3.4\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/qrcode-monster/qrcode-monster.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"outputs": [],
"source": [
"%pip install -q accelerate \"diffusers>=0.24.0\" transformers \"torch>=2.1\" \"gradio>=4.19\" qrcode opencv-python \"peft>=0.6.2\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"openvino>=2023.1.0\" \"nncf>=2.7.0\""
"%pip install -q \"openvino>=2023.1.0\" \"nncf>=2.7.0\" \"matplotlib>=3.4\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"outputs": [],
"source": [
"%pip install -q torch torchvision pillow huggingface_hub \"openvino>=2024.0.0\" matplotlib \"gradio>=4.15\" \"transformers>=4.39.1\" tqdm --extra-index-url https://download.pytorch.org/whl/cpu"
"%pip install -q torch torchvision pillow huggingface_hub \"openvino>=2024.0.0\" \"matplotlib>=3.4\" \"gradio>=4.15\" \"transformers>=4.39.1\" tqdm --extra-index-url https://download.pytorch.org/whl/cpu"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,13 @@
"metadata": {},
"outputs": [],
"source": [
"import platform\n",
"\n",
"%pip install -Uq pip\n",
"%pip install --upgrade --pre openvino-tokenizers \"openvino>=2024.2.0\" --extra-index-url \"https://storage.openvinotoolkit.org/simple/wheels/nightly\"\n",
"%pip install -q \"tensorflow-macos>=2.5; sys_platform == 'darwin' and platform_machine == 'arm64' and python_version > '3.8'\" # macOS M1 and M2\n",
"%pip install -q \"tensorflow>=2.5; sys_platform == 'darwin' and platform_machine != 'arm64' and python_version > '3.8'\" # macOS x86\n",
"%pip install -q \"tensorflow>=2.5; sys_platform != 'darwin' and python_version > '3.8'\"\n",
"\n",
"%pip install -q tensorflow_hub tf_keras numpy \"opencv-python\" \"nncf>=2.10.0\"\n",
"if platform.system() != \"Windows\":\n",
" %pip install -q \"matplotlib>=3.4\"\n",
"else:\n",
" %pip install -q \"matplotlib>=3.4,<3.7\""
"%pip install -q \"matplotlib>=3.4\""
]
},
{
Expand Down
12 changes: 5 additions & 7 deletions notebooks/sam2-image-segmentation/segment-anything-2-image.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,10 @@
"metadata": {},
"outputs": [],
"source": [
"import platform\n",
"\n",
"\n",
"%pip install -q \"gradio>=4.13,<4.41.0\" \"fastapi==0.112.4\" \"openvino>=2024.4.0\" \"nncf>=2.13\" \"torch>=2.3.1\" \"torchvision>=0.18.1\" opencv-python tqdm numpy --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install \"iopath>=0.1.10\" \"pillow>=9.4.0\" \"hydra-core>=1.3.2\"\n",
"\n",
"if platform.system() != \"Windows\":\n",
" %pip install -q \"matplotlib>=3.4\"\n",
"else:\n",
" %pip install -q \"matplotlib>=3.4,<3.7\""
"%pip install -q \"matplotlib>=3.4\""
]
},
{
Expand All @@ -118,6 +112,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "dbe4ee93",
"metadata": {},
Expand Down Expand Up @@ -185,6 +180,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "7839ced0",
"metadata": {},
Expand All @@ -194,6 +190,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "6d0a8a1a",
"metadata": {},
Expand Down Expand Up @@ -252,6 +249,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d798fbde",
"metadata": {},
Expand Down
Loading

0 comments on commit 3419072

Please sign in to comment.