Skip to content

Add OpenVINO auto-device notebook - #547

Merged
morteza89 merged 7 commits into
mainfrom
notebook3
Aug 27, 2026
Merged

Add OpenVINO auto-device notebook#547
morteza89 merged 7 commits into
mainfrom
notebook3

Conversation

@morteza89

Copy link
Copy Markdown
Contributor

No description provided.

@morteza89
morteza89 requested review from praveenkk123 and a lite review from Copilot August 27, 2026 16:50
Comment thread openvino_notebooks/auto-device/notebook_utils.py Fixed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new OpenVINO “AUTO” (automatic device selection) notebook sample, including a self-contained uv environment and local helper utilities, to demonstrate device discovery, compilation/first-inference latency behavior, and performance-hint differences across heterogeneous devices.

Changes:

  • Added the auto-device.ipynb notebook and a bundled sample image for the walkthrough.
  • Added a local notebook_utils.py helper module used by the notebook (e.g., telemetry).
  • Added uv/Python project scaffolding and documentation for running the notebook reproducibly.

Reviewed changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
openvino_notebooks/auto-device/README.md Documents notebook goals, setup via uv, expected output, troubleshooting, and references.
openvino_notebooks/auto-device/pyproject.toml Defines the notebook’s reproducible Python environment and dependencies.
openvino_notebooks/auto-device/notebook_utils.py Provides notebook helper utilities (telemetry, widgets, download helpers, visualization helpers, etc.).
openvino_notebooks/auto-device/.python-version Pins the local Python version for consistent execution.
openvino_notebooks/auto-device/.gitignore Ignores local environment and generated artifacts (e.g., .venv/, model/).
openvino_notebooks/auto-device/auto-device.ipynb Main notebook content demonstrating OpenVINO AUTO device selection behavior.
openvino_notebooks/auto-device/uv.lock Locks the resolved dependency set for reproducible installs.
openvino_notebooks/auto-device/data/coco.jpg Bundled sample image used by the notebook.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread openvino_notebooks/auto-device/pyproject.toml
Comment thread openvino_notebooks/auto-device/notebook_utils.py
Comment on lines +607 to +611
def show_message(self):
from IPython.display import HTML, display

display(HTML(f"""<div class="alert alert-{self.alert_class}">{self.message}"""))

Comment on lines +435 to +440
if len(np.unique(result)) > colormap.shape[0]:
raise ValueError(
f"Expected max {colormap[0]} classes in result, got {len(np.unique(result))} "
"different output values. Please make sure to convert the network output to "
"pixel values before calling this function."
)
Comment on lines +114 to +116
:param show_progress: If True, show an TQDM ProgressBar
:param silent: If True, do not print a message if the file already exists
:param timeout: Number of seconds before cancelling the connection attempt
Comment thread openvino_notebooks/auto-device/notebook_utils.py Outdated
Co-authored-by: morteza89 <51894034+morteza89@users.noreply.github.com>
morteza89 and others added 3 commits August 27, 2026 09:58
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
praveenkk123
praveenkk123 previously approved these changes Aug 27, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: morteza89 <51894034+morteza89@users.noreply.github.com>
@morteza89
morteza89 merged commit d5ff028 into main Aug 27, 2026
3 checks passed
@morteza89
morteza89 deleted the notebook3 branch August 27, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants