Journal of Computer Applications ›› 2025, Vol. 45 ›› Issue (3): 1016-1024.DOI: 10.11772/j.issn.1001-9081.2024040424
• Frontier and comprehensive applications • Previous Articles
Quan WANG1,2(), Xinyu CAO1, Qidong CHEN2
Received:
2024-04-10
Revised:
2024-08-01
Accepted:
2024-08-02
Online:
2025-03-17
Published:
2025-03-10
Contact:
Quan WANG
About author:
CAO Xinyu, born in 1999, M. S. candidate. His research interests include internet of vehicles, edge computing.Supported by:
通讯作者:
王泉
作者简介:
曹心雨(1999—),男,江苏新沂人,硕士研究生,主要研究方向:车联网、边缘计算基金资助:
CLC Number:
Quan WANG, Xinyu CAO, Qidong CHEN. Roadside traffic object detection model and deployment for vehicle-road collaboration[J]. Journal of Computer Applications, 2025, 45(3): 1016-1024.
王泉, 曹心雨, 陈祺东. 面向车路协同的路侧交通目标检测模型及部署[J]. 《计算机应用》唯一官方网站, 2025, 45(3): 1016-1024.
Add to citation manager EndNote|Ris|BibTeX
URL: https://www.joca.cn/EN/10.11772/j.issn.1001-9081.2024040424
剪枝率/% | P/% | GFLOPs | Params/106 | FPS/(frame·s-1) |
---|---|---|---|---|
0 | 97.3 | 21.4 | 9.1 | 422 |
10 | 96.2 | 19.2 | 8.0 | 476 |
20 | 97.1 | 17.1 | 6.6 | 529 |
30 | 97.2 | 14.9 | 5.6 | 548 |
40 | 96.8 | 12.7 | 4.5 | 573 |
50 | 97.1 | 10.6 | 4.1 | 600 |
60 | 96.7 | 8.5 | 3.4 | 633 |
70 | 89.2 | 6.3 | 2.7 | 756 |
80 | 77.3 | 4.2 | 2.1 | 985 |
90 | 50.2 | 2.0 | 1.4 | 1 136 |
Tab. 1 Performance comparison of improved models under different pruning rates
剪枝率/% | P/% | GFLOPs | Params/106 | FPS/(frame·s-1) |
---|---|---|---|---|
0 | 97.3 | 21.4 | 9.1 | 422 |
10 | 96.2 | 19.2 | 8.0 | 476 |
20 | 97.1 | 17.1 | 6.6 | 529 |
30 | 97.2 | 14.9 | 5.6 | 548 |
40 | 96.8 | 12.7 | 4.5 | 573 |
50 | 97.1 | 10.6 | 4.1 | 600 |
60 | 96.7 | 8.5 | 3.4 | 633 |
70 | 89.2 | 6.3 | 2.7 | 756 |
80 | 77.3 | 4.2 | 2.1 | 985 |
90 | 50.2 | 2.0 | 1.4 | 1 136 |
模型 | P/% | mAP/% | GFLOPs | Params/106 |
---|---|---|---|---|
SSD[ | 62.5 | 52.2 | 62.7 | 24.2 |
Faster R-CNN[ | 73.4 | 76.4 | 370.1 | 137.2 |
YOLOv4-tiny[ | 83.4 | 78.1 | 11.7 | 6.4 |
YOLOv5s | 93.1 | 95.8 | 15.8 | 7.0 |
YOLOv7-tiny[ | 90.6 | 88.9 | 13.2 | 6.1 |
YOLOv8s | 95.7 | 97.1 | 28.4 | 11.1 |
YOLOv8-FasterNet | 93.5 | 95.6 | 21.7 | 8.6 |
YOLOv8-RevCol | 95.1 | 96.6 | 21.2 | 8.2 |
YOLOv8-Embedded | 97.3 | 98.4 | 21.4 | 9.1 |
YOLOv8-Embedded+60%剪枝 | 96.7 | 98.3 | 8.5 | 3.4 |
Tab. 2 Performance comparison of some object detection models
模型 | P/% | mAP/% | GFLOPs | Params/106 |
---|---|---|---|---|
SSD[ | 62.5 | 52.2 | 62.7 | 24.2 |
Faster R-CNN[ | 73.4 | 76.4 | 370.1 | 137.2 |
YOLOv4-tiny[ | 83.4 | 78.1 | 11.7 | 6.4 |
YOLOv5s | 93.1 | 95.8 | 15.8 | 7.0 |
YOLOv7-tiny[ | 90.6 | 88.9 | 13.2 | 6.1 |
YOLOv8s | 95.7 | 97.1 | 28.4 | 11.1 |
YOLOv8-FasterNet | 93.5 | 95.6 | 21.7 | 8.6 |
YOLOv8-RevCol | 95.1 | 96.6 | 21.2 | 8.2 |
YOLOv8-Embedded | 97.3 | 98.4 | 21.4 | 9.1 |
YOLOv8-Embedded+60%剪枝 | 96.7 | 98.3 | 8.5 | 3.4 |
模型 | C2f-Faster | SlimNeck | MPDIoU | 60%剪枝 | P/% | mAP/% | GFLOPs | FPS/(frame·s-1) |
---|---|---|---|---|---|---|---|---|
YOLOv8s | 95.7 | 97.1 | 28.4 | 422 | ||||
A | √ | 95.2 | 97.2 | 24.2 | 437 | |||
B | √ | 95.5 | 97.3 | 25.6 | 430 | |||
C | √ | 95.8 | 97.5 | 28.4 | 420 | |||
D | √ | √ | 95.1 | 97.9 | 21.4 | 447 | ||
E | √ | √ | √ | 97.3 | 98.4 | 21.4 | 446 | |
F | √ | √ | √ | √ | 96.7 | 98.3 | 8.5 | 633 |
Tab. 3 Ablation experimental results
模型 | C2f-Faster | SlimNeck | MPDIoU | 60%剪枝 | P/% | mAP/% | GFLOPs | FPS/(frame·s-1) |
---|---|---|---|---|---|---|---|---|
YOLOv8s | 95.7 | 97.1 | 28.4 | 422 | ||||
A | √ | 95.2 | 97.2 | 24.2 | 437 | |||
B | √ | 95.5 | 97.3 | 25.6 | 430 | |||
C | √ | 95.8 | 97.5 | 28.4 | 420 | |||
D | √ | √ | 95.1 | 97.9 | 21.4 | 447 | ||
E | √ | √ | √ | 97.3 | 98.4 | 21.4 | 446 | |
F | √ | √ | √ | √ | 96.7 | 98.3 | 8.5 | 633 |
模型 | 剪枝率/% | 模型大小/MB | FPS/(frame·s-1) | |
---|---|---|---|---|
.onnx | .om | |||
YOLOv8s | 0 | 42.6 | 22.3 | 46.90 |
YOLOv8-Embedded | 0 | 31.4 | 17.7 | 50.90 |
30 | 18.2 | 12.2 | 47.63 | |
40 | 14.0 | 10.2 | 49.54 | |
50 | 12.4 | 9.3 | 54.38 | |
60 | 9.7 | 7.9 | 58.03 |
Tab. 4 Model performance after deployment to embedded device
模型 | 剪枝率/% | 模型大小/MB | FPS/(frame·s-1) | |
---|---|---|---|---|
.onnx | .om | |||
YOLOv8s | 0 | 42.6 | 22.3 | 46.90 |
YOLOv8-Embedded | 0 | 31.4 | 17.7 | 50.90 |
30 | 18.2 | 12.2 | 47.63 | |
40 | 14.0 | 10.2 | 49.54 | |
50 | 12.4 | 9.3 | 54.38 | |
60 | 9.7 | 7.9 | 58.03 |
1 | 李炳萱. 面向路侧感知的车辆与行人检测及跟踪算法研究[D]. 北京:北京交通大学, 2023: 1-2. |
LI B X. Research on vehicle and pedestrian detection and tracking algorithms for roadside sensing[D]. Beijing: Beijing Jiaotong University, 2023: 1-2. | |
2 | 周庆,任明武. 一种基于YOLOX改进的路侧目标检测方法[J]. 计算机与数字工程, 2023, 51(10): 2323-2329. |
ZHOU Q, REN M W. An improved roadside object detection method based on YOLOX[J]. Computer and Digital Engineering, 2023, 51(10): 2323-2329. | |
3 | REDMON J, DIVVALA S K, GIRSHICK R, et al. You only look once: unified, real-time object detection[C]// Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition. Piscataway: IEEE, 2016: 779-788. |
4 | 刘子洋,徐慧英,朱信忠,等. Bi-YOLO:一种基于YOLOv8n改进的轻量化目标检测算法[J]. 计算机工程与科学, 2024, 46(8): 1444-1454. |
LIU Z Y, XU H Y, ZHU X Z, et al. Bi-YOLO: an improved lightweight object detection algorithm based on YOLOv8n[J]. Computer Engineering and Science, 2024, 46(8): 1444-1454. | |
5 | 杨睿宁,惠飞,金鑫,等. 改进YOLOv5s的复杂交通场景路侧目标检测算法[J]. 计算机工程与应用, 2023, 59(16): 159-169. |
YANG R N, HUI F, JIN X, et al. Roadside target detection algorithm for complex traffic scene based on improved YOLOv5s[J]. Computer Engineering and Applications, 2023, 59(16): 159-169. | |
6 | ZHANG Y F, REN W, ZHANG Z, et al. Focal and efficient IOU loss for accurate bounding box regression[J]. Neurocomputing, 2022, 506: 146-157. |
7 | ZHENG Z, WANG P, LIU W, et al. Distance-IoU loss: faster and better learning for bounding box regression[C]// Proceedings of the 34th 2020 AAAI Conference on Artificial Intelligence. Palo Alto: AAAI Press, 2020: 12993-13000. |
8 | 罗江宏,袁梓麒,易志雄. 基于改进的YOLOv5城市道路车辆行人检测方法[J]. 电子制作, 2023, 31(19): 67-72. |
LUO J H, YUAN Z Q, YI Z X. An improved YOLOv5 method for vehicle and pedestrian detection on urban roads[J]. Practical Electronics, 2023, 31(19): 67-72. | |
9 | HUANG L, HUANG W, GONG H, et al. PEFNet: position enhancement faster network for object detection in roadside perception system[J]. IEEE Access, 2023, 11: 73007-73023. |
10 | CHEN J, KAO S H, HE H, et al. Run, don’t walk: chasing higher FLOPS for faster neural networks[C]// Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition. Piscataway: IEEE, 2023:12021-12031. |
11 | LI H, LI J, WEI H, et al. Slim-neck by GSConv: a better design paradigm of detector architectures for autonomous vehicles[J]. Journal of Real-Time Image Processing, 2024, 21: No.62. |
12 | MA S, XU Y. MPDIoU: a loss for efficient and accurate bounding box regression[EB/OL]. [2024-07-14]. . |
13 | ZHU C, HE Y, SAVVIDES M. Feature selective anchor-free module for single-shot object detection[C]// Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition. Piscataway: IEEE, 2019:840-849. |
14 | MITICHE I, MORISON G, NESBITT A, et al. Classification of partial discharge signals by combining adaptive local iterative filtering and entropy features[J]. Sensors, 2018, 18(2): No.406. |
15 | ZHANG X, ZHOU X, LIN M, et al. ShuffleNet: an extremely efficient convolutional neural network for mobile devices[C]// Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition. Piscataway: IEEE, 2018: 6848-6856. |
16 | HAN K, WANG Y, TIAN Q, et al. GhostNet: more features from cheap operations[C]// Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition. Piscataway: IEEE, 2020: 1577-1586. |
17 | LIU Z, LI J, SHEN Z, et al. Learning efficient convolutional networks through network slimming[C]// Proceedings of the 2017 IEEE International Conference on Computer Vision. Piscataway: IEEE, 2017: 2755-2763. |
18 | WU D, LV S, JIANG M, et al. Using channel pruning-based YOLO v4 deep learning algorithm for the real-time and accurate detection of apple flowers in natural environments[J]. Computers and Electronics in Agriculture, 2020, 178: No.105742. |
19 | WANG D, HE D. Channel pruned YOLO V5s-based deep learning approach for rapid and accurate apple fruitlet detection before fruit thinning[J]. Biosystems Engineering, 2021, 210: 271-281. |
20 | FANG G, MA X, SONG M, et al. DepGraph: towards any structural pruning[C]// Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition. Piscataway: IEEE, 2023: 16091-16101. |
21 | CHEN X, ZHU J, JIANG J, et al. Tight compression: compressing CNN model tightly through unstructured pruning and simulated annealing based permutation[C]// Proceedings of the 57th ACM/EDAC/IEEE Design Automation Conference. Piscataway: IEEE, 2020: No.243. |
22 | SITU Z, TENG S, LIAO X, et al. Real-time sewer defect detection based on YOLO network, transfer learning, and channel pruning algorithm[J]. Journal of Civil Structural Health Monitoring, 2024, 14(1): 41-57. |
23 | 许兴时,王云飞,华志新,等. 融合YOLOv5s与通道剪枝算法的奶牛轻量化个体识别方法(英文)[J]. 农业工程学报, 2023, 39(15): 152-162. |
XU X S, WANG Y F, HUA Z X, et al. Light-weight recognition network for dairy cows based on the fusion of YOLOv5s and channel pruning algorithm[J]. Transactions of the Chinese Society of Agricultural Engineering, 2023, 39(15): 152-162. | |
24 | YANG F. An improved YOLO v3 algorithm for remote Sensing image target detection[J]. Journal of Physics: Conference Series, 2021, 2132: No.012028. |
25 | LIU W, ANGUELOV D, ERHAN D, et al. SSD: single shot multiBox detector[C]// Proceedings of the 2016 European Conference on Computer Vision, LNCS 9905. Cham: Springer, 2016: 21-37. |
26 | REN S, HE K, GIRSHICK R, et al. Faster R-CNN: towards real-time object detection with region proposal networks[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017, 39(6): 1137-1149. |
27 | BOCHKOVSKIY A, WANG C, LIAO H Y M. YOLOv4: optimal speed and accuracy of object detection[EB/OL]. [2024-04-23].. |
28 | WANG C Y, BOCHKOVSKIY A, LIAO H Y M. YOLOv7: trainable bag-of-freebies sets new state-of-the-art for real-time object detectors[C]// Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition. Piscataway: IEEE, 2023: 7464-7475. |
29 | CAI Y, ZHOU Y, HAN Q, et al. Reversible column networks[EB/OL]. [2024-02-01]. . |
[1] | Jiayang GUI, Shunji WANG, Zhengkang ZHOU, Jiashan TANG. Tunnel foreign object detection algorithm based on improved YOLOv8n [J]. Journal of Computer Applications, 2025, 45(2): 655-661. |
[2] | Songsen YU, Zhifan LIN, Guopeng XUE, Jianyu XU. Lightweight large-format tile defect detection algorithm based on improved YOLOv8 [J]. Journal of Computer Applications, 2025, 45(2): 647-654. |
[3] | Zhonghua LI, Yunqi BAI, Xuejin WANG, Leilei HUANG, Chujun LIN, Shiyu LIAO. Low illumination face detection based on image enhancement [J]. Journal of Computer Applications, 2024, 44(8): 2588-2594. |
[4] | Kaili DENG, Weibo WEI, Zhenkuan PAN. Industrial defect detection method with improved masked autoencoder [J]. Journal of Computer Applications, 2024, 44(8): 2595-2603. |
[5] | Zhe KONG, Han LI, Shaowei GAN, Mingru KONG, Bingtao HE, Ziyu GUO, Ducheng JIN, Zhaowen QIU. Structure segmentation model for 3D kidney images based on asymmetric multi-decoder and attention module [J]. Journal of Computer Applications, 2024, 44(7): 2216-2224. |
[6] | Xiaohui CHENG, Yuntian HUANG, Ruifang ZHANG. Lightweight infrared road scene detection model based on multiscale and weighted coordinate attention [J]. Journal of Computer Applications, 2024, 44(6): 1927-1934. |
[7] | Junna ZHANG, Xinxin WANG, Tianze LI, Xiaoyan ZHAO, Peiyan YUAN. Task offloading method based on dynamic service cache assistance [J]. Journal of Computer Applications, 2024, 44(5): 1493-1500. |
[8] | Xiaoyan ZHAO, Wei HAN, Junna ZHANG, Peiyan YUAN. Collaborative offloading strategy in internet of vehicles based on asynchronous deep reinforcement learning [J]. Journal of Computer Applications, 2024, 44(5): 1501-1510. |
[9] | Huantong GENG, Zhenyu LIU, Jun JIANG, Zichen FAN, Jiaxing LI. Embedded road crack detection algorithm based on improved YOLOv8 [J]. Journal of Computer Applications, 2024, 44(5): 1613-1618. |
[10] | Tianhua CHEN, Jiaxuan ZHU, Jie YIN. Bird recognition algorithm based on attention mechanism [J]. Journal of Computer Applications, 2024, 44(4): 1114-1120. |
[11] | Wei LI, Ling CHEN, Xiuyuan XU, Min ZHU, Jixiang GUO, Kai ZHOU, Hao NIU, Yuchen ZHANG, Shanye YI, Yi ZHANG, Fengming LUO. Interstitial lung disease segmentation algorithm based on multi-task learning [J]. Journal of Computer Applications, 2024, 44(4): 1285-1293. |
[12] | Ming ZHANG, Le FU, Haifeng WANG. Relay control model for concurrent data flow in edge computing [J]. Journal of Computer Applications, 2024, 44(12): 3876-3883. |
[13] | Dahai LI, Bingtao LI, Zhendong WANG. Underwater target detection algorithm based on improved YOLOv8 [J]. Journal of Computer Applications, 2024, 44(11): 3610-3616. |
[14] | Tao LIU, Shihong JU, Yimeng GAO. Small object detection algorithm from drone perspective based on improved YOLOv8n [J]. Journal of Computer Applications, 2024, 44(11): 3603-3609. |
[15] | Xuyan ZHAO, Yunhe CUI, Chaohui JIANG, Qing QIAN, Guowei SHEN, Chun GUO, Xianchao LI. CHAIN: edge computing node placement algorithm based on overlapping domination [J]. Journal of Computer Applications, 2023, 43(9): 2812-2818. |
Viewed | ||||||
Full text |
|
|||||
Abstract |
|
|||||