Closed hboen closed 3 years ago
Hi @hboen , I investigated your issue and it seems like MIRNet has some tensor calculation issues when the image dimensions are not multiples of 4. You can either manually change the shape of the image to width=600 and height=336, or you can use the image_resize_factor
parameter in Inferer.infer
to resize your image. Hope that helps :)
Hi Soumik,
Thanks for having time for looking at my problem. I just tried and it works! Great algorithm.
I have watch the youtube video https://www.youtube.com/watch?v=b5Uz_c0JLMs from Bhavesh Bhatt and copy the notebook. I only used my own picture (see attachment)
The code
But i get an error on the code -> original_image, output_image = inferer.infer(IMAGE_LOC) I used a jpeg file of 22.8 KB with width=600 and height=337 pixels and I get the following error:
InvalidArgumentError Traceback (most recent call last)