Deconv implementation in keras output_shape issue
<p>I am implementing following <a href="https://github.com/richzhang/colorization/blob/master/models/colorization_deploy_v2.prototxt" rel="nofollow noreferrer">Colorization Model written in Caffe</a>. I am confused about my output_shape parameter to supply in Keras</p>

<pre><code>model.add(Deconvolution2D(256,4,4,border_mode='same',
output_shape=(None,3,14,14),subsample=(2,2),dim_ordering='th',name='deconv_8.1'))
</code></pre>

<p>I have added a dummy output_shape parameter. But how can I determine the output parameter? In caffe model the layer is defined as:</p>

<pre><code>layer {
 name: "conv8_1"
  type: "Deconvolution"
  bottom: "conv7_3norm"
  top: "conv8_1"
  convolution_param {
    num_output: 256
    kernel_size: 4
    pad: 1
    dilation: 1
    stride: 2
  }
</code></pre>

<p>If I do not supply this parameter the code give parameter error but I can not understand what should I supply as output_shape</p>

<p>p.s. already asked on data science forum page with no response. may be due to small user base</p>