Skip to content

Instantly share code, notes, and snippets.

@VedPDubey
Created July 23, 2021 07:23
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 VedPDubey/a78fcdfebad5da2a8ee71210cf8fcc0e to your computer and use it in GitHub Desktop.
Save VedPDubey/a78fcdfebad5da2a8ee71210cf8fcc0e to your computer and use it in GitHub Desktop.
model = Sequential([
Input(shape=(96,96,3)),
ZeroPadding2D((5,5)),
Conv2D(32, 3, activation='relu'),
BatchNormalization(),
MaxPool2D(pool_size=(2,2)),
Dropout(0.3),
Conv2D(32, 3, activation='relu'),
MaxPool2D(pool_size=(2,2)),
Dropout(0.3),
Conv2D(32, 3, activation='relu'),
MaxPool2D(pool_size=(2,2)),
Dropout(0.4),
Conv2D(32, 3, activation='relu'),
MaxPool2D(pool_size=(2,2)),
Dropout(0.3),
Conv2D(32, 3, activation='relu'),
MaxPool2D(pool_size=(2,2)),
Dropout(0.3),
Flatten(),
Dense(64, activation='relu'),
Dropout(0.5),
Dense(5, activation='softmax')
])
model.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment