Error in detect when reproducing MNIST demo

200 views
Skip to first unread message

vali...@gmail.com

unread,
Mar 25, 2013, 3:54:23 AM3/25/13
to ebl...@googlegroups.com
I use Windows binaries of EBlearn library installed from file eblearn-1.2_x86-r2631-win32.exe on Windows Vista. I try to reproduce MNIST demo from this page: http://eblearn.sourceforge.net/mnist.html

Looks like training stage passed successfully. However, when I run ‘detect mnist.conf’, the error occurs:

########## Error BEGIN ###############

1/11: grabbing /EBLearn//tools/data/mnist/00004.png
Invalid parameter: lossless
Warning: Warning: pclose failed (errno: 0)
.
Warning: Warning: invalid binary PNM file type:
.
Warning: trying again... (remaining attempts: 3)
.
Invalid parameter: lossless
Warning: Warning: pclose failed (errno: 0)
.
Warning: Warning: invalid binary PNM file type:
.
Warning: trying again... (remaining attempts: 2)
.
Invalid parameter: lossless
Warning: Warning: pclose failed (errno: 0)
.
Warning: Warning: invalid binary PNM file type:
.
Warning: trying again... (remaining attempts: 1)
.
Invalid parameter: lossless
Warning: Warning: pclose failed (errno: 0)
.
Error: invalid binary PNM file type: , in ebl::detection_thread<float>::execute at c:\eblearn\tools\libeblearntools\include\detection_thread.hpp:375

########## Error END ###############

Could you help me to fix this error?

the_minion

unread,
Mar 25, 2013, 9:38:40 AM3/25/13
to ebl...@googlegroups.com, vali...@gmail.com
Valinbox, 

That's because eblearn's directory wasn't added to the PATH environment variable correctly. There's another "convert.exe" that is being prioritized over eblearn's shipped convert.exe. In your PATH environment variable, can you add eblearn at the beginning of the PATH variable and not at the end.

convert -v should show an output like
Version: ImageMagick 6.8.0-10 2012-12-16 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features:  OpenCL

--
S

vali...@gmail.com

unread,
Mar 26, 2013, 1:19:09 AM3/26/13
to ebl...@googlegroups.com, vali...@gmail.com
the_minion,

That helped. Thanks!

/////////////////

понедельник, 25 марта 2013 г., 17:38:40 UTC+4 пользователь the_minion написал:
Reply all
Reply to author
Forward
0 new messages