Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bhavbhavyaa
Last active July 29, 2021 08:17
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 bhavbhavyaa/a974675579f23c32eff42fad6c3b087d to your computer and use it in GitHub Desktop.
Save bhavbhavyaa/a974675579f23c32eff42fad6c3b087d to your computer and use it in GitHub Desktop.
model = Sequential()
model.add(Conv2D(16,(5,5),input_shape = (256,256,3)))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size = (4,4)))
model.add(Conv2D(32,(5,5)))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size = (4,4)))
model.add(Conv2D(64,(5,5)))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size = (4,4)))
model.add(Flatten())
model.add(Dense(512,activation = "relu"))
model.add(Dense(1, activation = 'sigmoid'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment