Ask Your Question
1

Problem with opencv_traincascade version OpenCV 2.4.10.0

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

Mohd Razi gravatar image

updated 2020-10-27 22:30:46 -0600

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
3

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

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

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

Question Tools

Stats

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

Seen: 954 times

Last updated: Nov 03 '14