Ask Your Question
1

Traincascade is stuck over 3 weeks

asked Oct 26 '12

Station0033 gravatar image

updated Oct 26 '12

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,

Preview: (hide)

2 answers

Sort by » oldest newest most voted
2

answered Oct 29 '12

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...

Preview: (hide)
0

answered Oct 29 '12

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.

Preview: (hide)

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 (Jul 18 '15)edit

Question Tools

2 followers

Stats

Asked: Oct 26 '12

Seen: 1,178 times

Last updated: Oct 29 '12