[论文解读] BEVPoolv2: A Cutting-edge Implementation of BEVDet Toward Deployment
BEVPoolv2 通过移除繁重的 frustum 预处理来提升 BEVDet 的部署速度、降低内存占用,并提供 TensorRT 支持与面向部署的特性。
We release a new codebase version of the BEVDet, dubbed branch dev2.0. With dev2.0, we propose BEVPoolv2 upgrade the view transformation process from the perspective of engineering optimization, making it free from a huge burden in both calculation and storage aspects. It achieves this by omitting the calculation and preprocessing of the large frustum feature. As a result, it can be processed within 0.82 ms even with a large input resolution of 640x1600, which is 15.1 times the previous fastest implementation. Besides, it is also less cache consumptive when compared with the previous implementation, naturally as it no longer needs to store the large frustum feature. Last but not least, this also makes the deployment to the other backend handy. We offer an example of deployment to the TensorRT backend in branch dev2.0 and show how fast the BEVDet paradigm can be processed on it. Other than BEVPoolv2, we also select and integrate some substantial progress that was proposed in the past year. As an example configuration, BEVDet4D-R50-Depth-CBGS scores 52.3 NDS on the NuScenes validation set and can be processed at a speed of 16.4 FPS with the PyTorch backend. The code has been released to facilitate the study on https://github.com/HuangJunJie2017/BEVDet/tree/dev2.0.
研究动机与目标
- 提升基于 BEVDet 的多相机 3D 目标检测的部署效率。
- 消除大型 frustum 特征预处理,以降低计算量和内存占用。
- 展示在不同分辨率下的高推理速度并实现边缘设备部署。
- 整合 TensorRT 后端并总结面向部署的配置(如 BEVDet4D 变体)。
- 提供一个示例 BEVDet4D 配置(BEVDet4D-R50-Depth-CBGS)及其性能。
提出的方法
- 用 BEVPoolv2 替换 Lift-Splat-Shoot 视图变换器,避免计算、存储和预处理大型 frustum 特征。
- 离线预计算并预处理体素索引和 frustum 索引;在推理期间通过索引访问 frustum 点特征。
- 使用固定的预计算索引来追踪 frustum 点,降低内存与计算需求。
- 支持 TensorRT 以实现更快推理(包括 FP16),并在不同分辨率下报告后端特定延迟。
- 将感受野原点对齐到自我(IMU)坐标系中心,遵循 BEVDepth 以保持一致性。
实验结果
研究问题
- RQ1在保持或提升检测性能的同时,BEVPoolv2 能否消除繁重的 frustum 特征预处理?
- RQ2通过基于索引的预处理和离线预计算可以实现多少的加速和内存节省?
- RQ3在标准输入分辨率下,将 BEVDet 部署在 TensorRT 与 PyTorch 上的延迟增益是多少?
- RQ4BEVPoolv2 如何影响对高分辨率输入(如 640×1760)以及边缘设备部署的可扩展性?
- RQ5面向部署的 BEVDet4D 配置(如 BEVDet4D-R50-Depth-CBGS)在准确度和速度方面的性能如何?
主要发现
- BEVPoolv2 在 256×704 的预计算加速下达到高达 4,863 PFS,在 640×1760 下达到 1,509 FPS。
- 内存使用显著降低,256×704 为先前最快实现的 5.7%,640×1760 为 2.0%。
- TensorRT-FP16 将 BEVDet-R50 256×704 在 RTX 3090 上提升到 7.2 ms(≈138.9 FPS),相比 PyTorch 的 37.9 ms。
- 据说 BEVPoolv2 在 256×704 比以前最快快 3.1 倍,在 640×1760 快 8.2 倍(使用新实现)。
- BEVDet4D-R50-Depth-CBGS 配置在 RTX 3090 上达到 52.3 NDS,16.4 FPS,展示了集成特征的部署导向性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。