caffe-yolo icon indicating copy to clipboard operation
caffe-yolo copied to clipboard

negative examples

Open ddemirdjian opened this issue 8 years ago • 2 comments

I would like to use negative examples (images of background containing none of the objects to detect). Is it possible to use such examples?

For negative examples, I captured background images and associated them with xml files containing no <object> tag.

  • The ./convert script (in data/yolo) works fine
  • The ./train script (in example/yolo) exits with the following error .... data_transformer.cpp:135] Check failed: float_size > 0 (0 vs. 0) Everysample must have label

Any idea or suggestion?

ddemirdjian avatar Mar 17 '17 00:03 ddemirdjian

Negative examples are not supported in this repository.

Harick1 avatar Apr 11 '17 08:04 Harick1

@ddemirdjian

Is there any reason or benefit to add negative examples?

blueardour avatar Dec 01 '17 03:12 blueardour