Mandylove1993 / CUDA-FastBEV

TensorRT deploy and PTQ/QAT tools development for FastBEV, total time only need 6.9ms!!!
MIT License
233 stars 37 forks source link

intrinsic not right #15

Closed LiuXuan66 closed 1 year ago

LiuXuan66 commented 1 year ago

For Nuscenes dataset, when we get the projection matrix in ptq/export_onnx.py line 54, intrinsic = torch.tensor(img_meta["lidar2img"]["intrinsic"][:3, :3]) The intrinsic output is [[1 0 0 0][0 1 0 0][0 0 1 0][0 0 0 1]], which is not the camera intrinsic. The real camera intrinsic is in ['lidar2img_extra']['cam_intrinsic']. So which is right intrinsic?