arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.02186cs.CV
收藏

用于目标检测的Vision Transformers训练策略

Training Strategies for Vision Transformers for Object Detection

Motional

Apoorv Singh

AI总结:

本文评估了多种优化基于Vision Transformers的目标检测推理时间的策略,在精度仅下降3%的情况下将推理时间减少了63%,使其低于传统CNN检测器,适用于预算受限的自动驾驶平台。

摘要:

基于视觉的Transformer凭借其在建模视觉特征间长距离依赖关系方面的强大能力,在自动驾驶感知模块中预测精确的3D边界框方面展现出巨大的应用价值。然而,最初为语言模型设计的Transformer大多只关注性能精度,而对推理时间预算关注较少。对于像自动驾驶这样的安全关键系统,在车载计算平台上进行实时推理是绝对必要的。这使得我们的目标检测算法处于非常紧张的运行时间预算之下。在本文中,我们评估了多种优化基于Vision Transformers的目标检测方法推理时间的策略,并密切关注任何性能变化。我们为这些策略选择的评估指标是精度-运行时间联合优化。此外,为了进行实际的推理时间分析,我们使用TensorRT模块以float32和float16精度对我们的策略进行了性能分析。这是业界在边缘设备上部署其机器学习网络所使用的最常见格式。我们表明,对于评估部分中定义的问题陈述,我们的策略能够将推理时间减少63%,而性能仅下降3%。这些策略甚至将Vision Transformers检测器的推理时间降低到低于传统的基于单图像的CNN检测器(如FCOS)。我们建议从业者使用这些技术,将基于Transformers的庞大视角网络部署在预算受限的机器人平台上。

英文摘要:

Vision-based Transformer have shown huge application in the perception module of autonomous driving in terms of predicting accurate 3D bounding boxes, owing to their strong capability in modeling long-range dependencies between the visual features. However Transformers, initially designed for language models, have mostly focused on the performance accuracy, and not so much on the inference-time budget. For a safety critical system like autonomous driving, real-time inference at the on-board compute is an absolute necessity. This keeps our object detection algorithm under a very tight run-time budget. In this paper, we evaluated a variety of strategies to optimize on the inference-time of vision transformers based object detection methods keeping a close-watch on any performance variations. Our chosen metric for these strategies is accuracy-runtime joint optimization. Moreover, for actual inference-time analysis we profile our strategies with float32 and float16 precision with TensorRT module. This is the most common format used by the industry for deployment of their Machine Learning networks on the edge devices. We showed that our strategies are able to improve inference-time by 63% at the cost of performance drop of mere 3% for our problem-statement defined in evaluation section. These strategies brings down Vision Transformers detectors inference-time even less than traditional single-image based CNN detectors like FCOS. We recommend practitioners use these techniques to deploy Transformers based hefty multi-view networks on a budge-constrained robotic platform.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑