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

7_imagenet_classification fails because "ceil()" is undefined for "SpatialAveragePooling" #28

Open
zhfe99 opened this issue Jul 28, 2015 · 2 comments

Comments

@zhfe99
Copy link

zhfe99 commented Jul 28, 2015

When I tried to run the demo of 7_imagenet_classification as th classify.lua, I received the following error:

==> Loading network     
Successfully loaded ./nin_imagenet.caffemodel
MODULE data UNDEFINED
warning: module 'data' not found
/home/ma/feng/torch/install/bin/luajit: deploy.prototxt.lua:34: attempt to cal
l method 'ceil' (a nil value)                                                
stack traceback:
        deploy.prototxt.lua:34: in main chunk
        [C]: in function 'dofile'
        ...feng/torch/install/share/lua/5.1/loadcaffe/loadcaffe.lua:20: in fun
ction 'load'                                                                 
        classify.lua:55: in main chunk
        [C]: in function 'dofile'
        ...feng/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in ma
in chunk                                                                     
        [C]: at 0x00406240

I check the generated deploy.prototxt.lua, which is

table.insert(model, {'pool4', nn.SpatialAveragePooling(6, 6, 1, 1):ceil()})
@szagoruyko
Copy link
Member

should be fixed by 9ed331e and szagoruyko/loadcaffe@4762b38, update loadcaffe and try again

@zhfe99
Copy link
Author

zhfe99 commented Jul 28, 2015

Thanks for the quick move.

It works perfectly now.

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