Skip to content

Instantly share code, notes, and snippets.

@um4ng-tiw
Last active July 17, 2021 06:43
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 um4ng-tiw/801816b97fd5353a8c2b9194327877bb to your computer and use it in GitHub Desktop.
Save um4ng-tiw/801816b97fd5353a8c2b9194327877bb to your computer and use it in GitHub Desktop.
model = Sequential()
model.add(Conv2D(32, (3,3), input_shape=(img_width, img_height,1), activation="relu"))
model.add(MaxPool2D(2,2))
model.add(Conv2D(64,(3,3), activation="relu"))
model.add(MaxPool2D(3,3))
model.add(Conv2D(32,(3,3), padding ="same", activation="relu"))
model.add(MaxPool2D(2,2))
model.add(Flatten())
model.add(Dense(32,activation="relu"))
model.add(Dense(64, activation="relu"))
model.add(Dense(32,activation="relu"))
model.add(Dense(3, activation="softmax"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment