-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Accuracy yolov3 in deepstream lower then darknet #5413
Comments
The accuracy is slightly lower than Darknet, but try change lines 307-108 in nvdsparsebbox_Yolo.cpp
to (Darknet values)
And see if you get better results. |
What approach of resizing is used in TRT for keepning aspect ration? #232 (comment)
What network resolution do you use? |
I don’t know which approach the deepstream uses. But I assume that
Objects on the left, right and top border of the image are marked. |
Also you can try to use https://github.com/ceccocats/tkDNN + TensorRT instead of Deepstream+TensorRT. tkDNN supports YOLOv4 with higher speed than Deepstream. |
In my preliminary tests, tkDNN is slower than DeepStream (used yolov3-tiny on Jetson Nano), but I haven’t tested it property yet. |
Sorry, but I want to use a cascade of neural networks. This is implemented in the deepstream, but for some unknown reason, the classification works better with square boxes from yolo than with the built-in crop function while maintaining the aspect ratio. |
@daliel, do you using patch to non-square bbox in deepstream? |
@marcoslucianops, square - all sides are equal. I changed the output code of the bounding boxes to the deepstream as in my first message (correct works with maintain-aspect-ratio = 1). But the problem is with the detection of objects on the lower border of the image (the object is partially outside the image). Boxes are not displayed when touching the lower border of the image |
@daliel, Try new DeepStream 5: https://developer.nvidia.com/deepstream-sdk |
is letter_box = 1 used for training or detection? |
I use yolov3. Trained with the parameter
letter_box = 1
. In testing, I use the key-letter_box
and I'm happy with the result.When I use deeppstream I use the key
maintain-aspect-ratio = 1
. And as a result, objects that come in contact with the bottom edge of the image are not marked as objects. If I use the keymaintain-aspect-ratio = 0
, then these objects are marked with a bounding box. But at the same time, overall accuracy drops.my code:
The text was updated successfully, but these errors were encountered: