facebookresearch / multipathnet

A Torch implementation of the object detection network from "A MultiPath Network for Object Detection" (https://arxiv.org/abs/1604.02135)
Other
1.34k stars 275 forks source link

Error running demo.lua #14

Closed apedevmicrosoft closed 8 years ago

apedevmicrosoft commented 8 years ago

I am having the following issue trying to run the demo script. Could this be caused by a missing dependency?

th demo.lua -img ./deepmask/data/testImage.jpg

Directories: multipathnet/ |-->deepmask/ |-->data/

/torch/install/share/lua/5.1/nn/THNN.lua:109: wrong number of arguments for function call
stack traceback:
        [C]: in function 'v'
        ...popov/CompVision/torch/install/share/lua/5.1/nn/THNN.lua:109: in function 'SpatialMaxPooling_updateOutput'
        ...ion/torch/install/share/lua/5.1/nn/SpatialMaxPooling.lua:42: in function <...ion/torch/install/share/lua/5.1/nn/SpatialMaxPooling.lua:31>
        [C]: in function 'xpcall'
        .../CompVision/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
        ...CompVision/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'updateOutput'
        ./modules/NoBackprop.lua:19: in function <./modules/NoBackprop.lua:18>
        [C]: in function 'xpcall'
        .../CompVision/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
        ...CompVision/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function <...CompVision/torch/install/share/lua/5.1/nn/Sequential.lua:41>
        [C]: in function 'xpcall'
        .../CompVision/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
        ...pVision/torch/install/share/lua/5.1/nn/ParallelTable.lua:12: in function <...pVision/torch/install/share/lua/5.1/nn/ParallelTable.lua:10>
        [C]: in function 'xpcall'
        .../CompVision/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
        ...CompVision/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
        ./models/model_utils.lua:131: in function 'testModel'
        demo.lua:41: in main chunk
        [C]: in function 'dofile'
        ...sion/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00406670
szagoruyko commented 8 years ago
luarocks install cutorch
luarocks install nn
luarocks install cunn
apedevmicrosoft commented 8 years ago

Thank you, that seemed to solve the issue. Now I am running into the OutOfMemory issue but that's another problem. You can consider this one closed. Thanks again.