Debug Assertion Failed: trouble with traincascade.exe after creating
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:
I used this following commands:
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
D:\test6\temp\traincascade.exe -data/cascade -vec data/vector.vec -bg negative/infofile.txt -npos 1048 -nneg 2068 -nstages 30
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
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:
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.
hmm, if you start it like this:
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
Ty for your reply. I tried this now:
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
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
D:\test6\temp\traincascade.exe -vec data/vector.vec
Still does not run.
there's still issues with your args there:
maxfalsalarm 0.5 and minhitrate 0.99 // looks wrong, should be :
-maxfalsealarm 0.5 -minhitrate 0.99
-data/cascade // again ? you meant
-data cascade ?
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?
" 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
Im just trieing different commands. Maybe some of these will run. -vec and -bg args is diffenetly right now.
also, maybe you should close your issue as it's clearly not a bug.
HI sander, Did you resolve your problem ?? coz even i am getting the same. Help me if your done with the problem.. thanks