Ask Your Question

Problem with opencv_traincascade version OpenCV

asked 2014-11-02 19:00:15 -0500

updated 2014-11-03 03:28:15 -0500

I run this

opencv_traincascade.exe -data mid -vec midi_positif_144_with_ext.vec -bg negatif_176_with_ext.txt -numPos 100 -numNeg 224 -nStages 8 -w 144 -h 144 -featureType LBP

after that i get this

Training parameters are loaded from the parameter file in data folder!
Please empty the data folder if you want to use your own set of parameters.

what is mean & its cause ?

image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-03 03:30:42 -0500

updated 2014-11-03 03:32:00 -0500

I added this fix myself to ensure people do not run into the following situation

  • Training a first model
  • Checking the resulting detector
  • Adapting training parameters and retraining a second model
  • Noticing that model 2 still uses configuration parameters from model 1

In this case, without cleaning the folder containing the in between models several parameters will be read from the parameter file in that folder. In the situation above it is thus more suitable to first delete that folder or use a new empty folder for the second model training.

The approach of not deleting the folder is ONLY good if you want to continue training by for example adding more stages!

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2014-11-02 19:00:15 -0500

Seen: 641 times

Last updated: Nov 03 '14