GraphicsMagick problem

89 views
Skip to first unread message

Shobhit Jain

unread,
Dec 9, 2016, 1:56:15 AM12/9/16
to CMU-OpenFace
When I start training my DNN model, I get the following error:

==> doing epoch on training data:   
==> online epoch # 1   
/home/OPENFACE_FINAL/distro/install/bin/luajit: ...E_FINAL/distro/install/share/lua/5.1/threads/threads.lua:183: [thread 1 callback] ...AL/distro/install/share/lua/5.1/graphicsmagick/Image.lua:358: magick.Image: error loading image: Improper image header (/home/OPENFACE_FINAL/openface/aligned/054/54-11.png) (ExceptionType=425)
stack traceback:
    [C]: in function 'error'
    ...AL/distro/install/share/lua/5.1/graphicsmagick/Image.lua:358: in function 'magick_error'
    ...AL/distro/install/share/lua/5.1/graphicsmagick/Image.lua:425: in function 'load'
    ...ch/OPENFACE_FINAL/openface/training/donkey.lua:34: in function 'sampleHookTrain'
    ...h/OPENFACE_FINAL/openface/training/dataset.lua:451: in function 'samplePeople'
    ...ech/OPENFACE_FINAL/openface/training/train.lua:56: in function <...ech/ee1140430/OPENFACE_FINAL/openface/training/train.lua:55>
    [C]: in function 'xpcall'
    ...E_FINAL/distro/install/share/lua/5.1/threads/threads.lua:234: in function 'callback'
    ...ACE_FINAL/distro/install/share/lua/5.1/threads/queue.lua:65: in function <...ACE_FINAL/distro/install/share/lua/5.1/threads/queue.lua:41>
    [C]: in function 'pcall'
    ...ACE_FINAL/distro/install/share/lua/5.1/threads/queue.lua:40: in function 'dojob'
    [string "  local Queue = require 'threads.queue'..."]:15: in main chunk
stack traceback:
    [C]: in function 'error'
    ...E_FINAL/distro/install/share/lua/5.1/threads/threads.lua:183: in function 'dojob'
    ...E_FINAL/distro/install/share/lua/5.1/threads/threads.lua:223: in function 'addjob'
    ...ech/OPENFACE_FINAL/openface/training/train.lua:53: in function 'train'
    ./main.lua:44: in main chunk
    [C]: in function 'dofile'
    ...NAL/distro/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
    [C]: at 0x00405800
 


I am not able to find a solution to this. Is this a graphicsmagick problem? I installed graphicsmagick by 'luarocks install graphicsmagick' . I even tested by opening torch in terminal and tested whether luarocks was installed or not and it gave positive result. Do I also need to install graphicsmagick by sudo apt-get install graphicsmagick?

Please help.

Shobhit Jain

unread,
Dec 9, 2016, 9:47:53 AM12/9/16
to CMU-OpenFace
Now I have even installed graphicsmagick, and stll I am getting the same error. So what could possibly cause the error?

Thanks in advance

Bill Tugger

unread,
Dec 13, 2016, 12:56:47 PM12/13/16
to CMU-OpenFace
See if /home/OPENFACE_FINAL/openface/aligned/054/54-11.png is corrupted or its source.

Shobhit Jain

unread,
Dec 13, 2016, 1:35:30 PM12/13/16
to CMU-OpenFace
Actually the problem was with the files only. Thanks Bill, I had figured it out earlier myself but couldn't post here. I am working on a remote server, and the files were not copied correctly on the remote server. That's why the problem was there.

Thanks and sorry for the inconvenience.
Reply all
Reply to author
Forward
0 new messages