title: Keras - Dense and Conv2D values
body: <p>Images that I would like to use to train the network are about the size of <code>4000px*3000px</code> and about <code>40k</code> of them, sorted in <code>250</code> classes.
  I have made a CNN shown below:</p>
  <pre><code>model = keras.Sequential([
      layers.Input((imgHeight, imgWidth, 1)),
      layers.Conv2D(16, 3, padding = 'same'), # filters, kernel_size
      layers.Conv2D(32, 3, padding = 'same'),
      layers.MaxPooling2D(),
      layers.Flatten(),
      layers.Dense(250),
  ])
  </code></pre>
  <p>How do I figure out what <code>layers.Conv2D(*16*, ...)</code>, a value I need?
  How do I figure out what <code>layers.Dense(*250*)</code>, a value I need?</p>
  <p>Because I can't start the training process, I'm running out of memory.</p>