Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cascade trainer cant be trained

Im training some images and I get this error.

opencv_traincascade -data data -vec cars.vec -bg bg.txt -numStages 14 -nsplits 2 -minhitrate 0.999 -maxfalsealarm 0.5 -numPos 1400 -numNeg 692 -w 48 -h 24 PARAMETERS: cascadeDirName: data vecFileName: cars.vec bgFileName: bg.txt numPos: 1400 numNeg: 692 numStages: 14 precalcValBufSize[Mb] : 256 precalcIdxBufSize[Mb] : 256 stageType: BOOST featureType: HAAR sampleWidth: 48 sampleHeight: 24 boostType: GAB minHitRate: 0.995 maxFalseAlarmRate: 0.5 weightTrimRate: 0.95 maxDepth: 1 maxWeakCount: 100 mode: BASIC

===== TRAINING 0-stage ===== <begin pos="" count="" :="" consumed="" 1400="" :="" 1400="" train="" dataset="" for="" temp="" stage="" can="" not="" be="" filled.="" branch="" training="" terminated.="" cascade="" classifier="" can't="" be="" trained.="" check="" the="" used="" training="" parameters.<="" p="">

I have 1781 positive images 692 negative. Any ideas of what could be the problem? Thanks in advance

Cascade trainer cant be trained

Im training some images and I get this error.

opencv_traincascade -data data -vec cars.vec -bg bg.txt -numStages 14 -nsplits 2 -minhitrate 0.999 -maxfalsealarm 0.5 -numPos 1400 -numNeg 692 -w 48 -h 24 PARAMETERS: cascadeDirName: data vecFileName: cars.vec bgFileName: bg.txt numPos: 1400 numNeg: 692 numStages: 14 precalcValBufSize[Mb] : 256 precalcIdxBufSize[Mb] : 256 stageType: BOOST featureType: HAAR sampleWidth: 48 sampleHeight: 24 boostType: GAB minHitRate: 0.995 maxFalseAlarmRate: 0.5 weightTrimRate: 0.95 maxDepth: 1 maxWeakCount: 100 mode: BASIC

===== TRAINING 0-stage ===== <begin pos="" count="" :="" consumed="" 1400="" :="" 1400="" train="" dataset="" for="" temp="" stage="" can="" not="" be="" filled.="" branch="" training="" terminated.="" cascade="" classifier="" can't="" be="" trained.="" check="" the="" used="" training="" parameters.<="" p="">

I have 1781 positive images 692 negative. Any ideas of what could be the problem? Thanks in advance

click to hide/show revision 3
retagged

updated 2014-07-31 00:11:40 -0600

berak gravatar image

Cascade trainer cant be trained

Im training some images and I get this error.

opencv_traincascade -data data -vec cars.vec -bg bg.txt -numStages 14 -nsplits 2 -minhitrate 0.999 -maxfalsealarm 0.5 -numPos 1400 -numNeg 692 -w 48 -h 24 PARAMETERS: cascadeDirName: data vecFileName: cars.vec bgFileName: bg.txt numPos: 1400 numNeg: 692 numStages: 14 precalcValBufSize[Mb] : 256 precalcIdxBufSize[Mb] : 256 stageType: BOOST featureType: HAAR sampleWidth: 48 sampleHeight: 24 boostType: GAB minHitRate: 0.995 maxFalseAlarmRate: 0.5 weightTrimRate: 0.95 maxDepth: 1 maxWeakCount: 100 mode: BASIC

I have 1781 positive images 692 negative. Any ideas of what could be the problem? Thanks in advance

click to hide/show revision 4
retagged

updated 2014-07-31 00:11:55 -0600

berak gravatar image

Cascade trainer cant be trained

Im training some images and I get this error.

opencv_traincascade -data data -vec cars.vec -bg bg.txt -numStages 14 -nsplits 2 -minhitrate 0.999 -maxfalsealarm 0.5 -numPos 1400 -numNeg 692 -w 48 -h 24 PARAMETERS: cascadeDirName: data vecFileName: cars.vec bgFileName: bg.txt numPos: 1400 numNeg: 692 numStages: 14 precalcValBufSize[Mb] : 256 precalcIdxBufSize[Mb] : 256 stageType: BOOST featureType: HAAR sampleWidth: 48 sampleHeight: 24 boostType: GAB minHitRate: 0.995 maxFalseAlarmRate: 0.5 weightTrimRate: 0.95 maxDepth: 1 maxWeakCount: 100 mode: BASIC

I have 1781 positive images 692 negative. Any ideas of what could be the problem? Thanks in advance

click to hide/show revision 5
retagged

updated 2014-07-31 00:12:06 -0600

berak gravatar image

Cascade trainer cant be trained

Im training some images and I get this error.

opencv_traincascade -data data -vec cars.vec -bg bg.txt -numStages 14 -nsplits 2 -minhitrate 0.999 -maxfalsealarm 0.5 -numPos 1400 -numNeg 692 -w 48 -h 24 PARAMETERS: cascadeDirName: data vecFileName: cars.vec bgFileName: bg.txt numPos: 1400 numNeg: 692 numStages: 14 precalcValBufSize[Mb] : 256 precalcIdxBufSize[Mb] : 256 stageType: BOOST featureType: HAAR sampleWidth: 48 sampleHeight: 24 boostType: GAB minHitRate: 0.995 maxFalseAlarmRate: 0.5 weightTrimRate: 0.95 maxDepth: 1 maxWeakCount: 100 mode: BASIC

I have 1781 positive images 692 negative. Any ideas of what could be the problem? Thanks in advance

Cascade trainer cant be trained

Im training some images and I get this error.

opencv_traincascade  -data data -vec cars.vec -bg bg.txt  -numStages 14 -nsplits 2 -minhitrate 0.999  -maxfalsealarm 0.5 -numPos 1400 -numNeg 692 -w 48 -h 24
 PARAMETERS:
cascadeDirName: data
vecFileName: cars.vec
bgFileName: bg.txt
numPos: 1400
numNeg: 692
numStages: 14
precalcValBufSize[Mb] : 256
precalcIdxBufSize[Mb] : 256
stageType: BOOST
featureType: HAAR
sampleWidth: 48
sampleHeight: 24
boostType: GAB
minHitRate: 0.995
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95
maxDepth: 1
maxWeakCount: 100
mode: BASIC

BASIC

I have 1781 positive images 692 negative. Any ideas of what could be the problem? Thanks in advance

Cascade trainer cant be trained

Im training some images and I get this error.error: Train dataset for temp stage can not be filled. Branch training terminated. Cascade classifier can't be trained. Check the used training parameters.

opencv_traincascade 
  -data data -vec cars.vec -bg bg.txt 
  -numStages 14 -nsplits 2 -minhitrate 0.999 
  -maxfalsealarm 0.5 -numPos 1400 -numNeg 692 -w 48 -h 24

PARAMETERS:

cascadeDirName: data vecFileName: cars.vec bgFileName: bg.txt numPos: 1400 2050 numNeg: 692 4007 numStages: 14 35 precalcValBufSize[Mb] : 256 2548 precalcIdxBufSize[Mb] : 256 2548 stageType: BOOST featureType: HAAR sampleWidth: 48 sampleHeight: 24 boostType: GAB minHitRate: 0.995 maxFalseAlarmRate: 0.5 weightTrimRate: 0.95 maxDepth: 1 maxWeakCount: 100 mode: BASIC BASIC

Stages 0-4 are loaded

===== TRAINING 5-stage ===== <begin pos="" count="" :="" consumed="" 2050="" :="" 2073="" neg="" count="" :="" acceptanceratio="" 199="" :="" 0.0165599="" precalculation="" time:="" 79="" +----+---------+---------+="" |="" n="" |="" hr="" |="" fa="" |="" +----+---------+---------+="" |="" 1|="" 1|="" 1|="" +----+---------+---------+="" |="" 2|="" 0.999024|="" 0.763819|="" +----+---------+---------+="" |="" 3|="" 0.996585|="" 0.673367|="" +----+---------+---------+="" |="" 4|="" 0.997073|="" 0.723618|="" +----+---------+---------+="" |="" 5|="" 0.99561|="" 0.482412|="" +----+---------+---------+="" end=""> Training until now has taken 0 days 0 hours 8 minutes 37 seconds.

===== TRAINING 6-stage ===== <begin pos="" count="" :="" consumed="" 2050="" :="" 2082="" train="" dataset="" for="" temp="" stage="" can="" not="" be="" filled.="" branch="" training="" terminated.="" i've="" gotten="" this="" after="" every="" stage="" so="" far.="" i="" have="" deleted="" the="" data="" content="" as="" well.<="" p="">

I NOW have 1781 2584 positive images 692 4007 negative. Any ideas of what could be the problem? Thanks in advance