title: Negative dimension size caused by subtracting 3 from 1 for 'conv2d_2/convolution' (op: 'Conv2D') with input shapes: [?,1,74,16], [3,3,16,32]
body: <p>I am doing CNN image classification and got this error.
  Please help me to solve it.
  This is my code:</p>
  <pre><code>model = Sequential()
  
  model.add(Conv2D(32, (3, 3), input_shape=(3, 150, 150)))
  model.add(Activation('relu'))
  model.add(MaxPooling2D(pool_size=(2, 2), dim_ordering=&quot;th&quot;))
  
  model.add(Conv2D(32, (3, 3)))
  model.add(Activation('relu'))
  model.add(MaxPooling2D(pool_size=(2, 2), dim_ordering=&quot;th&quot;))
  
  model.add(Conv2D(64, (3, 3))) 
  model.add(Activation('relu'))
  model.add(MaxPooling2D(pool_size=(2, 2), dim_ordering=&quot;th&quot;))
  
  </code></pre>