Skip to content

Instantly share code, notes, and snippets.

@WashingtonGold
Created September 8, 2020 17:31
Show Gist options
  • Save WashingtonGold/6a10272c5869347e3dd0650cf387e93f to your computer and use it in GitHub Desktop.
Save WashingtonGold/6a10272c5869347e3dd0650cf387e93f to your computer and use it in GitHub Desktop.
from keras.layers import Conv2D, MaxPooling2D, Flatten
image_1 = Conv2D(32, kernel_size=(3, 3), activation="relu")(image_input) #convolution
image_2 = MaxPooling2D(pool_size=(2, 2))(image_1) #max pooling
image_3 = Conv2D(64, kernel_size=(3, 3), activation="relu")(image_2) #convolution
image_4 = MaxPooling2D(pool_size=(2, 2))(image_3) #max pooling
image_5 = Flatten()(image_4) #flatten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment