examples icon indicating copy to clipboard operation
examples copied to clipboard

Update super_resolution.ipynb to resize the input tensor

Open pjpratik opened this issue 2 years ago • 4 comments

The input tensor to the interpreter needs to be resized to take 1x50x50x3 image else it is throwing the dimension mismatch error.

Thanks.

pjpratik avatar Jul 21 '23 10:07 pjpratik

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@windmaple Can you take a look?

khanhlvg avatar Jul 25 '23 21:07 khanhlvg

@pjpratik The test image is actually 50x50. Why do you need to resize it again? Unless you are using a diff test img?

windmaple avatar Jul 26 '23 01:07 windmaple

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.

pjpratik avatar Jul 26 '23 03:07 pjpratik