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 quantized model mAP 0 issue #1487

Open
MuhammadBabarAli opened this issue Oct 30, 2024 · 0 comments
Open

Yolov5 quantized model mAP 0 issue #1487

MuhammadBabarAli opened this issue Oct 30, 2024 · 0 comments

Comments

@MuhammadBabarAli
Copy link

I am using Vitis-AI 3.5 to deploy a yolov5 model, I found this tutoiral for quantization: https://www.hackster.io/LogicTronix/yolov5-quantization-compilation-with-vitis-ai-3-0-for-kria-7b005d

When I use the yolov5 val.py file to evaluate the model before quantization I get mAP 0 when I use the .pt model and I get the correct mAP using the .onnx and .torchscript formats(screenshots attached).
ptmAP
onnxmAP

I got the quantization script from this tutorial and i tried to quantize the model and got this error
quantagriauto

I also tried to quantize another model and it successfully quantized but when i evaluate it using val.py with the .pt format i get an error and with the .onnx format i get mAP 0

Please guide me how can I evaluate the mAP of the quantized model and how to fix this error. Thanks

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

1 participant