In response to the existing object detection algorithms are applied to complex fire scenarios with poor detection accuracy, slow speed and difficult deployment., this paper proposes a lightweight fire detection algorithm of Light-YOLOv5 that achieves a balance of speed and accuracy. First, the last layer of backbone network is replaced with SepViT Block to enhance the contact of backbone network to global information; second, a Light-BiFPN neck network is designed to lighten the model while improving the feature extraction; third, Global Attention Mechanism (GAM) is fused into the network to make the model more focused on global dimensional features; finally, we use the Mish activation function and SIoU loss to increase the convergence speed and improve the accuracy simultaneously. The experimental results show that Light-YOLOv5 improves mAP by 3.3% compared to the original algorithm, reduces the number of parameters by 27.1%, decreases the computation by 19.1%, achieves FPS of 91.1. Even compared to the latest YOLOv7-tiny, the mAP of Light-YOLOv5 was 6.8% higher, which demonstrates the effectiveness of the algorithm.
翻译:根据现有的物体探测算法,对探测精确性差、速度慢和部署困难的复杂火灾情况适用了现有的物体探测算法。 本文建议使用轻型- YOLOv5 轻度火灾探测算法,使速度和准确性达到平衡。 首先,主干网最后一层由SepViT Block 取代,以加强主干网与全球信息的接触;第二,设计一个轻型-BiFPN颈项网络,在改进地物提取的同时,使模型更亮光;第三,全球注意机制(GAM)与网络结合,使模型更加侧重于全球维谱特征;最后,我们使用Mish激活功能和SIOU损失来提高趋同速度和准确性。实验结果显示,光-YOLOv5的MAP比原始算法提高了3.3%,使参数减少27.1%,将计算减少19.1%,使FPS达到91.1。 即使与最新的YOLOv7-tiny相比, Light-YOLOv5的MAP也提高了6.8%,这表明算法的有效性。