Skip to content

Instantly share code, notes, and snippets.

@kamal2230

kamal2230/mc3.py Secret

Created October 11, 2020 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamal2230/7cb6181bec4969ad330e37fec76db89b to your computer and use it in GitHub Desktop.
Save kamal2230/7cb6181bec4969ad330e37fec76db89b to your computer and use it in GitHub Desktop.
model = tf.keras.models.Sequential([
tf.keras.layers.Conv2D(32, (3,3), activation='relu', input_shape=(150, 150, 3)),
tf.keras.layers.MaxPooling2D(2, 2),
tf.keras.layers.Conv2D(64, (3,3), activation='relu'),
tf.keras.layers.MaxPooling2D(2,2),
tf.keras.layers.Conv2D(128, (3,3), activation='relu'),
tf.keras.layers.MaxPooling2D(2,2),
tf.keras.layers.Conv2D(128, (3,3), activation='relu'),
tf.keras.layers.MaxPooling2D(2,2),
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(512, activation='relu'),
tf.keras.layers.Dense(3, activation='softmax')
])
model.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment