Skip to content

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

Open

Description

@zhfe99

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()})

Activity

  1. szagoruyko commented on Jul 28, 2015

    @szagoruyko
    Member

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

  2. zhfe99 commented on Jul 28, 2015

    @zhfe99
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions