Skip to content

Instantly share code, notes, and snippets.

@AmrutaKoshe
Created July 19, 2021 07:11
Show Gist options
  • Save AmrutaKoshe/7695a37df993403df460aac15d040cb3 to your computer and use it in GitHub Desktop.
Save AmrutaKoshe/7695a37df993403df460aac15d040cb3 to your computer and use it in GitHub Desktop.
model = Sequential()
model.add(Conv2D(filters=32, kernel_size=(3,3),input_shape=(100,100,3), activation='relu', padding = 'same'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Conv2D(filters=64, kernel_size=(3,3), activation='relu', padding = 'same'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Conv2D(filters=64, kernel_size=(3,3), activation='relu', padding = 'same'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Conv2D(filters=64, kernel_size=(3,3), activation='relu', padding = 'same'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Conv2D(filters=64, kernel_size=(3,3), activation='relu', padding = 'same'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Conv2D(filters=64, kernel_size=(3,3), activation='relu', padding = 'same'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Flatten())
model.add(Dense(256))
model.add(Activation('relu'))
model.add(Dropout(0.5))
model.add(Dense(len(breed_map)))
model.add(Activation('softmax'))
model.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment