-
-
Notifications
You must be signed in to change notification settings - Fork 56.4k
Closed
Labels
question (invalid tracker)ask questions and other "no action" items here: https://forum.opencv.orgask questions and other "no action" items here: https://forum.opencv.org
Description
System Information
OpenCV version: 4.8.0
Operating System / Platform: Ubuntu 20.10
Compiler & compiler version: GCC 9.3.0
Detailed description
I got his error:
===== TRAINING 0-stage =====
<BEGIN
POS count : consumed 220 : 220
Train dataset for temp stage can not be filled. Branch training terminated.
Cascade classifier can't be trained. Check the used training parameters.
Steps to reproduce
I am running following command:
``"C:\Users\ZOFSEIBO\Downloads\opencv\build\x64\vc15\bin\opencv_traincascade.exe -data C:\Users\ZOFSEIBO\Downloads\Cascade\ -vec C:\Users\ZOFSEIBO\Downloads\pos.vec -bg C:\Users\ZOFSEIBO\Downloads\neg.txt -w 48 -h 48 -numPos 220 -numNeg 3000 -numStages 10"`
`
which is supposed to get me my .xml file. After pressing enter it runs like this:
PARAMETERS:
cascadeDirName: C:\Users\new\Downloads\Cascade\
vecFileName: C:\Users\new\Downloads\pos.vec
bgFileName: C:\Users\new\Downloads\neg.txt
numPos: 220
numNeg: 3000
numStages: 10
precalcValBufSize[Mb] : 1024
precalcIdxBufSize[Mb] : 1024
acceptanceRatioBreakValue : -1
stageType: BOOST
featureType: HAAR
sampleWidth: 48
sampleHeight: 48
boostType: GAB
minHitRate: 0.995
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95
maxDepth: 1
maxWeakCount: 100
mode: BASIC
Number of unique features given windowSize [48,48] : 2570880
===== TRAINING 0-stage =====
<BEGIN
POS count : consumed 220 : 220
Train dataset for temp stage can not be filled. Branch training terminated.
Cascade classifier can't be trained. Check the used training parameters.
I have 245 positive Samples in total and 437 negative pictures
I spend hours looking for a solution but nothing worked so far.
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)
Metadata
Metadata
Assignees
Labels
question (invalid tracker)ask questions and other "no action" items here: https://forum.opencv.orgask questions and other "no action" items here: https://forum.opencv.org