twitter-archive / torch-dataset

An extensible and high performance method of reading, sampling and processing data for Torch
Apache License 2.0
76 stars 24 forks source link

MNIST example error #19

Open vcodreanu opened 8 years ago

vcodreanu commented 8 years ago

I'm trying to run the MNIST example and I get this:

[valeriuc@gcn2 examples]$ th mnist.lua  
/hpc/sw/torch7-2016.03.10/bin/luajit: cannot open </home/valeriuc/.torch/dataset/3015872663> in mode r  at /home/vc0057/torch/pkg/torch/lib/TH/THDiskFile.c:640
stack traceback:
    [C]: at 0x2aaaab0e7500
    [C]: in function 'DiskFile'
    /hpc/sw/torch7-2016.03.10/share/lua/5.1/torch/File.lua:405: in function 'load'
    /hpc/sw/torch7-2016.03.10/share/lua/5.1/dataset/Index.lua:64: in function 'Index'
    /hpc/sw/torch7-2016.03.10/share/lua/5.1/dataset/Dataset.lua:18: in function 'Dataset'
    mnist.lua:28: in main chunk
    [C]: in function 'dofile'
    .../torch7-2016.03.10/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
    [C]: at 0x00405ff0

Do you know what the problem could be?

zakattacktwitter commented 8 years ago

Can you try removing the cached files? We store temporary files in your user directory:

rm -rf ~/.torch

Thanks.

vcodreanu commented 8 years ago

I tried it, but the error persists:

[vc0057@gcn2 ~]$ ls -l ~/.torch/ total 4 drwxr-xr-x 2 vc0057 vc0057 4096 Mar 18 17:22 dataset [vc0057@gcn2 ~]$ [vc0057@gcn2 ~]$ [vc0057@gcn2 ~]$ rm -rf ~/.torch/ [vc0057@gcn2 ~]$ [vc0057@gcn2 ~]$ ls -l ~/.torch/ ls: cannot access /home/vc0057/.torch/: No such file or directory [vc0057@gcn2 ~]$ cd torch-dataset/ [vc0057@gcn2 torch-dataset]$ cd examples/ [vc0057@gcn2 examples]$ th mnist.lua /hpc/sw/torch7-2016.03.10/bin/luajit: cannot open </home/vc0057/.torch/dataset/3015872663> in mode r at /home/vc0057/torch/pkg/torch/lib/TH/THDiskFile.c:640 stack traceback: [C]: at 0x2aaaab0e7500 [C]: in function 'DiskFile' /hpc/sw/torch7-2016.03.10/share/lua/5.1/torch/File.lua:405: in function 'load' /hpc/sw/torch7-2016.03.10/share/lua/5.1/dataset/Index.lua:64: in function 'Index' /hpc/sw/torch7-2016.03.10/share/lua/5.1/dataset/Dataset.lua:18: in function 'Dataset' mnist.lua:28: in main chunk [C]: in function 'dofile' .../torch7-2016.03.10/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00405ff0

Any ideas?