Skip to content
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 and deepstream accuracy problem #237

Closed
qybing opened this issue Aug 25, 2022 · 12 comments
Closed

yolov5 and deepstream accuracy problem #237

qybing opened this issue Aug 25, 2022 · 12 comments

Comments

@qybing
Copy link

qybing commented Aug 25, 2022

The tensorrt weights I exported using the yolov5 official website are almost the same as the original weight prediction results, and the error range is also within an acceptable range, but the weights I derived according to your method are sometimes very different in the results predicted by Deepstream. Do you have any suggestions?

@marcoslucianops
Copy link
Owner

I'm trying to increase the accuracy of YOLOv5 on DeepStream. The current implementation is the most accurate I've gotten so far. The TensorRT layers (from DeepStream) are the same PyTorch layers, but there's an accuracy drop on DeepStream.

@Arpit1496
Copy link

I am also getting really Low Accuracy on yolov5.
Is this relates to waning I get while converting model "Warning [TRT: Subnormal FP16 values detected." ?

@marcoslucianops
Copy link
Owner

I am also getting really Low Accuracy on yolov5. Is this relates to waning I get while converting model "Warning [TRT: Subnormal FP16 values detected." ?

It's not related to that.

@Arpit1496
Copy link

okay. Any updates on this ?
How can we help to improve the accuracy ?

@marcoslucianops
Copy link
Owner

No updates yet.

@Alberto1404
Copy link

@marcoslucianops Does this happens as well in recent versions of YOLO?

@marcoslucianops
Copy link
Owner

marcoslucianops commented Jan 31, 2023

@marcoslucianops Does this happens as well in recent versions of YOLO?

Yes, but, in my use cases, it's not a relevant drop, so I still using DeepStream and YOLO on projects.

@OctaM
Copy link

OctaM commented Mar 21, 2023

I've noticed this for yoloV8 also. Are there any updates?

@sruap1214
Copy link

I've noticed this for yolov7-tiny. I have a model for 6-classes, and one particular class has a major drop in comparisson with pytorch

@pullmyleg
Copy link

Hi @marcoslucianops we're having this issue too but are keen to help resolve it. Do you have any suggestions on where we should start?

We have also attempted to resolve this by using yolov8 as an onnx model, which had similar results.

We're seeing a significant drop in accuracy for some objects (40%) when running inference with ultralytics yolov8 vs in deep stream. With yolov4 we do not see much of a drop in accuracy comparison to running inference with darknet vs deep stream.

Any tips or comments on where we should begin would be greatly appreciated! Thanks!

@KindOfBlue7
Copy link

Is there a certain YOLO model that works fine after deployment without any issues?

@marcoslucianops
Copy link
Owner

We have also attempted to resolve this by using yolov8 as an onnx model, which had similar results.

#339

Is there a certain YOLO model that works fine after deployment without any issues?

I'm adding new benchmarks to the README.md. You will be able to see the results and choose the best option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants