-
Notifications
You must be signed in to change notification settings - Fork 655
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
Yolov5 multiple objects detection in a video #2754
Comments
To debug this problem, the first observation from the output picture is that the bounding boxes are not at the right positions. So in the detection result You can take a look at this example: Also the first check might be the check on the onnx model. You can use python to load it and inference, and see what the correct |
|
A few obvious issue: First of all,
Another small issue is you have the following code:
|
I tried your model and it seems working fine:
|
Ok, thanks a lot! I'll check it as best I can. |
Yes. you can use |
Thank you all! Option 1 (was):
Option 2 (become, synset passed from code, master)
Option 3 (become, synset passed from txt, synset-in-txt)
Result (this workaround seems to be working): But it seems a bit odd to me that option 1 and option 2 doesn't work, while option 3 does. Although outwardly there is not much difference between them. Especially when you consider that all classes seem to be defined correctly in option 2 Thanks for help again! If you think that it isn't a bug - you can close that issue :) |
I don't see any difference between all options, I just test with the following code, and works fine:
and:
|
Description
In my quarkus project I'm trying to use DJL with a yolov5x model for multiple objects detection in a video. I passed all ms coco class names to the synset and then wanted to filter a result. But too many objects were detected and all of them had wrong bounding boxes
Expected Behavior
Correct detection with correct bounding boxes
Error image example
How to Reproduce?
Example
Steps to reproduce
Just run the app as the README said
What have you tried to solve it?
I've tried to pass single class name to synset (80 times), but I need several classes and it starts to detect all objects as passed class.
Environment Info
Engine.debugEnvironment()
result:The text was updated successfully, but these errors were encountered: