Ask Your Question

Traincascade is stuck over 3 weeks

asked 2012-10-26 09:12:16 -0500

Station0033 gravatar image

updated 2012-10-26 09:41:08 -0500

Hello everybody,

I'm working on a project related with find objects on face detected areas, like eyes and iris. I have a problem, my traincascade is jam over 3 weeks at stage 4.

Traincascade parameters:

-numPos = 5000 -numNeg = 10000 -numStages = 20 -precalcValBufSize = 1000 -precalcIdxBufSize = 4000 -w = 16 -h = 16 -minHitRate = 0.99 -maxFalseAlarmRate = 0.5

image description

Someone can help me or have any suggestion? I appreciate,

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-10-29 02:48:26 -0500

Kirill Kornyakov gravatar image

It can't find negative samples. That means that you should either choose a smaller number of negatives (-numNeg), or provide a richer set of negative images.

Also the number of positive samples is probably too high. I would suggest you to start from let's say 2000 for both positives and negatives and then try to increase both of them. But IMHO 5000 positives per stage is too many, you need to have some special reason to set such large number. Otherwise it may result in overfitting...

edit flag offensive delete link more

answered 2012-10-29 04:37:00 -0500

Ben gravatar image

You don't have to wait for the training to finish. It might already be a good enough classificator. If it doesn't deliver good results, you should start a new training with a different positive/negative ratio, as Kirill suggested.

edit flag offensive delete link more



I haven't dug into the C++, and I'm not sure about how you would use the classifier halfway through training. If I asked it to do 20 iterations then it will only spit out a cascade.xml file at the end. How can I make it spit out cascade.xml files before? Or is there a way to string the stage.xml files together that will give me the same result?

angela gravatar imageangela ( 2015-07-18 02:39:05 -0500 )edit
Login/Signup to Answer

Question Tools



Asked: 2012-10-26 09:12:16 -0500

Seen: 893 times

Last updated: Oct 29 '12