In Laurence’s video, the directory says ‘/tf/cats_and_dogs_filtered’, but that directory gives the same error too. Can anyone please help me with this issue? I have tried restarting the notebook several times, but the error persists. Thanks!
Please kindly confirm that your notebook is similar to mine and that you can see the cats_and_dogs_filtered directory on the file tree by the left of the notebook. Otherwise you click the question mark on the top right and click get latest version.
Also, make sure you are doing this on Coursera, because the directory is hosted there. If you want to do this locally on your device, you have to download all the associated files alongside the notebook.
Thanks for the response @lukmanaj
I think I may have to download the associated files, as I got the notebook from Git Hub. Where can I get the exact datasets?
Well, this is a bit complicated. To get the exact dataset, you have to be enrolled in the course and get it from Coursera. But you can have a look at the public course GitHub repository and see how you can do some practice locally.
Another option is just to take the code in the notebook as a guide and search for datasets on Kaggle or elsewhere to practise.
This error is indicating two scenarios that either you didn’t download the dataset required for successful run of the code image shared, or the next most probable reason here is your colab is not linked to your Google drive, so when you run this code, it is not finding the file in directory.
Make sure you have run down each cell one at a time.
It should work, let us know if issue still persists.