Skip to content

Instantly share code, notes, and snippets.

@tanmayymishra
Last active September 21, 2021 19:36
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 tanmayymishra/54707aea535aa9c95a1ec48c602a6659 to your computer and use it in GitHub Desktop.
Save tanmayymishra/54707aea535aa9c95a1ec48c602a6659 to your computer and use it in GitHub Desktop.
tyre
model= Sequential([
layers.Conv2D(32, (3,3), activation= 'relu', input_shape= (100,100,1)),
layers.MaxPooling2D(pool_size= (2,2), padding= 'same'),
layers.Dropout(0.3),
layers.Conv2D(16, (3,3), activation= 'relu'),
layers.MaxPooling2D(pool_size= (2,2), padding= 'same'),
layers.Flatten(),
layers.Dropout(0.3),
layers.Dense(25, activation= 'relu'),
# layers.Dense(64, activation= 'relu'),
layers.Dense(3, activation= 'softmax')
])
model.compile(optimizer= 'adam', loss= 'categorical_crossentropy', metrics= ['accuracy'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment