Openface issue: Error loading image: Improper image header

26 views
Skip to first unread message

Shobhit Jain

unread,
Dec 10, 2016, 3:21:27 AM12/10/16
to torch7
Hi
I am using openface which uses torch environment. When I am training my model, I seem to get a graphicsmagick issue.

==> 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/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 have tried everything given over the web, but I am not able to resolve this issue. I have done luarocks install graphicsmagick and then sudo apt-get install graphicsmagick too. But still I get the same error. Can anyone please help me out? What might be possibly causing the issue?

Thanks a lot in  advance
Reply all
Reply to author
Forward
0 new messages