Problem with the C3W1 assignment

I’m facing this problem in the function “def get_visualization_training_dataset():”
There’s this message:

“AssertionError: Dataset caltech_birds2010: could not find data in /content/drive/My Drive/TF3 C3 W1 Data/. Please make sure to call dataset_builder.download_and_prepare(), or pass download=True to tfds.load() before trying to access the tf.data.Dataset object.”

All steps were passed successfully.
But in the import section i have this message:

"ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
xarray 2022.12.0 requires numpy>=1.20, but you have numpy 1.19.5 which is incompatible.
xarray-einstats 0.5.1 requires numpy>=1.20, but you have numpy 1.19.5 which is incompatible.
pydantic 1.10.4 requires typing-extensions>=4.2.0, but you have typing-extensions 3.7.4.3 which is incompatible.
jaxlib 0.3.25+cuda11.cudnn805 requires numpy>=1.20, but you have numpy 1.19.5 which is incompatible.
jax 0.3.25 requires numpy>=1.20, but you have numpy 1.19.5 which is incompatible.
cupy-cuda11x 11.0.0 requires numpy<1.26,>=1.20, but you have numpy 1.19.5 which is incompatible.
cmdstanpy 1.1.0 requires numpy>=1.21, but you have numpy 1.19.5 which is incompatible.

Thanks for your help.

Hi @Malfondet_Luc I just checked the notebook and it works fine for me. I know that there are some issues with the new TensorFlow Version used by collab and some of the notebooks.

Please, check that you have a cell with this content in the first cells of your notebook

Install packages for compatibility with the autograder

!pip install tensorflow==2.6.0
!pip install keras==2.6

You can check the version of your Tensorflow versión with:
print (tf.__version__) after import the TensorFlow library.

I hope it can help you.

It seems tensorflow is uninstalled, but it can’t be installed again.
Here’s a more of the message:

Attempting uninstall: tensorflow Found existing installation: tensorflow 2.11.0 Uninstalling tensorflow-2.11.0: Successfully uninstalled tensorflow-2.11.0 ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. xarray 2022.12.0 requires numpy>=1.20, but you have numpy 1.19.5 which is incompatible. xarray-einstats 0.5.1 requires numpy>=1.20, but you have numpy 1.19.5 which is incompatible. pydantic 1.10.4 requires typing-extensions>=4.2.0, but you have typing-extensions 3.7.4.3 which is incompatible. jaxlib 0.3.25+cuda11.cudnn805 requires numpy>=1.20, but you have numpy 1.19.5 which is incompatible. jax 0.3.25 requires numpy>=1.20, but you have numpy 1.19.5 which is incompatible. cupy-cuda11x 11.0.0 requires numpy<1.26,>=1.20, but you have numpy 1.19.5 which is incompatible. cmdstanpy 1.1.0 requires numpy>=1.21, but you have numpy 1.19.5 which is incompatible. Successfully installed absl-py-0.15.0 clang-5.0 flatbuffers-1.12 keras-preprocessing-1.1.2 numpy-1.19.5 tensorflow-2.6.0 termcolor-1.1.0 typing-extensions-3.7.4.3 wrapt-1.12.1 Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Collecting keras==2.6 Downloading keras-2.6.0-py2.py3-none-any.whl (1.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 62.1 MB/s eta 0:00:00 Installing collected packages: keras Attempting uninstall: keras Found existing installation: keras 2.11.0 Uninstalling keras-2.11.0: Successfully uninstalled keras-2.11.0 Successfully installed keras-2.6.0

It seems like your environment have some incompatibility issues.

Maybe will be easy start in a new notebook. If you go to file->Save a copy in Drive, you will get a new copy of the notebook in google drive.

You can access the notebook anytime just from your colab start page, download the .h5 and sent it for verification.

There are instructions in the notebook about how to do it, point 0.1 Set Up Your Colab.

Regards.