kaiyun官方注册
您所在的位置: 首页> 人工智能> 设计应用> 融合GhostNet的YOLOv5垃圾分类方法
融合GhostNet的YOLOv5垃圾分类方法
电子技术应用
李耀,胡军国,乐杨
浙江农林大学 数学与计算机科学学院,浙江 杭州 311300
摘要:垃圾分类是建设生态文明的重要一环,为解决重量级模型难以部署移动端设备的问题,提出基于YOLOv5网络改进的垃圾图像分类方法。采用融合GhostNet的主干网络,用线性运算代替传统卷积运算,降低了模型的参数量,提高了模型推理速度;通过在网络中加入改进版通道注意力模块,强化重要的通道特征,获取更多深层次的特征信息;采用加权边界融合方法,提升检测框的定位精度。经实验证明,该方法在自制数据集中较原模型的精度提高了8.5%,参数量减少了46.7%,平均推理速度提高了1.22 ms,实现了精度和推理速度的综合提升。
中图分类号:TP391 文献标志码:A DOI: 10.16157/j.issn.0258-7998.234428
中文引用格式:李耀,胡军国,乐杨. 融合GhostNet的YOLOv5垃圾分类方法[J]. 电子技术应用,2024,50(1):14-20.
英文引用格式:Li Yao,Hu Junguo,Le Yang. YOLOv5 garbage classification method with GhostNet[J]. Application of Electronic Technique,2024,50(1):14-20.
YOLOv5 garbage classification method with GhostNet
Li Yao,Hu Junguo,Le Yang
School of Mathematics and Computer Science, Zhejiang A&F University, Hangzhou 311300, China
Abstract:Garbage classification is an important part of building ecological civilization. To solve the problem that heavyweight models are difficult to deploy to mobile devices, an improved garbage image classification method based on YOLOv5 network is proposed. The backbone network fused with GhostNet is used to replace the traditional convolutional operation with linear operation, which reduces the number of parameters of the model and improves the model inference speed. By adding an improved version of channel attention module to the network, the important channel features are strengthened and more deep-level feature information is obtained. The weighted boundary fusion method is used to improve the localization accuracy of the detection frame. It is experimentally demonstrated that the method improves the accuracy by 8.5%, reduces the parameter quantity by 46.7%, and increases the average inference speed by 1.22 ms in the homemade dataset compared with the original model, achieving a comprehensive improvement of accuracy and inference speed.
Key words :garbage classification;ECA;GhostNet;YOLOv5

引言

近年来,随着我国城市人口的增加,城市生活垃圾总量增长迅速。据相关统计,我国城市生活垃圾清运量已经从2004年的15 509万吨增长为2021年的24 869万吨。自党的十八大以来,党中央高度重视生态文明建设,垃圾处理问题已经成为城市生活中必须解决的问题,在城市社区生活中,居民垃圾分类的意识较弱,且较多依赖于传统人工分拣,传统人工分拣存在耗时长、效率低、工作环境差及精准度较低等问题。若有效地利用计算机视觉技术对垃圾进行目标检测,通过对垃圾目标的快速定位和精确分类,将极大地减少人力资源的消耗,有效地提高垃圾分类效率,为后续的垃圾回收工作提供支持,进一步改善城市人居环境。


本文详细内容请下载:

https://www.chinaaet.com/resource/share/2000005827


作者信息:

李耀,胡军国,乐杨

(浙江农林大学 数学与计算机科学学院,浙江 杭州 311300)


weidian.jpg

此内容为AET网站原创,未经授权禁止转载。
Baidu
map