forked from microsoft/onnxruntime-inference-examples
-
Notifications
You must be signed in to change notification settings - Fork 5
Sahar/samples ovep escalation #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
sfatimar
wants to merge
15
commits into
main
Choose a base branch
from
sahar/samples_ovep_escalation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a4d464e
Changes in code style
MaajidKhan c14549d
Update README.md
sfatimar df7aaa9
Update README.md
sfatimar 20c1e37
Update README.md
sfatimar 4520d91
Merge https://github.com/microsoft/onnxruntime-inference-examples int…
MaajidKhan b7c34e1
Update README.md
sfatimar a59b6d5
BGR2RGB
MaajidKhan 998bd9e
Merge branch 'sahar/samples_ovep_escalation' of https://github.com/in…
MaajidKhan a223f41
Samples updates
MaajidKhan 4a814e0
Modified to be consistent
sfatimar 3b7dd7a
hanges to remove the warning messages
sfatimar 4bcb01a
Update README.md
sfatimar 16e79bf
Update README.md
sfatimar 122296b
Update README.md
sfatimar 544805d
Merge branch 'main' into sahar/samples_ovep_escalation
sfatimar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,13 +9,16 @@ The source code for this sample is available [here](https://github.com/microsoft | |
| # How to build | ||
|
|
||
| ## Prerequisites | ||
| 1. [The Intel<sup>®</sup> Distribution of OpenVINO toolkit](https://docs.openvinotoolkit.org/latest/index.html) | ||
| 1. [The Intel<sup>®</sup> Distribution of OpenVINO toolkit](https://docs.openvino.ai/latest/openvino_docs_install_guides_install_runtime.html) | ||
| Please select Install OpenVINO Runtime using an installer | ||
| 2. Please check also the documentation link for the [installer](https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_linux.html#doxid-openvino-docs-install-guides-installing-openvino-linux) | ||
| 2. Download the latest tinyYOLOv2 model from the ONNX Model Zoo. | ||
| This model was adapted from [ONNX Model Zoo](https://github.com/onnx/models).Download the latest version of the [tinyYOLOv2](https://github.com/onnx/models/tree/master/vision/object_detection_segmentation/tiny-yolov2) model from here. | ||
|
|
||
| ## Install ONNX Runtime for OpenVINO Execution Provider | ||
| Please install the onnxruntime-openvino python package from [here](https://github.com/intel/onnxruntime/releases/) | ||
|
|
||
| ## Build steps | ||
| ## Optional Build steps for ONNX Runtime | ||
| [build instructions](https://onnxruntime.ai/docs/build/eps.html#openvino) | ||
|
|
||
| ## Reference Documentation | ||
|
|
@@ -26,18 +29,21 @@ The source code for this sample is available [here](https://github.com/microsoft | |
| * numpy version 1.19.5+ | ||
| * opencv 4.5.1+ | ||
| * python 3+ | ||
| * use any sample video with objects as test input to this sample | ||
| * Download the tinyYOLOv2 model from the ONNX Model Zoo | ||
| * use any sample video with objects as test input to this sample [Download Sample videos](https://github.com/intel-iot-devkit/sample-videos) | ||
| * Download the tinyYOLOv2 model from the [ONNX Model Zoo](https://github.com/onnx/models/tree/master/vision/object_detection_segmentation/tiny-yolov2) | ||
|
|
||
| Note: For all the python package dependencies requirements, check 'requirements.txt' file in the sample directory. You may also install these dependencies with: | ||
| ```bash | ||
| pip3 install -r requirements.txt | ||
| ``` | ||
|
|
||
|
|
||
| ### How to run the sample | ||
| ```bash | ||
| python3 tiny_yolov2_obj_detection_sample.py --h | ||
| ``` | ||
| ## Running the ONNXRuntime OpenVINO Execution Provider sample | ||
| ```bash | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also we need to add --h option to this sample
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolved |
||
| python3 tiny_yolov2_obj_detection_sample.py | ||
| python3 tiny_yolov2_obj_detection_sample.py --video face-demographics-walking-and-pause.mp4 --model tinyyolov2.onnx --device CPU_FP32 | ||
| ``` | ||
|
|
||
| ## To stop the sample from running | ||
|
|
||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also add the direct hyperlink to this page.
https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_linux.html#doxid-openvino-docs-install-guides-installing-openvino-linux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved