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

ERROR: Cannot access file model/ilsvrc12_mean.hdf5 #196

Open
memoiry opened this issue Apr 26, 2016 · 1 comment
Open

ERROR: Cannot access file model/ilsvrc12_mean.hdf5 #196

memoiry opened this issue Apr 26, 2016 · 1 comment

Comments

@memoiry
Copy link

memoiry commented Apr 26, 2016

I followed "Image Classification with Pre-trained Imagenet CNN" instruction and was stuck while trying to implement
julia > net = Net("imagenet", backend, layers)

it follows

26- 4 09:53:00:INFO:root:Constructing net imagenet on Mocha.CPUBackend...
26- 4 09:53:00:INFO:root:Topological sorting 16 layers...
26- 4 09:53:00:INFO:root:Setup layers...
HDF5-DIAG: Error detected in HDF5 (1.8.15-patch1) thread 0:
#000: H5F.c line 439 in H5Fis_hdf5(): unable open file
major: File accessibilty
minor: Not an HDF5 file
#1: H5Fint.c line 554 in H5F_is_hdf5(): unable to open file
major: Low-level I/O
minor: Unable to initialize object
#2: H5FD.c line 993 in H5FD_open(): open failed
major: Virtual File Layer
minor: Unable to initialize object
#3: H5FDsec2.c line 343 in H5FD_sec2_open(): unable to open file: name = 'model/ilsvrc12_mean.hdf5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0
major: File accessibilty
minor: Unable to open file
ERROR: Cannot access file model/ilsvrc12_mean.hdf5
in h5open at /Users/xuguodong/.julia/v0.4/HDF5/src/plain.jl:547
in h5open at /Users/xuguodong/.julia/v0.4/HDF5/src/plain.jl:557
in h5open at /Users/xuguodong/.julia/v0.4/HDF5/src/plain.jl:565
in setup at /Users/xuguodong/.julia/v0.4/Mocha/src/data-transformers.jl:34
in call at /Users/xuguodong/.julia/v0.4/Mocha/src/layers/memory-data.jl:31
in setup at /Users/xuguodong/.julia/v0.4/Mocha/src/layers/memory-data.jl:51
in setup at /Users/xuguodong/.julia/v0.4/Mocha/src/layers.jl:112
in call at /Users/xuguodong/.julia/v0.4/Mocha/src/net.jl:227

what's wrong, is there any package I have not installed?

thx for help

@pluskid
Copy link
Owner

pluskid commented Apr 26, 2016

You need to run the script in that folder to download pretrained model first.

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