Lidar_AI_Solution
Lidar_AI_Solution copied to clipboard
Replication of BEVFusion PTQ Error
Thanks for your nice work! I've reproduced BEVFusion PTQ performace with the model(Resnet50) you provided and the script tools/test-mAP-for-cuda.py following https://github.com/NVIDIA-AI-IOT/Lidar_AI_Solution/blob/master/CUDA-BEVFusion/qat/README.md to regenerate Renset50-PTQ model.
But when I train my own BEVFusionModel-Resnet50 (Got 68.10mAP 71.13NDS like yours) and try to use PTQ ,the PTQ process done successfully,however,the nuScenes eval terminate just like:
I printed the boxes info and found some boxes are "nan"!
I suspect there is something wrong in the PTQ process,but I've no idea how to debug it,can you give me some suggestions?
@ihaohe Could you please provide the version information for your CUDA and TensorRT?
@ihaohe Could you please provide the version information for your CUDA and TensorRT?
@liuanqi-libra7
CUDA 11.3 TensorRT-8.5.1.7 pytorch-quantization 2.1.2 torch 1.10.1+cu113 mmcv 1.4.0 mmdet 2.20.0
My BEVFusion model is here model . You can use it to reproduce the error I've met. Thanks for your help.
My BEVFusion model Int8 result onnx_int8. Hope it can help you to locate the problem.
@hopef @liuanqi-libra7 I'm sorry to bother you. Is there any progress about this issue?