Closed brisker closed 7 years ago
Sorry for the late response
Your model-add_block_1-concat_block_1's first convolution layer needs a input of 3 feature maps, but it seems your model-conv_block_3 feeds it with a output of 16 feature maps.
Also, there are no "residual-blocks" in our DenseNet. There are only identity and concatenation, but not addition.
Thanks!
There are a lot of residual blocks in your densenet, I tried to build a few in my own network, but why torch just gives me errors when using CAddTable and ConcatTable. Could you please give some advice? The code I use is here:
and the error reads like this: In 4 module of nn.Sequential: In 1 module of nn.Sequential: In 1 module of nn.ConcatTable: In 1 module of nn.Sequential: ...torch/install/share/lua/5.1/cudnn/SpatialConvolution.lua:102: input has to contain: 3 feature maps, but received input of size: 1 x 16 x 60 x 60 stack traceback: