Update modelutil.py

#1
by papasega - opened
Files changed (1) hide show
  1. modelutil.py +3 -1
modelutil.py CHANGED
@@ -2,7 +2,9 @@ import tensorflow as tf
2
 
3
  def create_model():
4
 
5
- LAYERS = [tf.keras.layers.Flatten(input_shape=[28,28], name="inputlayer"),
 
 
6
  tf.keras.layers.Dense(300, activation='relu', name="hiddenlayer1"),
7
  tf.keras.layers.Dense(100, activation='relu', name="hiddenlayer2"),
8
  tf.keras.layers.Dense(10, activation='softmax', name="outputlayer")]
 
2
 
3
  def create_model():
4
 
5
+ LAYERS = [tf.keras.layers.Conv2D(32, (3, 3), activation='relu', input_shape=(28, 28, 1), name="convlayer1"),
6
+ tf.keras.layers.Conv2D(64, (3, 3), activation='relu', name="convlayer2"),
7
+ tf.keras.layers.Flatten(input_shape=[28,28], name="inputlayer"),
8
  tf.keras.layers.Dense(300, activation='relu', name="hiddenlayer1"),
9
  tf.keras.layers.Dense(100, activation='relu', name="hiddenlayer2"),
10
  tf.keras.layers.Dense(10, activation='softmax', name="outputlayer")]