I
I
ivandzemianchyk2014-01-22 12:16:01
Image processing
ivandzemianchyk, 2014-01-22 12:16:01

OpenCV: automatic generation of samples in createsamples and haartraining training

The cascade takes too long to train, i.e. for several days, nothing has changed and the training remained at the same level (in my case, level 6 out of the indicated 20):

haartraining.exe -data data\cascade -vec data\vector.vec -bg negative\infofile.txt -npos 500 -nneg 1466 -nstages 20 -mode ALL  -mem 1000 -w 24 -h 24

The problem is most likely the unsuitability of the generated samples, tk. when manually creating their database of labeled images, there were no problems with learning. This time I used createsamples to create an entire database of images from a single sample:
createsamples.exe -vec data\vector.vec -img positive\img.bmp -bg negative\infofile.txt -num 500 -maxxangle 0.1 -maxyangle 0.1 -maxzangle 0.1 -w 24 -h 24

And my question is...
What could be the reason for the algorithm to loop during training?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question