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

Alexnet Model #6

Open
capuzz opened this issue Dec 5, 2017 · 3 comments
Open

Alexnet Model #6

capuzz opened this issue Dec 5, 2017 · 3 comments

Comments

@capuzz
Copy link

capuzz commented Dec 5, 2017

Hi, I'm trying to download alexnet model doing:

th download/download_alexnet.lua
But I have the following error:


> ==> Downloading Alexnet model... 	
> --2017-12-05 16:17:21--  http://www.umiacs.umd.edu/~najibi/data/imgnet_models.tar.gz
> Resolution of www.umiacs.umd.edu (www.umiacs.umd.edu)... 128.8.120.33
> Connection to www.umiacs.umd.edu (www.umiacs.umd.edu)|128.8.120.33|:80... connect.
> HTTP request sent, waiting... 403 Forbidden
> 2017-12-05 16:17:22 ERROR 403: Forbidden.
> 
> tar: It doesn't seem tar
> 
> gzip: stdin: unexpected end of file
> tar: Child returned status 1
> tar: Error is not recoverable: exiting now

Then I tried to open the link (http://www.umiacs.umd.edu/~najibi/data/imgnet_models.tar.gz) from browser but of course it doesn't work (ERROR 403: Forbidden).
Is it available an other link to download alexnet model?
Thanks

@farrajota
Copy link
Owner

I've uploaded the file into a dropbox account to fix the broken link. Update the repo using git pull and try downloading the alexnet model: th download/download_alexnet.lua.

@capuzz
Copy link
Author

capuzz commented Dec 6, 2017

Thanks, but now I have an other error. When I run:

th train.lua

I have this error:

/home/torch/install/bin/luajit: /home/torch/install/share/lua/5.1/hdf5/group.lua:327: HDF5Group:read() - no such child 'default' for [HDF5Group 33554432 /]
stack traceback:
[C]: in function 'error'
/home/torch/install/share/lua/5.1/hdf5/group.lua:327: in function 'read'
.../torch/install/share/lua/5.1/dbcollection/loader.lua:47: in function '__init'
/home/torch/install/share/lua/5.1/torch/init.lua:91: in function </home/torch/install/share/lua/5.1/torch/init.lua:87>
[C]: in function 'DatasetLoader'
.../torch/install/share/lua/5.1/dbcollection/manager.lua:192: in function 'load'
.../fastrcnn-example-torch-master/data.lua:13: in function 'get_db_loader'
.../fastrcnn-example-torch-master/data.lua:34: in function 'fetch_loader_dataset'
.../fastrcnn-example-torch-master/data.lua:303: in function 'data_gen'
/home/torch/install/share/lua/5.1/fastrcnn/train.lua:50: in function 'train'
train.lua:66: in main chunk
[C]: in function 'dofile'
.../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

I checked that the code which gives me this error is this:

function HDF5Group:read(datapath)
    assert(datapath and type(datapath) == 'table', "HDF5Group:read() expects table as first parameter")
    hdf5._logger.debug("Reading from " .. tostring(self))
    if not datapath or #datapath == 0 then
        return self
    end

    local key = datapath[1]
    local child = self._children[key]
    **if not child then
        error("HDF5Group:read() - no such child '" .. key .. "' for " .. tostring(self))          <---ERROR
    end**

from .../torch/install/share/lua/5.1/hdf5/group.lua, and I checked that the value of datapath is "default" and there is the file "detection.h5" in the directory "pascal_voc_2007" and I checked that the program open this directory to get that file (detection.h5) (is it right?).

@farrajota
Copy link
Owner

It is an issue involving the dbcollection package. The last working version for this code was 0.1.7 but it may also be not working properly. If I find time this weekend I may try to see what the problem is with this package to see if the examples work or not

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