I'm not sure about prediction statement can you help me to correct it ?
X = cv2.imread('/content/download (6).png')
model.predict(X)
------------------ ERROR-------------
low:Model was constructed with shape (None, None, None, 3) for input KerasTensor(type_spec=TensorSpec(shape=(None, None, None, 3), dtype=tf.float32, name='input_1'), name='input_1', description="created by layer 'input_1'"), but it was called on an input with incompatible shape (32, 834, 3).
ValueError: Input 0 of layer stem_conv is incompatible with the layer: : expected min_ndim=4, found ndim=3. Full shape received: (32, 834, 3)
Dear All,
I'm not sure about prediction statement can you help me to correct it ?
X = cv2.imread('/content/download (6).png') model.predict(X)
------------------ ERROR-------------
low:Model was constructed with shape (None, None, None, 3) for input KerasTensor(type_spec=TensorSpec(shape=(None, None, None, 3), dtype=tf.float32, name='input_1'), name='input_1', description="created by layer 'input_1'"), but it was called on an input with incompatible shape (32, 834, 3).
ValueError: Input 0 of layer stem_conv is incompatible with the layer: : expected min_ndim=4, found ndim=3. Full shape received: (32, 834, 3)