You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
I got the quantization script from this tutorial and i tried to quantize the model and got this error
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
The text was updated successfully, but these errors were encountered:
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](https://private-user-images.githubusercontent.com/36359078/381546831-e60f82e2-3300-4a5a-a730-4e388dc8d458.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODk2MDYsIm5iZiI6MTczOTk4OTMwNiwicGF0aCI6Ii8zNjM1OTA3OC8zODE1NDY4MzEtZTYwZjgyZTItMzMwMC00YTVhLWE3MzAtNGUzODhkYzhkNDU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE4MjE0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1MWJiZjBkNzRiZjJjMjRjNDc2NmExOTFlOGRjNTE1ZmQ4OTg5ZDAxYWQ3ZmZkNzYzNGFiMDViYWJiNmVhODkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.6zN3kO4N0H0YXIlgC082AUscssGe_jwzMd0mFgBenAs)
![onnxmAP](https://private-user-images.githubusercontent.com/36359078/381549216-4a2c4601-951c-4010-8165-fa6cf2d68160.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODk2MDYsIm5iZiI6MTczOTk4OTMwNiwicGF0aCI6Ii8zNjM1OTA3OC8zODE1NDkyMTYtNGEyYzQ2MDEtOTUxYy00MDEwLTgxNjUtZmE2Y2YyZDY4MTYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE4MjE0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0MDNjNTJkNGI5N2QyYWFmMmQ2ZWQ2NzA2YTQ2ODA2Mzc1Y2MyZGFmYjk2MmNiZjk1YjBmZjExODdjNjE3MGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EXbNssd1T9fhgMP6PrM2P0qWt6CkFhmLTtq2giKwU6k)
I got the quantization script from this tutorial and i tried to quantize the model and got this error
![quantagriauto](https://private-user-images.githubusercontent.com/36359078/381553995-851dee5e-1efd-4c3e-a026-fbcd9260027b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODk2MDYsIm5iZiI6MTczOTk4OTMwNiwicGF0aCI6Ii8zNjM1OTA3OC8zODE1NTM5OTUtODUxZGVlNWUtMWVmZC00YzNlLWEwMjYtZmJjZDkyNjAwMjdiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDE4MjE0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2ZDdlMjBjOGNlOGQ1YzdhYmFlOGU0ZTRmMmYyZWQ0OWY3MTc2NWY4ODE0NTE3NzY4M2UyNjhiZmIxMDRhNjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wTypH9UnZAiSZcHw16tSbHt83Si_fpRzR5j3PE6HKrw)
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
The text was updated successfully, but these errors were encountered: