In order to solve the problems of poor robustness of traditional computer vision algorithms, and also the low inference speed and high computational cost of deep learning methods, an improved YOLO v4 algorithm with lightweight parameters for strawberry flowers detection was proposed in this paper.
- Nvida GeForce RTX 2080TI x1
- CUDA 10.0
- CUDNN 7.0
- Ubintu 18.04
- python 3.6
- pycharm 2021.3.21
- The backbone of original YOLOv4 was substituted by a new one which uses the grouped convolution to replace the traditional convoluton to do the calculations.
- In order to ensure the deep layers to acquire the spatial information existed in the shallow layers, thereupon, the shallow layers and the deep layers in the same chain link were skip-layer connected for three different scales links in the PAN.
- The parameters of BN layer are merged into the convolutional layer to improve the speed of forward inference of the model
- First, to download the dataset in here.
- Second, to set the dataset in this project file, and unzip it.
- Last, just to run the Train.py after you have adjusted the hyper-parameters.
[After the training, you could find the weight(*.pth) and log files in the './logs'.]
https://github.com/argusswift/YOLOv4-pytorch
https://github.com/DingXiaoH/RepVGG
https://github.com/Tianxiaomo/pytorch-YOLOv4
https://github.com/bubbliiiing/yolov4-pytorch
https://github.com/tanluren/yolov3-channel-and-layer-pruning
(in no particular order)