Loading image data

I have a question regrading to the code in the C3_W2_Lab_2_Object_Detection.ipynb.
I can run this code for the images that are specified in the program. However, when I try to use another image and run the download_and_resize_image function, I get the following error:

UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7c4b7268a430>

Any comments and hints would be appreciated.


Please move your topic to the correct subcategory (starts with Tensorflow: Advanced Techniques Specialization).
Here’s the community user guide to get started.