Help me, TrainCascade : Assertion failed (_step >= minstep) in unknown function [closed]

asked 2013-11-27 23:39:14 -0500

SDD gravatar image

updated 2013-12-01 09:46:27 -0500

I have 1084 positive images like this

image description

I resized all of them 75x35 and make positive.txt

image description

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

image description

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

image description

I've tried -w 11 -h 5, but it made same problem in 7-stage. How can I solve this problem?

Please help me~!!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-26 08:41:49.108869


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.

Pedro Batista gravatar imagePedro Batista ( 2013-11-29 06:18:09 -0500 )edit

I erased "-bg C:/~~" in CreateSample.exe sentence. But it couldn't solve this problem T.T

SDD gravatar imageSDD ( 2013-11-30 10:48:12 -0500 )edit

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.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-12-01 04:48:23 -0500 )edit