Issue reading files: Classify Large Images using Inception v3

Hello,

I have uploaded few images alomgwith “inception_v3.ckpt” and “imagenet_class_names.txt” at the location:

https://jupyter.f.cloudxlab.com/user/shashwatv8093/tree/cloudxlab_jupyter_notebooks/images/inception

However, on the execution of the code below I get the error message that the file does not exists? Please help as I am unable to proceed…Thanks!


img_path = ‘…/inception/elephant.jpg’

img = image.load_img(img_path, target_size=(299, 299))

print (“img.shape”, type(img))
plt.imshow(np.asarray(img))

FileNotFoundError: [Errno 2] No such file or directory: ‘…/inception/elephant.jpg’


Hi Shashwat, as mentioned earlier please use the following path:

‘…/images/inception/elephant.jpg’

Also note, that this path will be valid only for the default notebook given on the right side of the split screen. If you are using a separate notebook, you need to specify the complete path:

‘…/cloudxlab_jupyter_notebooks/images/inception/elephant.jpg’

Hi Rajtilak,
This is still not working. Please see the error below:

FileNotFoundError: [Errno 2] No such file or directory: ‘…/images/inception/elephant_1.jpg’

Thanks

Hi, this is because the path is incorrect. You need to put 2 dots in the front of the path and not 3. Please delete one of the dots and it should work fine.

Okay got it!
Thanks & regards