YOLOv5 Lite conducts a series of ablation experiments based on YOLOv5 to make it lighter (smaller Flops, lower memory usage, fewer parameters), faster (adding shuffle channel, yolov5 head for channel pruning, and the inference speed can reach 10+FPS at least on Raspberry Pi 4B at an input_size of 320), and easier to deploy (removing the Focus layer and 4 slice operations to reduce the model quantization accuracy to an acceptable range).
Comparison of ablation experiment results:
Main features of YOLOv5-Lite:
Model compression: YOLOv5-Lite reduces the number of model parameters and computation through model pruning, quantization, knowledge distillation and other technologies, thereby reducing the demand for computing resources
Real-time performance: Due to the reduction in model size and computational complexity, YOLOv5-Lite can achieve near-real-time target detection speed on low-power devices, which is critical for real-time applications.
Adapt to edge devices: YOLOv5-Lite is designed with the limitations of edge computing in mind, allowing it to run on devices with limited computing power without sacrificing too much detection accuracy.
Flexible model size: YOLOv5-Lite provides multiple model variants, from small to large, and users can choose the appropriate model size based on the performance and power requirements of the device.
Support for multiple hardware: YOLOv5-Lite can run on a variety of hardware platforms, including but not limited to ARM architecture processors, GPUs, and dedicated AI accelerators.
Open source and community: YOLOv5-Lite inherits the open source spirit of YOLOv5, has an active community and rich resources, allowing developers to easily obtain support and customize models.
For more introduction and usage content, please refer to: https://github.com/ppogg/YOLOv5-Lite
Note: The following commands need to be run through vnc
Open the yolov5-lite virtual environment
source ~/yolov5-lite/bin/activate
Enter the source code directory
xxxxxxxxxx
cd YOLOv5-Lite-master
Run the sample program
xxxxxxxxxx
python detect.py --source 0
After the run is complete, press ctrl+c to close the program. Close the virtual environment after closing the program
xxxxxxxxxx
deactivate