C3W4 DATASET_PATH needs to be updated

I’m reporting this error as requested in the comments:

From the 2nd code cell in C3W4:

NOTE (05/11/2022) - The default URL for downloading the dataset via TFDS is currently invalid. This piece of code will patch that URL with the correct one. Please run this before importing the packages. If it fails, kindly report in our Discourse community. Thank you!

DATASET_PATH = ‘/usr/local/lib/python3.7/dist packages/tensorflow_datasets/image_classification/cats_vs_dogs.py’

!sed -i ‘s/3367a/5340/g’ {DATASET_PATH}

This failed because /usr/local/lib/python3.7 did not exist in my colab environment.

I found the file and updated the path to /usr/local/lib/python3.8 and this allowed me to proceed.


Thanks, @tech_dog!!

I’ll pass this along to the staff so they can fix the assignment. I think what happened is they’ve fixed the issue now, but just forgot to remove this work-around. At least, it works for me to just not run the cell at all.

In the meantime, if anyone else runs into this issue, you should be able to just skip running this cell entirely. If that doesn’t work, you can use the work-around @tech_dog came up with and replace python3.7 with python3.8

Hi! Thank you for reporting! We’ve already removed the patch on the notebook and as Wendy mentioned, the dataset can now be loaded as is. We had that patch for several months because there was a bug in the default TFDS code for that particular dataset. Thankfully, it has finally been fixed.

I’m happy to help. These classes and supporting materials have all been fabulous.


1 Like