Here is the section of code
#Compililng the model
opt = Adam(lr = INIT_LR, decay = INIT_LR/ EPOCHS)
model = model.compile(loss = "binary_crossentropy", optimizer = opt, metrics = ["accuracy"])
#training the head network
H = model.fit(aug.flow(trainX, trainY, batch_size = BS),
steps_per_epoch = len(trainX)// BS,
validation_data=(testX, testY),
validation_steps = len(testX)//BS,
epochs = EPOCHS)
Here is the error that happens when I run this code
AttributeError: 'NoneType' object has no attribute 'fit'
What could I be doing wrong? Kindly help