arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.10482cs.CVcs.ARcs.LG
收藏

LPYOLO:基于FPGA的低精度人脸检测YOLO

LPYOLO: Low Precision YOLO for Face Detection on FPGA

Aselsan Inc.(阿瑟尔桑公司);Gazi University(加齐大学)

Bestami Günay, Sefa Burak Okcu, Hasan Şakir Bilge

摘要:

近年来,边缘计算设备的数量和在其上的人工智能应用已经过快地发展。在边缘计算中,决策过程和计算从服务器移动到边缘设备。因此,需要廉价且低功率的设备。FPGA是非常低功耗的,倾向于进行并行操作,并且非常适合运行卷积神经网络(CNN)的设备,卷积神经网络是人工智能应用的基本单元。监控系统中的人脸检测是安全市场上最受期待的应用。在这项工作中,TinyYolov 3架构重新设计和部署的人脸检测。它是一种基于CNN的目标检测方法,并为嵌入式系统开发。选择PYNQ-Z2作为目标板,其上具有低端Xilinx Zynq 7020片上系统(SoC)。重新设计的TinyYolov 3模型通过Brevitas库以多种位宽精度定义,该库以整数量化形式提供基本的CNN层和激活。然后,使用WiderFace数据集在量化结构中训练模型。为了降低延迟和功耗,FPGA的片内存储器被配置为整个网络参数的存储器,并且最后一个激活函数被修改为重新缩放的HardTanh而不是Sigmoid。此外,高度并行性应用于FPGA的逻辑资源。使用FINN框架和FINN-HLS库将模型转换为基于HLS的应用程序,其中包括C++中的层定义。然后,对模型进行合成和部署。SoC的CPU采用多线程机制,负责预处理、后处理和TCP/IP流操作。因此,2.4瓦的总板功耗,18帧每秒(FPS)的吞吐量和0.757 mAP的准确率在轻松类别的宽面实现了4位精度模型。

英文摘要:

In recent years, number of edge computing devices and artificial intelligence applications on them have advanced excessively. In edge computing, decision making processes and computations are moved from servers to edge devices. Hence, cheap and low power devices are required. FPGAs are very low power, inclined to do parallel operations and deeply suitable devices for running Convolutional Neural Networks (CNN) which are the fundamental unit of an artificial intelligence application. Face detection on surveillance systems is the most expected application on the security market. In this work, TinyYolov3 architecture is redesigned and deployed for face detection. It is a CNN based object detection method and developed for embedded systems. PYNQ-Z2 is selected as a target board which has low-end Xilinx Zynq 7020 System-on-Chip (SoC) on it. Redesigned TinyYolov3 model is defined in numerous bit width precisions with Brevitas library which brings fundamental CNN layers and activations in integer quantized form. Then, the model is trained in a quantized structure with WiderFace dataset. In order to decrease latency and power consumption, onchip memory of the FPGA is configured as a storage of whole network parameters and the last activation function is modified as rescaled HardTanh instead of Sigmoid. Also, high degree of parallelism is applied to logical resources of the FPGA. The model is converted to an HLS based application with using FINN framework and FINN-HLS library which includes the layer definitions in C++. Later, the model is synthesized and deployed. CPU of the SoC is employed with multithreading mechanism and responsible for preprocessing, postprocessing and TCP/IP streaming operations. Consequently, 2.4 Watt total board power consumption, 18 Frames-Per-Second (FPS) throughput and 0.757 mAP accuracy rate on Easy category of the WiderFace are achieved with 4 bits precision model.

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

↑