diff --git a/README.md b/README.md index 6a153e0c864..a1f039d86d5 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/notebooks/ddcolor-image-colorization/ddcolor-image-colorization.ipynb b/notebooks/ddcolor-image-colorization/ddcolor-image-colorization.ipynb index e11b3550203..b0be52ca746 100644 --- a/notebooks/ddcolor-image-colorization/ddcolor-image-colorization.ipynb +++ b/notebooks/ddcolor-image-colorization/ddcolor-image-colorization.ipynb @@ -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", diff --git a/notebooks/dolly-2-instruction-following/dolly-2-instruction-following.ipynb b/notebooks/dolly-2-instruction-following/dolly-2-instruction-following.ipynb index a281a126e4c..c21f4e82ff6 100644 --- a/notebooks/dolly-2-instruction-following/dolly-2-instruction-following.ipynb +++ b/notebooks/dolly-2-instruction-following/dolly-2-instruction-following.ipynb @@ -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", diff --git a/notebooks/dynamicrafter-animating-images/dynamicrafter-animating-images.ipynb b/notebooks/dynamicrafter-animating-images/dynamicrafter-animating-images.ipynb index 985ea01107c..84f64a935cf 100644 --- a/notebooks/dynamicrafter-animating-images/dynamicrafter-animating-images.ipynb +++ b/notebooks/dynamicrafter-animating-images/dynamicrafter-animating-images.ipynb @@ -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" ] }, diff --git a/notebooks/llm-question-answering/llm-question-answering.ipynb b/notebooks/llm-question-answering/llm-question-answering.ipynb index 07b21928a82..7061980490a 100644 --- a/notebooks/llm-question-answering/llm-question-answering.ipynb +++ b/notebooks/llm-question-answering/llm-question-answering.ipynb @@ -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" diff --git a/notebooks/parler-tts-text-to-speech/parler-tts-text-to-speech.ipynb b/notebooks/parler-tts-text-to-speech/parler-tts-text-to-speech.ipynb index 1f43d6e4951..a8e9c832470 100644 --- a/notebooks/parler-tts-text-to-speech/parler-tts-text-to-speech.ipynb +++ b/notebooks/parler-tts-text-to-speech/parler-tts-text-to-speech.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "id": "7ff975e6-b25d-4366-adad-4eeda48a9f37", "metadata": {}, @@ -29,6 +30,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "27608f06-e493-436f-9319-e6a181b66ea4", "metadata": {}, @@ -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": {}, @@ -120,6 +127,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "ba1f8bc5-406b-469c-90db-1f2e620f37e4", "metadata": {}, @@ -156,6 +164,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "d6c3ebe5-a310-43fe-bf12-c53487f0cefe", "metadata": {}, @@ -184,6 +193,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "fb981bec-24b7-46ad-a7b2-13c1f3e45092", "metadata": {}, @@ -275,6 +285,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "3ba48d0c-4e19-4829-84d3-619d11028a19", "metadata": {}, @@ -322,6 +333,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "fc1777b2-c1fd-45be-930a-22df04d8cbd7", "metadata": {}, @@ -389,6 +401,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "5e4b6148-ce3b-4a8c-85a7-b9a66610bb5d", "metadata": {}, @@ -453,6 +466,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "7978bc2e-077d-46cc-acd3-df4f90038730", "metadata": {}, diff --git a/notebooks/surya-line-level-text-detection/surya-line-level-text-detection.ipynb b/notebooks/surya-line-level-text-detection/surya-line-level-text-detection.ipynb index 17e6b36a5c7..8c688bafd47 100644 --- a/notebooks/surya-line-level-text-detection/surya-line-level-text-detection.ipynb +++ b/notebooks/surya-line-level-text-detection/surya-line-level-text-detection.ipynb @@ -1,6 +1,7 @@ { "cells": [ { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "0kAHiJNWe9qA" @@ -41,6 +42,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "umcnTB7Yk_7O" @@ -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" ] }, @@ -109,6 +110,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "HD-qD87rScjt" @@ -200,6 +202,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": { "id": "-WZWedJI9xEp" @@ -257,6 +260,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -303,6 +307,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -369,6 +374,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -436,6 +442,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -470,6 +477,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -522,6 +530,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -635,6 +644,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -682,6 +692,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ diff --git a/notebooks/yolov10-optimization/yolov10-optimization.ipynb b/notebooks/yolov10-optimization/yolov10-optimization.ipynb index 9ed5a601afd..965849b7611 100644 --- a/notebooks/yolov10-optimization/yolov10-optimization.ipynb +++ b/notebooks/yolov10-optimization/yolov10-optimization.ipynb @@ -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"