0
您好我有一個錯誤,說:「我試圖做訓練時,」無法填充臨時階段的訓練數據集,分支訓練已終止,級聯分類器無法訓練,請檢查使用的訓練參數「。我使用了50張正面照片和100張負面照片。我看到類似的問題here。我的bg.txt文件已經在該解決方案中提到的形式中,但仍然存在錯誤。火車casacde錯誤
我的控制檯輸出如下的情況─
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\cv_traincascade
\Debug>cv_traincascade.exe -data test -vec positives.vec -bg infofile.txt -numPos 50 -
numNeg 100 -numStages 20 -precalcValBufSize 1024 -precalcIdxBufSize 1024 -w 24 -h 24
PARAMETERS:
cascadeDirName: test
vecFileName: positives.vec
bgFileName: infofile.txt
numPos: 50
numNeg: 100
numStages: 20
precalcValBufSize[Mb] :1024
precalcIdxBufSize[Mb] :1024
stageType: BOOST
featureType: HAAR
sampleWidth: 24
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 50 : 50
Train dataset for temp stage can not be filled. Branch training terminated.
Cascade classifier can't be trained. Check the used training parameters.
任何人都可以請說什麼是錯在我的命令?任何幫助將不勝感激。謝謝。
'infofile.txt'中沒有問題,我確定,因爲我使用了與舊版本'haartraining.exe'相同的方式,它工作正常。 – MMH