Skip to content

Commit

Permalink
migrate ob 2024.2 (#2119)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed Jun 18, 2024
1 parent 8288d61 commit 8b68651
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ OpenVINO Notebooks require Python and Git. To get started, select the guide for

Explore Jupyter notebooks using this [page](https://openvinotoolkit.github.io/openvino_notebooks/), select one related to your needs or give them all a try. Good Luck!

**NOTE: The main branch of this repository was updated to support the new OpenVINO 2024.1 release.** To upgrade to the new release version, please run `pip install --upgrade -r requirements.txt` in your `openvino_env` virtual environment. If you need to install for the first time, see the [Installation Guide](#-installation-guide) section below. If you wish to use the previous release version of OpenVINO, please checkout the [2024.0 branch](https://github.com/openvinotoolkit/openvino_notebooks/tree/2024.0). If you wish to use the previous Long Term Support (LTS) version of OpenVINO check out the [2023.3 branch](https://github.com/openvinotoolkit/openvino_notebooks/tree/2023.3).
**NOTE: The main branch of this repository was updated to support the new OpenVINO 2024.2 release.** To upgrade to the new release version, please run `pip install --upgrade -r requirements.txt` in your `openvino_env` virtual environment. If you need to install for the first time, see the [Installation Guide](#-installation-guide) section below. If you wish to use the previous release version of OpenVINO, please checkout the [2024.1 branch](https://github.com/openvinotoolkit/openvino_notebooks/tree/2024.1). If you wish to use the previous Long Term Support (LTS) version of OpenVINO check out the [2023.3 branch](https://github.com/openvinotoolkit/openvino_notebooks/tree/2023.3).

If you need help, please start a GitHub [Discussion](https://github.com/openvinotoolkit/openvino_notebooks/discussions).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,9 @@
],
"source": [
"import platform\n",
"import os\n",
"\n",
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
"\n",
"%pip install -q timm \"torch>=2.1\" \"torchvision\" \"timm\" \"opencv_python\" \"pillow\" \"PyYAML\" \"scipy\" \"scikit-image\" \"datasets\" \"gradio>=4.19\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"nncf>=2.11.0\" \"torch>=2.1\" \"torchvision\" \"timm\" \"opencv_python\" \"pillow\" \"PyYAML\" \"scipy\" \"scikit-image\" \"datasets\" \"gradio>=4.19\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -Uq --pre \"openvino\" --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
"%pip install -q \"git+https://github.com/openvinotoolkit/nncf.git\"\n",
"\n",
"if platform.python_version_tuple()[1] in [\"8\", \"9\"]:\n",
" %pip install -q \"gradio-imageslider<=0.0.17\" \"typing-extensions>=4.9.0\"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install -Uq pip\n",
"import os\n",
"\n",
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
"\n",
"%pip uninstall -q -y optimum optimum-intel\n",
"%pip install --pre -Uq openvino openvino-tokenizers[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
"%pip install -q \"diffusers>=0.16.1\" \"transformers>=4.33.0\" \"torch>=2.1\" \"nncf>=2.10.0\" onnx \"gradio>=4.19\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install -Uq pip\n",
"%pip install --pre -Uq openvino --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
"%pip install \"openvino>=2024.2.0\"\n",
"%pip install -q \"gradio>=4.19\" omegaconf decord einops pytorch_lightning kornia open_clip_torch transformers av opencv-python torch --extra-index-url https://download.pytorch.org/whl/cpu"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install -Uq pip\n",
"%pip uninstall -q -y optimum optimum-intel\n",
"%pip install --pre -Uq openvino openvino-tokenizers[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
"%pip install -q \"torch>=2.1\" \"nncf>=2.7\" \"transformers>=4.40.0\" onnx \"optimum>=1.16.1\" \"accelerate\" \"datasets>=2.14.6\" \"gradio>=4.19\" \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "7ff975e6-b25d-4366-adad-4eeda48a9f37",
"metadata": {},
Expand Down Expand Up @@ -29,6 +30,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "27608f06-e493-436f-9319-e6a181b66ea4",
"metadata": {},
Expand All @@ -44,11 +46,16 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --pre -Uq openvino --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
"import os\n",
"\n",
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
"\n",
"%pip install -q \"openvino>=2024.2.0\"\n",
"%pip install -q git+https://github.com/huggingface/parler-tts.git \"gradio>=4.19\" transformers \"torch>=2.2\" --extra-index-url https://download.pytorch.org/whl/cpu"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "592145b2-12b6-4606-9447-cf55048f0548",
"metadata": {},
Expand Down Expand Up @@ -120,6 +127,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "ba1f8bc5-406b-469c-90db-1f2e620f37e4",
"metadata": {},
Expand Down Expand Up @@ -156,6 +164,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d6c3ebe5-a310-43fe-bf12-c53487f0cefe",
"metadata": {},
Expand Down Expand Up @@ -184,6 +193,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "fb981bec-24b7-46ad-a7b2-13c1f3e45092",
"metadata": {},
Expand Down Expand Up @@ -275,6 +285,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "3ba48d0c-4e19-4829-84d3-619d11028a19",
"metadata": {},
Expand Down Expand Up @@ -322,6 +333,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "fc1777b2-c1fd-45be-930a-22df04d8cbd7",
"metadata": {},
Expand Down Expand Up @@ -389,6 +401,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "5e4b6148-ce3b-4a8c-85a7-b9a66610bb5d",
"metadata": {},
Expand Down Expand Up @@ -453,6 +466,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "7978bc2e-077d-46cc-acd3-df4f90038730",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "0kAHiJNWe9qA"
Expand Down Expand Up @@ -41,6 +42,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "umcnTB7Yk_7O"
Expand All @@ -64,8 +66,7 @@
"\n",
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
"\n",
"%pip install -q --upgrade --pre openvino --extra-index-url \"https://storage.openvinotoolkit.org/simple/wheels/nightly\"\n",
"%pip install -q \"git+https://github.com/openvinotoolkit/nncf.git\"\n",
"%pip install -q \"openvino>=2024.2.0\" \"nncf>=2.11.0\"\n",
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu \"transformers<=4.36.2\" \"surya-ocr==0.4.0\" torch datasets \"gradio>=4.19\" Pillow"
]
},
Expand Down Expand Up @@ -109,6 +110,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "HD-qD87rScjt"
Expand Down Expand Up @@ -200,6 +202,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "-WZWedJI9xEp"
Expand Down Expand Up @@ -257,6 +260,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -303,6 +307,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -369,6 +374,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -436,6 +442,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -470,6 +477,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -522,6 +530,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -635,6 +644,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -682,6 +692,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down
3 changes: 1 addition & 2 deletions notebooks/yolov10-optimization/yolov10-optimization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@
"\n",
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
"\n",
"%pip install -Uq pip\n",
"%pip install -q \"git+https://github.com/openvinotoolkit/nncf.git\"\n",
"%pip install -q \"nncf>=2.11.0\"\n",
"%pip install --pre -Uq openvino --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
"%pip install -q \"git+https://github.com/THU-MIG/yolov10.git\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"torch>=2.1\" \"torchvision>=0.16\" tqdm opencv-python \"gradio>=4.19\" --extra-index-url https://download.pytorch.org/whl/cpu"
Expand Down

0 comments on commit 8b68651

Please sign in to comment.