Skip to content

Commit 8b68651

Browse files
authored
migrate ob 2024.2 (openvinotoolkit#2119)
1 parent 8288d61 commit 8b68651

File tree

8 files changed

+36
-15
lines changed

8 files changed

+36
-15
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ OpenVINO Notebooks require Python and Git. To get started, select the guide for
5050

5151
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!
5252

53-
**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).
53+
**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).
5454

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

notebooks/ddcolor-image-colorization/ddcolor-image-colorization.ipynb

+1-5
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,9 @@
6464
],
6565
"source": [
6666
"import platform\n",
67-
"import os\n",
6867
"\n",
69-
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
70-
"\n",
71-
"%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",
68+
"%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",
7269
"%pip install -Uq --pre \"openvino\" --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
73-
"%pip install -q \"git+https://github.com/openvinotoolkit/nncf.git\"\n",
7470
"\n",
7571
"if platform.python_version_tuple()[1] in [\"8\", \"9\"]:\n",
7672
" %pip install -q \"gradio-imageslider<=0.0.17\" \"typing-extensions>=4.9.0\"\n",

notebooks/dolly-2-instruction-following/dolly-2-instruction-following.ipynb

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@
8080
"metadata": {},
8181
"outputs": [],
8282
"source": [
83-
"%pip install -Uq pip\n",
83+
"import os\n",
84+
"\n",
85+
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
86+
"\n",
8487
"%pip uninstall -q -y optimum optimum-intel\n",
8588
"%pip install --pre -Uq openvino openvino-tokenizers[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
8689
"%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",

notebooks/dynamicrafter-animating-images/dynamicrafter-animating-images.ipynb

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@
6363
"metadata": {},
6464
"outputs": [],
6565
"source": [
66-
"%pip install -Uq pip\n",
67-
"%pip install --pre -Uq openvino --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
66+
"%pip install \"openvino>=2024.2.0\"\n",
6867
"%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"
6968
]
7069
},

notebooks/llm-question-answering/llm-question-answering.ipynb

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"metadata": {},
5757
"outputs": [],
5858
"source": [
59-
"%pip install -Uq pip\n",
6059
"%pip uninstall -q -y optimum optimum-intel\n",
6160
"%pip install --pre -Uq openvino openvino-tokenizers[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
6261
"%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"

notebooks/parler-tts-text-to-speech/parler-tts-text-to-speech.ipynb

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"id": "7ff975e6-b25d-4366-adad-4eeda48a9f37",
67
"metadata": {},
@@ -29,6 +30,7 @@
2930
]
3031
},
3132
{
33+
"attachments": {},
3234
"cell_type": "markdown",
3335
"id": "27608f06-e493-436f-9319-e6a181b66ea4",
3436
"metadata": {},
@@ -44,11 +46,16 @@
4446
"metadata": {},
4547
"outputs": [],
4648
"source": [
47-
"%pip install --pre -Uq openvino --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
49+
"import os\n",
50+
"\n",
51+
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
52+
"\n",
53+
"%pip install -q \"openvino>=2024.2.0\"\n",
4854
"%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"
4955
]
5056
},
5157
{
58+
"attachments": {},
5259
"cell_type": "markdown",
5360
"id": "592145b2-12b6-4606-9447-cf55048f0548",
5461
"metadata": {},
@@ -120,6 +127,7 @@
120127
]
121128
},
122129
{
130+
"attachments": {},
123131
"cell_type": "markdown",
124132
"id": "ba1f8bc5-406b-469c-90db-1f2e620f37e4",
125133
"metadata": {},
@@ -156,6 +164,7 @@
156164
]
157165
},
158166
{
167+
"attachments": {},
159168
"cell_type": "markdown",
160169
"id": "d6c3ebe5-a310-43fe-bf12-c53487f0cefe",
161170
"metadata": {},
@@ -184,6 +193,7 @@
184193
]
185194
},
186195
{
196+
"attachments": {},
187197
"cell_type": "markdown",
188198
"id": "fb981bec-24b7-46ad-a7b2-13c1f3e45092",
189199
"metadata": {},
@@ -275,6 +285,7 @@
275285
]
276286
},
277287
{
288+
"attachments": {},
278289
"cell_type": "markdown",
279290
"id": "3ba48d0c-4e19-4829-84d3-619d11028a19",
280291
"metadata": {},
@@ -322,6 +333,7 @@
322333
]
323334
},
324335
{
336+
"attachments": {},
325337
"cell_type": "markdown",
326338
"id": "fc1777b2-c1fd-45be-930a-22df04d8cbd7",
327339
"metadata": {},
@@ -389,6 +401,7 @@
389401
]
390402
},
391403
{
404+
"attachments": {},
392405
"cell_type": "markdown",
393406
"id": "5e4b6148-ce3b-4a8c-85a7-b9a66610bb5d",
394407
"metadata": {},
@@ -453,6 +466,7 @@
453466
]
454467
},
455468
{
469+
"attachments": {},
456470
"cell_type": "markdown",
457471
"id": "7978bc2e-077d-46cc-acd3-df4f90038730",
458472
"metadata": {},

notebooks/surya-line-level-text-detection/surya-line-level-text-detection.ipynb

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {
67
"id": "0kAHiJNWe9qA"
@@ -41,6 +42,7 @@
4142
]
4243
},
4344
{
45+
"attachments": {},
4446
"cell_type": "markdown",
4547
"metadata": {
4648
"id": "umcnTB7Yk_7O"
@@ -64,8 +66,7 @@
6466
"\n",
6567
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
6668
"\n",
67-
"%pip install -q --upgrade --pre openvino --extra-index-url \"https://storage.openvinotoolkit.org/simple/wheels/nightly\"\n",
68-
"%pip install -q \"git+https://github.com/openvinotoolkit/nncf.git\"\n",
69+
"%pip install -q \"openvino>=2024.2.0\" \"nncf>=2.11.0\"\n",
6970
"%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"
7071
]
7172
},
@@ -109,6 +110,7 @@
109110
]
110111
},
111112
{
113+
"attachments": {},
112114
"cell_type": "markdown",
113115
"metadata": {
114116
"id": "HD-qD87rScjt"
@@ -200,6 +202,7 @@
200202
]
201203
},
202204
{
205+
"attachments": {},
203206
"cell_type": "markdown",
204207
"metadata": {
205208
"id": "-WZWedJI9xEp"
@@ -257,6 +260,7 @@
257260
]
258261
},
259262
{
263+
"attachments": {},
260264
"cell_type": "markdown",
261265
"metadata": {},
262266
"source": [
@@ -303,6 +307,7 @@
303307
]
304308
},
305309
{
310+
"attachments": {},
306311
"cell_type": "markdown",
307312
"metadata": {},
308313
"source": [
@@ -369,6 +374,7 @@
369374
]
370375
},
371376
{
377+
"attachments": {},
372378
"cell_type": "markdown",
373379
"metadata": {},
374380
"source": [
@@ -436,6 +442,7 @@
436442
]
437443
},
438444
{
445+
"attachments": {},
439446
"cell_type": "markdown",
440447
"metadata": {},
441448
"source": [
@@ -470,6 +477,7 @@
470477
]
471478
},
472479
{
480+
"attachments": {},
473481
"cell_type": "markdown",
474482
"metadata": {},
475483
"source": [
@@ -522,6 +530,7 @@
522530
]
523531
},
524532
{
533+
"attachments": {},
525534
"cell_type": "markdown",
526535
"metadata": {},
527536
"source": [
@@ -635,6 +644,7 @@
635644
]
636645
},
637646
{
647+
"attachments": {},
638648
"cell_type": "markdown",
639649
"metadata": {},
640650
"source": [
@@ -682,6 +692,7 @@
682692
]
683693
},
684694
{
695+
"attachments": {},
685696
"cell_type": "markdown",
686697
"metadata": {},
687698
"source": [

notebooks/yolov10-optimization/yolov10-optimization.ipynb

+1-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@
8787
"\n",
8888
"os.environ[\"GIT_CLONE_PROTECTION_ACTIVE\"] = \"false\"\n",
8989
"\n",
90-
"%pip install -Uq pip\n",
91-
"%pip install -q \"git+https://github.com/openvinotoolkit/nncf.git\"\n",
90+
"%pip install -q \"nncf>=2.11.0\"\n",
9291
"%pip install --pre -Uq openvino --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly\n",
9392
"%pip install -q \"git+https://github.com/THU-MIG/yolov10.git\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
9493
"%pip install -q \"torch>=2.1\" \"torchvision>=0.16\" tqdm opencv-python \"gradio>=4.19\" --extra-index-url https://download.pytorch.org/whl/cpu"

0 commit comments

Comments
 (0)