基于轻量化YOLOv5n算法的交通目标检测研究OA
Research on traffic target detection based on lightweight YOLOv5n algorithm
针对交通目标检测领域的检测速度和模型精度之间的平衡问题,提出一种基于改进YOLOv5n算法的轻量化和剪枝方法.通过分析并优化YOLOv5n模型结构,形成一种有效的轻量化策略,在保持模型精度的同时大幅提升计算速度.首先对YOLOv5n网络模型进行轻量化处理,包括在主干网络(backbone)中引入轻量化网络模块GhostNet,将颈部(neck)部分中Conv模块优化为GSConv,使其卷积计算接近于标准卷积的输出,降低了计算成本,以及将头部(head)的目标框损失函数优化为EIOU Loss;然后,将改进后的模型进行训练后,对模型进行剪枝操作,使模型体积进一步压缩,并将改进后的算法模型在数据集中训练分析,改进的模型较原始模型在检测速度上提升15 fps,同时将改进的模型与主流改进方法进行对比分析;最后,通过移动实验平台进行实验验证.结果表明,在对算法进行轻量化和合适的剪枝下,提出的方法在移动实验平台交通目标检测任务中取得了显著的性能提升,平均fps为130.34,相较于原始模型提升11.3%,同时保持了mAP@0.5 为83%的检测准确度.
This paper proposes a lightweight and pruning strategy based on the improved YOLOv5n algorithm to address the trade-off between detection speed and model accuracy in traffic target detection.By analyzing and optimizing the architecture of the YOLOv5n model,an effective lightweighting strategy is developed to increase the computational speed while maintaining the model accuracy.First,the YOLOv5n network is lightweighted by introducing the GhostNet in the Backbone.The Conv modules in the Neck are replaced with GSConv to achieve performance comparable to standard convolution while reducing computational cost.Meanwhile,the bounding box regression loss in the Head is optimized using EIOU Loss.After training the improved model,pruning is applied to further reduce model size.The pruned model is evaluated on the dataset,improving the detection speed by 15 fps compared with the original model.It is further compared with the mainstream improvement methods.Finally,the improved model is validated on a mobile experimental platform.Results demonstrate with lightweight design and appropriate pruning,the proposed method markedly improves traffic target detection with an average fps of 130.34,up by 11.3%compared with the original model,while maintaining a detection accuracy of 83%with mAP@0.5.
叶心;周斌;马文丽;曹琦;谭伟
重庆理工大学 车辆工程学院,重庆 400054||节能与新能源汽车关键零部件智能制造与控制教育部国际合作联合实验室(重庆理工大学),重庆 400054重庆青山工业有限责任公司,重庆 402776重庆青山工业有限责任公司,重庆 402776陆军勤务学院,重庆 401331重庆理工大学 车辆工程学院,重庆 400054||节能与新能源汽车关键零部件智能制造与控制教育部国际合作联合实验室(重庆理工大学),重庆 400054
交通工程
轻量化YOLOv5n算法交通目标检测模型剪枝算法优化
lightweight YOLOv5n algorithmtraffic object detectionmodel pruningalgorithm optimization
《重庆理工大学学报》 2026 (1)
18-26,9
重庆市面上基金项目(CSTB2023NSCQ-MSX0418)
评论