Vehicle and Pedestrian Detection Based on Improved YOLOv7-Tiny
Open Access
- 12 October 2024
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 13 (20) , 4010
Abstract
To improve the detection accuracy of vehicles and pedestrians in traffic scenes using object detection algorithms, this paper presents modifications, compression, and deployment of the single-stage typical algorithm YOLOv7-tiny. In the model improvement section: firstly, to address the problem of small object missed detection, shallower feature layer information is incorporated into the original feature fusion branch, forming a four-scale detection head; secondly, a Multi-Stage Feature Fusion (MSFF) module is proposed to fully integrate shallow, middle, and deep feature information to extract more comprehensive small object information. In the model compression section: the Layer-Adaptive Magnitude-based Pruning (LAMP) algorithm and the Torch-Pruning library are combined, setting different pruning rates for the improved model. In the model deployment section: the V7-tiny-P2-MSFF model, pruned by 45% using LAMP, is deployed on the embedded platform NVIDIA Jetson AGX Xavier. Experimental results show that the improved and pruned model achieves a 12.3% increase in mAP@0.5 compared to the original model, with parameter volume, computation volume, and model size reduced by 76.74%, 7.57%, and 70.94%, respectively. Moreover, the inference speed of a single image for the pruned and quantized model deployed on Xavier is 9.5 ms.Keywords
Funding Information
- Project of Science and Technology Programme of Inner Mongolia Autonomous Region (2022YFSJ0040, JY20220170)
- Project of Basic Research Operating Costs of Colleges and Universities directly under the Inner Mongolia Autonomous Region (2022YFSJ0040, JY20220170)
This publication has 34 references indexed in Scilit:
- YOLO-SK: A lightweight multiscale object detection algorithmHeliyon, 2024
- Road traffic accidental injuries and deaths: A neglected global health issueHealth Science Reports, 2023
- Vehicle detection systems for intelligent driving using deep convolutional neural networksDiscover Artificial Intelligence, 2023
- Assessment of various feature extraction methods for object discrimination in different scenariosJournal of Optics, 2023
- LFF-YOLO: A YOLO Algorithm With Lightweight Feature Fusion Network for Multi-Scale Defect DetectionIEEE Access, 2022
- Feature Extraction and Object Detection Using Fast-Convolutional Neural Network for Remote Sensing Satellite ImageJournal of the Indian Society of Remote Sensing, 2022
- A Review of Vehicle Detection Techniques for Intelligent VehiclesIEEE Transactions on Neural Networks and Learning Systems, 2022
- T-YOLO: Tiny Vehicle Detection Based on YOLO and Multi-Scale Convolutional Neural NetworksIEEE Access, 2021
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksIEEE Transactions on Pattern Analysis and Machine Intelligence, 2016
- Spatial Pyramid Pooling in Deep Convolutional Networks for Visual RecognitionIEEE Transactions on Pattern Analysis and Machine Intelligence, 2015