Skip to content

Commit

Permalink
fix notebooks bugs (openvinotoolkit#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Mar 24, 2024
1 parent e1a53f8 commit 8f7c16e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 362 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,8 @@
"ov_config = {}\n",
"if \"GPU\" in device.value or (\"AUTO\" in device.value and \"GPU\" in core.available_devices):\n",
" ov_config = {\"GPU_DISABLE_WINOGRAD_CONVOLUTION\": \"YES\"}\n",
"quantized_compiled_model = core.compile_model(model=quantized_model, device.value, ov_config)\n",
"compiled_ov_model = core.compile_model(model=ov_model, device.value, ov_config)\n",
"quantized_compiled_model = core.compile_model(quantized_model, device.value, ov_config)\n",
"compiled_ov_model = core.compile_model(ov_model, device.value, ov_config)\n",
"\n",
"pt_result = validation_ac(compiled_ov_model, data_loader, validator)\n",
"quantized_result = validation_ac(quantized_compiled_model, data_loader, validator)\n",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "285a34a4-18ff-493c-8322-71adf1f09622",
"metadata": {},
Expand All @@ -16,7 +15,8 @@
"![image.png](https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/17546d66-12b9-4841-9293-cc878258a186)\n",
"\n",
"\n",
"#### Table of contents:\n\n",
"#### Table of contents:\n",
"\n",
"- [Prerequisites](#Prerequisites)\n",
"- [Instantiate audio compression pipeline](#Instantiate-audio-compression-pipeline)\n",
"- [Explore EnCodec pipeline](#Explore-EnCodec-pipeline)\n",
Expand All @@ -31,7 +31,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "e328a76f-03b8-4972-afa9-36d3f8cc8364",
"metadata": {},
Expand All @@ -49,11 +48,10 @@
"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 gradio \"librosa>=0.8.1\""
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu \"openvino>=2023.3.0\" \"torch>=2.1\" \"torchaudio>=2.1\" encodec gradio \"librosa>=0.8.1\" \"matplotlib<=3.7\""
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "82279f60-a018-4ea8-9b0b-77f0f40903cf",
"metadata": {},
Expand Down Expand Up @@ -110,7 +108,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "2146fbd2-6f15-4e31-b9f6-7c8e69daabd0",
"metadata": {},
Expand Down Expand Up @@ -186,7 +183,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "970e162d-ea7e-4d32-bb35-3c3ed29f9720",
"metadata": {},
Expand Down Expand Up @@ -232,7 +228,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "f51bfa76-25ad-427c-851a-fb61481f02e3",
"metadata": {},
Expand Down Expand Up @@ -270,7 +265,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "22b28212-9cf1-4f89-ac92-da469239e87e",
"metadata": {},
Expand Down Expand Up @@ -305,7 +299,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "94c1a9dd-09bc-4369-8b55-935db09c729b",
"metadata": {},
Expand All @@ -314,7 +307,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "41301b36-2757-48c7-91dd-5c2d38d5c467",
"metadata": {},
Expand Down Expand Up @@ -356,7 +348,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "40e394db-512b-4b87-bfd0-fd5afe8ef1a3",
"metadata": {},
Expand Down Expand Up @@ -408,7 +399,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "ac4cc2e5-fd24-409e-8104-77d8c24bfa7d",
"metadata": {},
Expand All @@ -417,7 +407,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "44271e54-ea69-4da6-a84b-838b7896c586",
"metadata": {},
Expand Down Expand Up @@ -510,7 +499,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "bc8cf59c-a3fa-48ea-9f18-0979860f0aa9",
"metadata": {},
Expand All @@ -526,7 +514,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "e32cea0b-e92c-40e7-912f-b5d47a43f921",
"metadata": {},
Expand Down Expand Up @@ -636,7 +623,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "21b2e5b4-035c-4123-8257-00cd3f4af3fc",
"metadata": {},
Expand Down Expand Up @@ -831,4 +817,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
Loading

0 comments on commit 8f7c16e

Please sign in to comment.