Help me, TrainCascade : Assertion failed (_step >= minstep) in unknown function [closed]
I have 1084 positive images like this
I resized all of them 75x35 and make positive.txt
And I made 3150 negative images, txt file.
I commanded CreateSample.exe like this
C:\Project\CreateSample\Debug\CreateSample.exe -vec C:/Users/Administrator/Desktop/sample/positive_green/vec/sample_green.vec -info C:/Users/Administrator/Desktop/sample/positive_green/cut_sizeCvt/positive.txt -bg C:/Users/DSSUNG/Desktop/sample/negative/negative.txt -num 1084 -w 22 -h 10
The result is
Then executed TrainCascade.exe
C:\Project\TrainCascade\Debug\TrainCascade.exe -data C:/Users/Administrator/Desktop/sample/positive_green/final -vec C:/Users/Administrator/Desktop/sample/positive_green/vec/sample_green.vec -bg C:/Users/Administrator/Desktop/sample/negative/negative.txt -numPos 975 -numNeg 3150 -w 22 -h 10 -mode ALL
-numPos 975 is 90% of 1084(the number of positive images)
In 5-stage, the error message "Assertion failed (_step >= minstep) in unknown function" appeared
I've tried -w 11 -h 5, but it made same problem in 7-stage. How can I solve this problem?
Please help me~!!
Never seen this messagem, however, you shouldn't add your background image information in the createsamples utility, only on traincascade function. Try this and then tell me if it went ok.
I erased "-bg C:/~~" in CreateSample.exe sentence. But it couldn't solve this problem T.T
Adding wrong parameters shouldn't be a problem since every parameter is checked, and if it isn't used, then it is simply ignored. This is also a problem I have never encountered before using the utility. Might want to reduce the number of positives even more and see if it fixes the problem. Nevertheless I suggest browsing the sourcecode and locating where this error is thrown, it will give more insight in what is going wrong.