-
-
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
do anyone have yolov5 inference code using openvino using python??. i found some but none of them are working #5408
Comments
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs. Access additional YOLOv5 🚀 resources:
Access additional Ultralytics ⚡ resources:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐! |
i manage to fix the code. now it's working |
divide the image by 255..or normalize the image after resizing the images.. |
@Rajesh-mandal following OpenVINO export PR #6057 we'll be doing a new PR for OpenVINO inference with detect.py/val.py. |
@Rajesh-mandal do you think you could help us with OpenVINO inference now that export is complete? We need to add OpenVino fields to DetectMultBackend() for this purpose. I've never used OpenVINO though so I don't have a good inference example to start from: Lines 277 to 437 in db6ec66
|
I will check it out and let you know
…On Thu, Dec 23, 2021, 8:08 PM Glenn Jocher ***@***.***> wrote:
@Rajesh-mandal <https://github.com/Rajesh-mandal> do you think you could
help us with OpenVINO inference now that export is complete? We need to add
OpenVino fields to DetectMultBackend() for this purpose. I've never used
OpenVINO though so I don't have a good inference example to start from:
https://github.com/ultralytics/yolov5/blob/db6ec66a602a0b64a7db1711acd064eda5daf2b3/models/common.py#L277-L437
—
Reply to this email directly, view it on GitHub
<#5408 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALKZY7APSQVBW7X6GQLZ2WTUSMX73ANCNFSM5HAVZPUA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Rajesh-mandal great, thanks! |
Can you elaborate a bit more with a piece of code? Thanks. |
@victorsoyvictor sure, when preparing images for model inference, you can divide the image by 255 to normalize it. Here's an example using Python: # Load the image
image = load_image_somehow()
# Resize the image
resized_image = resize_image_somehow(image)
# Normalize the image
normalized_image = resized_image / 255.0 This will scale the pixel values in the range [0, 1], which is a common practice for preprocessing images before feeding them into a neural network. |
Search before asking
Question
I have a code but it's not working . i am getting output like below, when i am inferencing with openvino model using python
Additional
No response
The text was updated successfully, but these errors were encountered: