I have a keras transformer
model trained with tensorflow 2.7.0
and python 3.7
with input shape: (None, 250, 3)
and a 2D array input with shape: (250, 3)
(not an image)
When making a prediction with:
prediction = model.predict(state)
I get ValueError: Input 0 of layer "model" is incompatible with the layer: expected shape=(None, 250, 3), found shape=(None, 3)
project code: https://github.com/MikeSifanele/TT
This is how state
looks like:
state = np.array([[-0.07714844,-0.06640625,-0.140625],[-0.140625,-0.1650391,-0.2265625]...[0.6376953,0.6005859,0.6083984],[0.7714844,0.7441406,0.7578125]], np.float32)
state = np.expand_dims(state, axis=0)
and run the code and see if that works?