Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

MNIST example error #19

Open
vcodreanu opened this issue Mar 11, 2016 · 2 comments
Open

MNIST example error #19

vcodreanu opened this issue Mar 11, 2016 · 2 comments

Comments

@vcodreanu
Copy link

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
Copy link
Contributor

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

rm -rf ~/.torch

Thanks.

@vcodreanu
Copy link
Author

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?

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

No branches or pull requests

2 participants