Skip to content

Instantly share code, notes, and snippets.

@zenUnicorn
Last active January 10, 2023 12:33
Show Gist options
  • Save zenUnicorn/4679e4a276b9e34361f15aad6a291f3e to your computer and use it in GitHub Desktop.
Save zenUnicorn/4679e4a276b9e34361f15aad6a291f3e to your computer and use it in GitHub Desktop.
model = keras.models.Sequential([
keras.layers.Conv2D(32, (3, 3), activation='relu', input_shape = [224, 224,3]),
keras.layers.MaxPooling2D(),
keras.layers.Conv2D(64, (2, 2), activation='relu'),
keras.layers.MaxPooling2D(),
keras.layers.Conv2D(64, (2, 2), activation='relu'),
keras.layers.Flatten(),
keras.layers.Dense(100, activation='relu'),
keras.layers.Dense(2, activation ='softmax')
])
# print model summary
print(model.summary())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment