Debug Assertion Failed: trouble with traincascade.exe after creating

asked 2013-08-26 01:50:40 -0500

Sander gravatar image

updated 2013-08-27 00:57:14 -0500

Hello,

after many tries with haartraining.exe I finally switched over to traincascade.exe. After creating the traincascade.exe with microsoft visual c++ I had the first problem. Could not find .dll files. Pretty easy fixed with the path direction. After this I tried again. Here is the picture:

image description

I used this following commands:

  1. LisD:\test6\temp\traincascade.exe -data/cascade -vec data/vector.vec -bg negative/infofile.txt -npos 1048 -nneg 2068 -nstages 30 -mem 1000 -mode ALL -w 24 -h 24 -nonsymt item

  2. D:\test6\temp\traincascade.exe -data/cascade -vec data/vector.vec -bg negative/infofile.txt -npos 1048 -nneg 2068 -nstages 30

  3. D:\test6\temp\traincascade.exe -data/cascade -vec data/vector.vec -bg negative/infofile.txt -npos 900 -nneg 1950 -nstages 30 maxfalsalarm 0.5 and minhitrate 0.99 -mem 1000 -mode ALL -w 24 -h 24 -nonsym

  4. D:\test6\temp\traincascade.exe -data/cascade -vec data/vector.vec -bg negative/infofile.txt -npos 800 -nneg 1850 -nstages 30 maxfalsalarm 0.5 and minhitrate 0.99 -mem 1000 -mode ALL -w 24 -h 24 -nonsym

When I use this command: 1. D:\test6\temp\traincascade.exe -data/cascade -vec data/vector.vec -bg negative/infofile.txt -npos 900 -nneg 1950 -nstages 30 -mem 1000 -mode ALL -w 24 -h 24 -nonsym

I get another error. Here is a picture of it: image description I know that I get this error when a library is missing, but I just took them all in.

I don't know how to solve this errors. Can somebody help me??

Thanks in advance.

edit retag flag offensive close merge delete

Comments

hmm, if you start it like this:

D:\test6\temp\traincascade.exe -vec data/vector.vec

it expects vector.vec to be in a folder : D:\test6\temp\data\vector.vec.

that's probably not the case. so try to give an absolute path to the vector.vec file , same for the bg file

berak gravatar imageberak ( 2013-08-29 02:23:01 -0500 )edit

Ty for your reply. I tried this now:

  1. D:\test6\temp\opencv_traincascade.exe -D:\test6\temp\data\cascade -vec D:\test6\temp\data\vector.vec -bg D:\test6\temp\infofile.txt -npos 900 -nneg 1950 -nstages 30 maxfalsalarm 0.5 and minhitrate 0.99 -mem 1000 -mode ALL -w 24 -h 24 -nonsym

  2. D:\test6\temp\opencv_traincascade.exe -data/cascade -vec D:\test6\temp\data\vector.vec -bg D:\test6\temp\infofile.txt -npos 900 -nneg 1950 -nstages 30 maxfalsalarm 0.5 and minhitrate 0.99 -mem 1000 -mode ALL -w 24 -h 24 -nonsym

  3. D:\test6\temp\traincascade.exe -vec data/vector.vec

Still does not run.

Sander gravatar imageSander ( 2013-08-29 06:26:41 -0500 )edit

there's still issues with your args there:

  • -D:\test6\temp\data\cascade // what's this for ?
  • maxfalsalarm 0.5 and minhitrate 0.99 // looks wrong, should be :

    -maxfalsealarm 0.5 -minhitrate 0.99

  • -data/cascade // again ? you meant

    -data cascade ?

berak gravatar imageberak ( 2013-08-29 07:05:09 -0500 )edit

Yes indeed thats pretty wrong.

1: D:\test6\temp\opencv_traincascade.exe -data cascade -vec D:\test6\temp\data\vector.vec -bg D:\test6\temp\negative\infofile.txt -npos 900 -nneg 1950 -nstages 30 -mem 1000 -mode ALL -w 24 -h 24 -nonsym

2: D:\test6\temp\opencv_traincascade.exe -data cascade -vec data/vector.vec -bg negative/infofile.txt -npos 900 -nneg 1950 -nstages 30 -mem 1000 -mode ALL -w 24 -h 24 -nonsym

3: D:\test6\temp\opencv_traincascade.exe -data/cascade -vec D:\test6\temp\data\vector.vec -bg D:\test6\temp\negative\infofile.txt -npos 900 -nneg 1950 -nstages 30 -maxfalsalarm 0.5 -minhitrate 0.99 -mem 1000 -mode ALL -w 24 -h 24 -nonsym

Still does not work. Could I get your traincascade.exe or would it be a problem?

Sander gravatar imageSander ( 2013-08-29 07:42:58 -0500 )edit

" Could I get your traincascade.exe" - won't make any difference. your exe is not the prob.

why do you always come up with 3 versions ? that's even more confusing

focus on the -vec and -bg args. just make sure, they're pointing to the right thing

berak gravatar imageberak ( 2013-08-29 08:32:41 -0500 )edit

Im just trieing different commands. Maybe some of these will run. -vec and -bg args is diffenetly right now.

Sander gravatar imageSander ( 2013-08-29 08:37:19 -0500 )edit

also, maybe you should close your issue as it's clearly not a bug.

berak gravatar imageberak ( 2013-08-29 08:41:15 -0500 )edit

HI sander, Did you resolve your problem ?? coz even i am getting the same. Help me if your done with the problem.. thanks

ART gravatar imageART ( 2014-02-18 07:49:10 -0500 )edit