在边缘AI设备上部署深度神经网络进行目标检测,并进行优化
Deployment of Deep Neural Networks for Object Detection on Edge AI Devices with Runtime Optimization
摘要:
深度神经网络已被证明对于汽车场景理解越来越重要,新算法提供了不断改进的检测性能。然而,很少强调在嵌入式环境中部署的经验和需求。因此,我们对边缘AI平台上两个代表性目标检测网络的部署进行了案例研究。特别地,我们考虑RetinaNet用于基于图像的2D目标检测,PointPillars用于基于LiDAR的3D目标检测。我们描述了将算法从PyTorch训练环境转换到部署环境所需的修改,同时考虑了可用的工具。我们使用TensorRT和TorchScript两个不同的库来评估部署的DNN的运行时。在我们的实验中,我们观察到TensorRT对于卷积层和TorchScript对于全连接层的轻微优势。我们还研究了运行时间和性能之间的权衡,当选择一个优化的设置部署,并观察到量化显着降低了运行时间,而只有很小的影响,对检测性能。
英文摘要:
Deep neural networks have proven increasingly important for automotive scene understanding with new algorithms offering constant improvements of the detection performance. However, there is little emphasis on experiences and needs for deployment in embedded environments. We therefore perform a case study of the deployment of two representative object detection networks on an edge AI platform. In particular, we consider RetinaNet for image-based 2D object detection and PointPillars for LiDAR-based 3D object detection. We describe the modifications necessary to convert the algorithms from a PyTorch training environment to the deployment environment taking into account the available tools. We evaluate the runtime of the deployed DNN using two different libraries, TensorRT and TorchScript. In our experiments, we observe slight advantages of TensorRT for convolutional layers and TorchScript for fully connected layers. We also study the trade-off between runtime and performance, when selecting an optimized setup for deployment, and observe that quantization significantly reduces the runtime while having only little impact on the detection performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。