应用动态激活函数的轻量化YOLOv8行人检测算法  被引量:2

Lightweight YOLOv8 Pedestrian Detection Algorithm Using Dynamic Activation Function

在线阅读下载全文

作  者:王晓军[1] 陈高宇 李晓航[1] WANG Xiaojun;CHEN Gaoyu;LI Xiaohang(School of Electronic and Electrical Engineering,Shanghai University of Engineering Science,Shanghai 201620,China)

机构地区:[1]上海工程技术大学电子电气工程学院,上海201620

出  处:《计算机工程与应用》2024年第15期221-233,共13页Computer Engineering and Applications

基  金:上海市自然科学基金(21ZR1426100)。

摘  要:针对传统激活函数不能特异性匹配每张特征图以达到最好的激活效果,设计一种动态激活函数,为特征图上的每个像素值添加各自的偏移量,以达到更优的区分目标和背景的效果;为使模型更好地关注目标,在主干加入注意力机制,以提高模型的准确性。针对需要监测行人流量和进行交通管理的场景,如闯红灯检测、自动驾驶等实时性高,硬件条件有限的场景,应用通道剪枝技术对模型低权重参数进行修剪,为适应硬件加速特性,改进了剪枝方法,使保留通道数始终为8的整数倍。在推理部署阶段,融合Conv和BatchNorm权重,进一步缩小模型,减少参数量和浮点运算量。最终实验表明,改进的模型性能比其他目标检测模型均有一定提升,其中,比YOLOv8原模型在AP0.5:0.95上提升了0.013,在AP0.5上提升了0.005,参数量减少了4.8×10~6。Since the traditional activation function can not match each feature map specifically to achieve the best activa-tion effect,a dynamic activation function is designed to add its own offset to each pixel value on the feature map to achieve a better effect of distinguishing target and background.In order to make the model better focus on the target,an attention mechanism is added to the backbone to improve the accuracy of the model.For scenarios requiring pedestrian flow monitoring and traffic management,such as red-light detection,automatic driving and other scenarios with high real-time performance and limited hardware conditions,channel pruning technology is applied to trim the low-weight parame-ters of the model.In order to adapt to the hardware acceleration characteristics,the pruning method is improved,so that the number of retained channels is always an integer multiple of 8.In the inference deployment phase,Conv and Batch-Norm weights are integrated to further shrink the model and reduce the number of parameters and floating point computa-tion.The final experiment shows that the performance of the improved model is improved to some extent compared with other object detection models,among which,the performance of the improved model is improved by 0.013 in AP0.5:0.95 and 0.005 in AP0.5 compared with the original model of YOLOv8.The number of parameters is reduced by 4.8×106.

关 键 词:YOLOv8 行人检测 激活函数 剪枝 权重融合 

分 类 号:TP391.4[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象