-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TRAINING 0-stage not moving forward #8
Comments
I've got the same problem.... |
Me too... |
That is strange. I just cloned the project and ran the commands, and it started. The only difference I can see is the OpenCV version. I'm running 2.4.9. I'm not sure if they made changes to the OpenCV training program between versions... Maybe try removing everything in the "out" directory and run it again...
|
Same problem here, have anyone found a solution? I tried matt's tip but didn't help. /usr/local/bin/opencv_traincascade -data /Users/oli/openalpr/train-detector/out// -vec /Users/oli/openalpr/train-detector/positive/vecfile.vec -bg /Users/oli/openalpr/train-detector/negative/negative.txt -w 50 -h 11 -numPos 38 -numNeg 3248 -featureType LBP -numStages 20 ===== TRAINING 0-stage ===== |
Olivero, I think your issue is different. You'll need more than 38 positive samples -- that will never complete. You'll probably need at least a few hundred to get to a few stages. |
I got the same error: ===== TRAINING 0-stage ===== |
I've downloaded opencv 2.4.9 (windows) and used the opencv_createsamples.exe in this folder: and it works. So I am guessing it's the version of the opencv that is causing the problem. I can't get it to work on mac though. |
Hi @wizzed , I use el captain osx. |
Hi, FULL_PATH/opencv/build/bin/opencv_traincascade -data FULL_PATH/train-detector-master/out// -vec FULL_PATH/train-detector-master/positive/vecfile.vec -bg FULL_PATH/train-detector-master/negative/negative.txt -w 50 -h 15 -numPos 1182 -numNeg 4705 -maxFalseAlarmRate 0.45 -featureType LBP -numStages 13 and got stuck after showing below ===== TRAINING 0-stage ===== |
@wizzed I tried the windows option too , opencv_traincascade crashes in that case |
I know this is much later, but did anyone ever resolve this issue? I am creating an object detector right now and am trying to use LBP features and am running into the same problem. |
I stopped trying to use a mac and it just worked on ubuntu. |
The same happened to me on mac, and I fixed it adding |
Hi, I'm using OSX 10.10.2 (brew)
The stages seems that are not moving forward
What is missing? Not error messages and the files already are in the respective folders
Here is what I did using the folder "eu" as input..
/usr/local/Cellar/opencv/2.4.11_1/bin/opencv_traincascade -data /train-detector/out/ -vec /train-detector/positive/vecfile.vec -bg /train-detector/negative/negative.txt -w 52 -h 13 -numPos 1347 -numNeg 3248 -featureType LBP -numStages 20
PARAMETERS:
cascadeDirName: /train-detector/out/
vecFileName: /train-detector/positive/vecfile.vec
bgFileName: /train-detector/negative/negative.txt
numPos: 1347
numNeg: 3248
numStages: 20
precalcValBufSize[Mb] : 256
precalcIdxBufSize[Mb] : 256
stageType: BOOST
featureType: LBP
sampleWidth: 52
sampleHeight: 13
boostType: GAB
minHitRate: 0.995
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95
maxDepth: 1
maxWeakCount: 100
===== TRAINING 0-stage =====
<BEGIN
POS count : consumed 1347 : 1347
NEG count : acceptanceRatio 3248 : 1
Here is where not continues..
The text was updated successfully, but these errors were encountered: