Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init.lua:235: Not a JPEG file: starts with 0x47 0x49 #206

Open
beyondguo opened this issue Mar 3, 2020 · 1 comment
Open

init.lua:235: Not a JPEG file: starts with 0x47 0x49 #206

beyondguo opened this issue Mar 3, 2020 · 1 comment

Comments

@beyondguo
Copy link

I have more than 10000 pictures to caption.
It successfully captioned 1000 pictures and then I got this error:

/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/image/init.lua:235: Not a JPEG file: starts with 0x47 0x49
stack traceback:
        [C]: in function 'load'
        /root/torch/install/share/lua/5.1/image/init.lua:235: in function 'loader'
        /root/torch/install/share/lua/5.1/image/init.lua:388: in function 'load'
        ./misc/DataLoaderRaw.lua:82: in function 'getBatch'
        eval.lua:116: in function 'eval_split'
        eval.lua:173: in main chunk
        [C]: in function 'dofile'
        /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
        [C]: at 0x00406670

It dosen't tell me which picture is wrong, I have no idea how to fix this. Can anybody help me?

@linghusmile
Copy link

I have more than 10000 pictures to caption. It successfully captioned 1000 pictures and then I got this error:

/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/image/init.lua:235: Not a JPEG file: starts with 0x47 0x49
stack traceback:
        [C]: in function 'load'
        /root/torch/install/share/lua/5.1/image/init.lua:235: in function 'loader'
        /root/torch/install/share/lua/5.1/image/init.lua:388: in function 'load'
        ./misc/DataLoaderRaw.lua:82: in function 'getBatch'
        eval.lua:116: in function 'eval_split'
        eval.lua:173: in main chunk
        [C]: in function 'dofile'
        /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
        [C]: at 0x00406670

It dosen't tell me which picture is wrong, I have no idea how to fix this. Can anybody help me?

this picture is a gif not a jpg file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants