Im not able to predict test data from saved model file

image = cv2.imread("/content/Testing/000001-24.jpg")

image = cv2.imread(“covid19dataset/test/covid/nejmoa2001191_f3-PA.jpeg”)

image = cv2.resize(image, (64, 64))

image = np.reshape(image, [1, 64, 64, 3])

classes = model.predict_classes(image)

error: ValueError: Input 0 of layer dense is incompatible with the layer: expected axis -1 of input shape to have value 86528 but received input with shape [None, 4608]

hey @sawi.1899 ,
can you please share an image of your model summary. So that i am able to understand about your model inputs and there shapes.

Thank You :slightly_smiling_face:.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.