资源算法YOLOv2_SpringEdition

YOLOv2_SpringEdition

2020-02-14 | |  31 |   0 |   0

YOLOv2_SpringEdition 

YOLOv2 C++ library. (Train,Detect both)
  • Remove pthread,opencv dependency.

  • You need only 1 files for YOLO deep-learning.

Setup for train

You need backup/bin/train/obj.cfgobj.dataobj.namestest.txttrain.txt. All files are included in my repository. You can execute YOLOv2/train.bat for training.

Setup for detect

1. Download pre-trained model and dll files.

YOLOv2_SE_Detection_Example/download_pretrained_model_and_dll.bat

2. Run

Example source is in my repository. You need only 1 header file and 2 dll files.

Recall : 0.481481
Precision : 0.722222
Average detection time : 0.0363674
FPS : 27.4971

图片.png

Reference

The class YOLOv2 that in YOLOv2SE.h has 3 method.

void Create(std::string weights,std::string cfg,std::string names);

This method load trained model(weights), network configuration(cfg) and class naming file(names)

  • Parameter

    • weights : trained model path(e.g. "obj.weights")

    • cfg : network configuration file(e.g. "obj.cfg")

    • names : class naming file(e.g. "obj.names")

std::vector<BoxSE> Detect(cv::Mat img, float threshold);
std::vector<BoxSE> Detect(std::string file, float threshold);
std::vector<BoxSE> Detect(IplImage* img, float threshold);

This method is detecting objects of file,cv::Mat or IplImage.

  • Parameter

    • file : image file path

    • img : 3-channel image.

    • threshold : It removes predictive boxes if there score is less than threshold.

void Release();

Release loaded network.

Technical issue

Original YOLOv2 has so many dependencies. I removed that.

A YOLOv2_Train_SE.exe is automatically choosing multi-gpu training. and select backup weights.

Software requirement

  • Visual Studio 2015

  • CUDA 8.0

Hardware requirement


上一篇:tf-keras-yolov2-tracking

下一篇:object-detection-yolov2-tf

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...