Created
September 1, 2020 13:09
-
-
Save kevakba/ea62952705639a4a9d8066d5565abf98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model = tf.keras.Sequential() | |
model.add(Conv2D(16, 3, padding='same', activation='relu', input_shape=(img_width,img_height, 1))) | |
model.add(MaxPooling2D(pool_size=(2, 2))) | |
model.add(Conv2D(32, 3, padding='same', activation='relu')) | |
model.add(MaxPooling2D(pool_size=(2, 2))) | |
model.add(Conv2D(64, 3, padding='same', activation='relu')) | |
model.add(MaxPooling2D(pool_size=(2, 2))) | |
model.add(Flatten()) | |
model.add(Dropout(0.2)) | |
model.add(Dense(512, activation='relu')) | |
model.add(Dropout(0.2)) | |
model.add(Dense(6)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment