-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update super_resolution.ipynb to resize the input tensor #467
base: master
Are you sure you want to change the base?
Conversation
The input tensor to the interpreter needs to be resized to take `1x50x50x3` image else it is throwing the dimension mismatch error. Thanks.
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@windmaple Can you take a look? |
@pjpratik |
Hi @windmaple The example when run on colab with latest stable version TF 2.13 runs into an error. Please find this gist. The converted tflite model has input shape of [1,1,1,3], and the setting the input shape via concrete function is not considered. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be a bug during conversion; it's unclear to me why the input shape is ignored during conversion.
For now manually resizing the input tensor is a valid workaround.
The input tensor to the interpreter needs to be resized to take
1x50x50x3
image else it is throwing the dimension mismatch error.Thanks.