使用dlib训练对象检测器

时间:2016-09-23 12:29:42

标签: c++ object-detection dlib precision-recall

我正在尝试使用dlib库基于train_object_detector.cpp示例训练对象检测器。

time ./train_object_detector -tv -u 0 --threads 4 --flip data/training.xml

Loading image dataset from metadata file data/training.xml
Number of images loaded: 78
objective:     45.1205
objective gap: 45.1167
risk:          45.1167
risk gap:      45.1167
num planes:    3
iter:          1

...

objective:     3.44535
objective gap: 0.00889926
risk:          2.99319
risk gap:      0.00889926
num planes:    60
iter:          157

Saving trained detector to object_detector.svm
Testing detector on training data...
Test detector (precision,recall,AP): 1 0 0 

Parameters used: 
  threads:                 4
  C:                       1
  eps:                     0.01
  target-size:             6400
  detection window width:  80
  detection window height: 80
  upsample this many times : 0
  trained using left/right flips.


real    3m17.072s
user    9m54.928s
sys 0m4.328s

Test detector (precision,recall,AP): 1 0 0表示真阳性= 0且假阳性= 0?

此外,当将探测器应用于训练集中的任何图像时,它无法检测到任何对象Number of detections: 0.

如何解决这个问题?

0 个答案:

没有答案