Ask Your Question

Revision history [back]

TrainCascade Error

Hi anyone, I try to create very simple classifier 1 positive image and 3 negative images. But I came to this error:

cascade -vec samples.vec -bg negatives.dat -numStages 20 -minHitRate 0.999 -maxFalseAlarm 0.5 -numPos 1 -numNeg 3 -w 80 -h 40 -precalcValBufSize 1024 -precalcIdxBufSize 1024 PARAMETERS: cascadeDirName: cascade vecFileName: samples.vec bgFileName: negatives.dat numPos: 1 numNeg: 3 numStages: 20 precalcValBufSize[Mb] : 1024 precalcIdxBufSize[Mb] : 1024 stageType: BOOST featureType: HAAR sampleWidth: 80 sampleHeight: 40 boostType: GAB minHitRate: 0.999 maxFalseAlarmRate: 0.5 weightTrimRate: 0.95 maxDepth: 1 maxWeakCount: 100 mode: BASIC

===== TRAINING 0-stage ===== <begin pos="" count="" :="" consumed="" 1="" :="" 1="" neg="" count="" :="" acceptanceratio="" 3="" :="" 1="" precalculation="" time:="" 0.157="" +----+---------+---------+="" |="" n="" |="" hr="" |="" fa="" |="" +----+---------+---------+="" end=""> Cascade classifier can't be trained. Check the used training parameters.

Thanks in advance!

TrainCascade Error

Hi anyone, I try to create very simple classifier 1 positive image and 3 negative images. But I came to this error:

cascade -vec samples.vec -bg negatives.dat negatives.txt -numStages 20 -minHitRate 0.999 -maxFalseAlarm 0.5 -numPos 1 -numNeg 3 -w 80 -h 40 -precalcValBufSize 1024 -precalcIdxBufSize 1024
PARAMETERS:

PARAMETERS:

cascadeDirName: cascade cascade vecFileName: samples.vec samples.vec bgFileName: negatives.dat negatives.dat
numPos: 1 1 numNeg: 3 3 numStages: 20 20
precalcValBufSize[Mb] : 1024 1024
precalcIdxBufSize[Mb] : 1024 1024
stageType: BOOST BOOST featureType: HAAR HAAR
sampleWidth: 80 80 sampleHeight: 40 40
boostType: GAB GAB minHitRate: 0.999 0.999
maxFalseAlarmRate: 0.5 0.5
weightTrimRate: 0.95 0.95 maxDepth: 1 1
maxWeakCount: 100 100 mode: BASIC

===== TRAINING 0-stage ===== ===== <begin pos="" count="" :="" consumed="" 1="" :="" 1="" neg="" count="" :="" acceptanceratio="" 3="" :="" 1="" precalculation="" time:="" 0.157="" +----+---------+---------+="" |="" n="" |="" hr="" |="" fa="" |="" +----+---------+---------+="" end=""> <br=""> Precalculation time: 0.157
+----+---------+---------+ | N | HR | FA |
+----+---------+---------+ END>
Cascade classifier can't be trained. Check the used training parameters.

Thanks in advance!

TrainCascade Error

Hi anyone, I try to create very simple classifier 1 positive image and 3 negative images. But I came to this error:

cascade -vec samples.vec -bg negatives.txt -numStages 20 -minHitRate 0.999 -maxFalseAlarm 0.5 -numPos 1 -numNeg 3 -w 80 -h 40 -precalcValBufSize 1024 -precalcIdxBufSize 1024

PARAMETERS:

cascadeDirName: cascade vecFileName: samples.vec bgFileName: negatives.dat
numPos: 1 numNeg: 3 numStages: 20
precalcValBufSize[Mb] : 1024
precalcIdxBufSize[Mb] : 1024
stageType: BOOST featureType: HAAR
sampleWidth: 80 sampleHeight: 40
boostType: GAB minHitRate: 0.999
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95 maxDepth: 1
maxWeakCount: 100 mode: BASIC

===== TRAINING 0-stage ===== <begin pos="" count="" :="" consumed="" 1="" :="" 1="" neg="" count="" :="" acceptanceratio="" 3="" :="" 1="" <br="">

<BEGIN 
POS count : consumed   1 : 1 
NEG    count : acceptanceRatio    3 : 1    
Precalculation time: 0.157 
+----+---------+---------+ | N | HR | FA |
+----+---------+---------+ END> END>

Cascade classifier can't be trained. Check the used training parameters.

Thanks in advance!

TrainCascade Error

Hi anyone, I try to create very simple classifier 1 positive image and 3 negative images. But I came to this error:

cascade opencv_traincascade -vec samples.vec -bg negatives.txt -numStages 20 -minHitRate 0.999 -maxFalseAlarm 0.5 -numPos 1 -numNeg 3 -w 80 -h 40 -precalcValBufSize 1024 -precalcIdxBufSize 1024

PARAMETERS:

cascadeDirName: cascade vecFileName: samples.vec bgFileName: negatives.dat
numPos: 1 numNeg: 3 numStages: 20
precalcValBufSize[Mb] : 1024
precalcIdxBufSize[Mb] : 1024
stageType: BOOST featureType: HAAR
sampleWidth: 80 sampleHeight: 40
boostType: GAB minHitRate: 0.999
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95 maxDepth: 1
maxWeakCount: 100 mode: BASIC

===== TRAINING 0-stage =====

<BEGIN 
POS count : consumed   1 : 1 
NEG    count : acceptanceRatio    3 : 1    
Precalculation time: 0.157    
+----+---------+---------+ 
|  N |    HR   |    FA   |    
+----+---------+---------+ 
END>

Cascade classifier can't be trained. Check the used training parameters.

Thanks in advance!