soumith / cuda-convnet2.torch

Torch7 bindings for cuda-convnet2 kernels!
Apache License 2.0
40 stars 16 forks source link

Question about ccn2.SpatialConvolutionLocal #19

Closed hyungwonchoi closed 10 years ago

hyungwonchoi commented 10 years ago

Hi,

I'm trying to run train.lua in the test folder, but with ccn2.SpatialConvolutionLocal(originally ccn2.SpatialConvolution).

But it keeps giving me error

/usr/local/bin/luajit: /usr/local/share/lua/5.1/ccn2/SpatialConvolutionLocal.lua:23: attempt to perform arithmetic on field 'kH' (a nil value)

Is there additional things I should know to use locally connected layers ?

Thank you in advance :)

Hyungwon

soumith commented 10 years ago

Look at SpatialConvolutionLocal's constructor, you also need to give the input image's height as the 3rd argument.