"Train dataset for temp stage can not be filled." on opencv_traincascade
I'm trying to make a Haar Feature-based Cascade Classifier using opencv_traincascade. But I have had this message.
PS C:\cascade2\TrainingData> opencv_traincascade -data .\result\ -vec positive.vec -bg .\negative.txt -numPos 4500 -numNeg 2355 -f HAAR -mode ALL
PARAMETERS:
cascadeDirName: .\result\
vecFileName: positive.vec (positive.vec is made of 5000 JPEG files created by create_samples and one JPEG file.)
bgFileName: .\negative.txt
numPos: 4500
numNeg: 2355
numStages: 20
precalcValBufSize[Mb] : 256
precalcIdxBufSize[Mb] : 256
stageType: BOOST
featureType: HAAR
sampleWidth: 24
sampleHeight: 24
boostType: GAB
minHitRate: 0.995
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95
maxTreeDepth: 1
maxWeakCount: 100
mode: BASIC
Stages 0-9 are loaded
===== TRAINING 10-stage =====
BEGIN
Train dataset for temp stage can not be filled. Branch training terminated.
This attempt is the second time. When I tried it for the first time, Anything goes from stage0 to stage9. But I received the same error on stage10. What should I do?