Conversation
Contributor
There was a problem hiding this comment.
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.ipynbnotebook and a bundled sample image for the walkthrough. - Added a local
notebook_utils.pyhelper 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 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 |
Co-authored-by: morteza89 <51894034+morteza89@users.noreply.github.com>
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
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>
praveenkk123
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.