-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
Add OpenVINO NNCF Support (Using --int8 flag) #11706
Merged
Merged
Conversation
This file contains 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
Contributor
Using --int8 --data your_dataset.yaml to quant your ov model Signed-off-by: 琪亚娜芽衣贴贴 <39751846+kisaragychihaya@users.noreply.github.com>
for more information, see https://pre-commit.ci
@kisaragychihaya this looks much better!! Thanks for the changes. |
Redundant Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
@kisaragychihaya I tested this and it works!! Merging now. Can you do us a huge favor and also submit a similar PR for YOLOv8 at https://github.com/ultralytics/ultralytics? |
bandakopi
pushed a commit
to irajcode/yolov5
that referenced
this pull request
Jul 20, 2023
* Add OpenVINO NNCF support * Add openvino to flag help text Using --int8 --data your_dataset.yaml to quant your ov model Signed-off-by: 琪亚娜芽衣贴贴 <39751846+kisaragychihaya@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update export.py Redundant Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> --------- Signed-off-by: 琪亚娜芽衣贴贴 <39751846+kisaragychihaya@users.noreply.github.com> Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pleb631
pushed a commit
to pleb631/yolov5
that referenced
this pull request
Jan 6, 2024
* Add OpenVINO NNCF support * Add openvino to flag help text Using --int8 --data your_dataset.yaml to quant your ov model Signed-off-by: 琪亚娜芽衣贴贴 <39751846+kisaragychihaya@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update export.py Redundant Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> --------- Signed-off-by: 琪亚娜芽衣贴贴 <39751846+kisaragychihaya@users.noreply.github.com> Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
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.
🤖 Generated by Copilot at 2925311
Summary
🚀🔧📝
Added INT8 quantization option for OpenVINO models in
export.py
. This allows users to reduce the model size and inference latency by quantizing the weights and activations to 8-bit integers.Walkthrough
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Added INT8 quantization support for OpenVINO exports in the YOLOv5 repository.
📊 Key Changes
export_openvino
function now takes additional parameters:int8
,data
.gen_dataloader
and a transformer functiontransform_fn
for preparing input tensors.int8
flag is set; otherwise, proceed with the existing model conversion.nncf
library is now required for this process.🎯 Purpose & Impact