Skip to content

feat(BEVFusion): export bevfusion-camera onnx#183

Merged
KSeangTan merged 34 commits intotier4:mainfrom
KSeangTan:feat/export_bevfusion_camera
Feb 13, 2026
Merged

feat(BEVFusion): export bevfusion-camera onnx#183
KSeangTan merged 34 commits intotier4:mainfrom
KSeangTan:feat/export_bevfusion_camera

Conversation

@KSeangTan
Copy link
Collaborator

@KSeangTan KSeangTan commented Feb 9, 2026

Summary

This PR updates the deployment script in BEVFusion for LiDAR and Camera-only. This PR also cleans up the code in torch2onnx to make it more modular.

Change point

  • Fix the bug when running lidar-only deployment and points is not available [1]
  • Add projects/BEVFusion/configs/deploy/bevfusion_camera_point_bev_tensorrt_dynamic.py for bevfusion_camera_only deployment config [2]
  • Add projects/BEVFusion/configs/deploy/bevfusion_main_body_lidar_only_intensity_tensorrt_dynamic.py for bevfusion_lidar_only with intensities [3]
  • Add projects/BEVFusion/deploy/builder.py to move all code related to ONNX deployment configs to this file [4]
  • Add TrtBevFusionCameraOnlyContainer to container for the camera-only network [5]
  • Add projects/BEVFusion/deploy/exporter.py to move all code related to model export to this file [5]
  • Add projects/BEVFusion/deploy/utils.py to move all code related to config setup to this file [6]
  • Update VoxelDetection to include the cases for images and lidar points [7], [8], [9]

Test performed

  • Both camera-only and lidar-only successfully generates onnx files, and lidar-only onnx was tested in Autoware. However, the camera-only is not tested yet since we need to make few changes first.

@KSeangTan KSeangTan self-assigned this Feb 9, 2026
@KSeangTan KSeangTan requested a review from amadeuszsz February 9, 2026 10:28
@vividf vividf self-requested a review February 13, 2026 05:38
Copy link
Collaborator

@amadeuszsz amadeuszsz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, minor comments.
Please consider if we can update README file 🙏🏻.

@KSeangTan
Copy link
Collaborator Author

Overall LGTM, minor comments. Please consider if we can update README file 🙏🏻.

Thanks! It's updated here: 78f4337

@KSeangTan KSeangTan merged commit ce8c994 into tier4:main Feb 13, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants