farrajota / fastrcnn-example-torch

Example code on how to use the fastrcnn package for torch7
MIT License
3 stars 1 forks source link

Alexnet Model #6

Open capuzz opened 6 years ago

capuzz commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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