Sign inSign up

industryessentials/executor-det-yolov4-training

By industryessentials

•Updated over 4 years ago

Image
1

3.1K

industryessentials/executor-det-yolov4-training repository overview

⁠Yolo v4, v3 and v2 for Windows and Linux

⁠(neural networks for object detection)

Paper YOLO v4: https://arxiv.org/abs/2004.10934⁠

Paper Scaled YOLO v4: https://arxiv.org/abs/2011.08036⁠ use to reproduce results: ScaledYOLOv4⁠

More details in articles on medium:

Manual: https://github.com/AlexeyAB/darknet/wiki⁠

Discussion:

About Darknet framework: http://pjreddie.com/darknet/⁠

Darknet Continuous Integration CircleCI TravisCI Contributors License: Unlicense DOI arxiv.org arxiv.org colab colab

Darknet Logo

scaled_yolov4 AP50:95 - FPS (Tesla V100) Paper: https://arxiv.org/abs/2011.08036⁠


modern_gpus AP50:95 / AP50 - FPS (Tesla V100) Paper: https://arxiv.org/abs/2004.10934⁠

tkDNN-TensorRT accelerates YOLOv4 ~2x times for batch=1 and 3x-4x times for batch=4.

⁠GeForce RTX 2080 Ti
Network SizeDarknet, FPS (avg)tkDNN TensorRT FP32, FPStkDNN TensorRT FP16, FPSOpenCV FP16, FPStkDNN TensorRT FP16 batch=4, FPSOpenCV FP16 batch=4, FPStkDNN Speedup
3201001162021834234304.3x
416821031621592842943.6x
51269911341382062163.1x
60853621031151501502.8x
Tiny 416443609790773177413533.5x
Tiny 416 CPU Core i7 7700HQ3.4--42-3912x
⁠Youtube video of results
Yolo v4Scaled Yolo v4

Others: https://www.youtube.com/user/pjreddie/videos⁠

⁠How to evaluate AP of YOLOv4 on the MS COCO evaluation server
  1. Download and unzip test-dev2017 dataset from MS COCO server: http://images.cocodataset.org/zips/test2017.zip⁠
  2. Download list of images for Detection tasks and replace the paths with yours: https://raw.githubusercontent.com/AlexeyAB/darknet/master/scripts/testdev2017.txt⁠
  3. Download yolov4.weights file 245 MB: yolov4.weights⁠ (Google-drive mirror yolov4.weights⁠ )
  4. Content of the file cfg/coco.data should be
classes= 80
train  = <replace with your path>/trainvalno5k.txt
valid = <replace with your path>/testdev2017.txt
names = data/coco.names
backup = backup
eval=coco
  1. Create /results/ folder near with ./darknet executable file
  2. Run validation: ./darknet detector valid cfg/coco.data cfg/yolov4.cfg yolov4.weights
  3. Rename the file /results/coco_results.json to detections_test-dev2017_yolov4_results.json and compress it to detections_test-dev2017_yolov4_results.zip
  4. Submit file detections_test-dev2017_yolov4_results.zip to the MS COCO evaluation server for the test-dev2019 (bbox)
⁠How to evaluate FPS of YOLOv4 on GPU
  1. Compile Darknet with GPU=1 CUDNN=1 CUDNN_HALF=1 OPENCV=1 in the Makefile
  2. Download yolov4.weights file 245 MB: yolov4.weights⁠ (Google-drive mirror yolov4.weights⁠ )
  3. Get any .avi/.mp4 video file (preferably not more than 1920x1080 to avoid bottlenecks in CPU performance)
  4. Run one of two commands and look at the AVG FPS:
  • include video_capturing + NMS + drawing_bboxes: ./darknet detector demo cfg/coco.data cfg/yolov4.cfg yolov4.weights test.mp4 -dont_show -ext_output
  • exclude video_capturing + NMS + drawing_bboxes: ./darknet detector demo cfg/coco.data cfg/yolov4.cfg yolov4.weights test.mp4 -benchmark
⁠Pre-trained models

There are weights-file for different cfg-files (trained for MS COCO dataset):

FPS on RTX 2070 (R) and Tesla V100 (V):

CLICK ME - Yolo v3 models
CLICK ME - Yolo v2 models

Put it near compiled: darknet.exe

You can get cfg-files by path: darknet/cfg/

⁠Requirements for Windows, Linux and macOS
⁠Yolo v4 in other frameworks
⁠Datasets
⁠Improvements in this repository
  • developed State-of-the-Art object detector YOLOv4
  • added

Tag summary

Content type

Image

Digest

Size

3.4 GB

Last updated

over 4 years ago

docker pull industryessentials/executor-det-yolov4-training