Train Dataset
Preparation
Dataset
Download directly from Keras
CNN model
#Importing library
import keras
from keras.models import Sequential
from keras.layers import Dense, Activation, Dropout, Flatten, Conv2D, MaxPooling2D
from keras.layers.normalization import BatchNormalization
# Define your model
def MYMODEL(weights_path=None):
model = Sequential()
# architecture goes here
model.add(Conv2D(input_shape=(224,224,3),filters=64,kernel_size=(3,3),padding="same", activation="relu"))
if weights_path:
model.load_weights(weights_path)
return modelTrain model
Further resource
Last updated