Reputation: 21
After training, I loaded up my model and passed in the CTC Layer, I downloaded a test Image online and called model.predict(x=image) but I kept getting errors about the image's shape.
I then tried to run a reshape function on the image to fit the input layer (128, 32, 1), and I got another error. I'll appreciate any advice on how to run a prediction on a real image, gotten from an API endpoint. Thank you so much.
Below you will find the function I tried to use to reshape the image.
And the error I got while reshaping
Upvotes: 0
Views: 117
Reputation: 100
[![enter image description here][1]][1]
image_size tuple contains three elements but you are receiving two. [1]: https://i.sstatic.net/o34Su.png
Upvotes: 1