Ask Your Question
0

Train dataset for temp stage can not be filled. Branch training terminated.

asked 2015-03-16 18:25:04 -0600

selbstdual gravatar image

updated 2015-03-17 16:11:54 -0600

My goal is to detect a certain mood and it's absence based on my facial features. So the idea was to first detect my face and have only the facial expression of the mood that I want, use those pictures as the positive pictures and then on the flip side have negative pictures that show me not having this mood. Then to use both of them to train a classifier. The current command line (64bit) looks like this opencv_traincascade.exe -data YesTC -vec Mood.vec -bg NonMood.txt -numstages 30 -minHitRate 0.999 -numPos 120 -numNeg 120 -maxFalseAlarmRate 0.5 -w 20 -h 20 -precalcValBufSize 1024 -precalcIdxBufSize 1024 while having 133 positive Images and 133 negative images.

The good thing is, it does not crash, which happened a lot of times before.

the bad thing is, after some stages(so it could read images in the first stages) it aborts, saying

Train dataset for temp stage can not be filled. Branch training terminated.

I tried using relative paths as suggested at http://answers.opencv.org/question/10..., I tried absolute paths, I tried saving it as unix file, always the same result.

How to fix this?

edit retag flag offensive close merge delete

Comments

Hi, I am having the same error. In StevenPuttemans comment he says "Also if you have exactly 50 positive images, try changing it to 40, because you always use the 0.9effective_number rule, just to make sure that he can still get new positives if needed."* Now trying if it will help.

Remek gravatar imageRemek ( 2015-03-17 07:10:47 -0600 )edit

@Remek I did that, too. The problem remains.

selbstdual gravatar imageselbstdual ( 2015-03-17 16:10:58 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-18 12:14:57 -0600

Eduardo gravatar image

Train dataset for temp stage can not be filled. Branch training terminated.

I think it is normal (at least it is not critical). When I check the log I have had, I have the same message after the 18-stage and when I test the result learning file, it works (with very few false detection).

But I am not sure if the message

Train dataset for temp stage can not be filled.

is normal (there is no more negative data misclassified ?) or it means the training works but the negative pool of images is too poor.

edit flag offensive delete link more

Comments

I found that cascade.xml has already been created in the subdirectory, so the case is closed.

selbstdual gravatar imageselbstdual ( 2015-03-19 14:39:25 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2015-03-16 18:23:23 -0600

Seen: 899 times

Last updated: Mar 18 '15