Ask Your Question
1

Traincascade is stuck over 3 weeks

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

Station0033 gravatar image

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

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
2

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

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
0

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

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

Comments

1

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 -0600 )edit

Question Tools

2 followers

Stats

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

Seen: 1,104 times

Last updated: Oct 29 '12