Issues with C3_W4_Lab_3_Saliency

Hello,
I’m having issues with C3_W4_Lab_3_Saliency on colab.

After running the first cell (“Install packages for compatibility”) and restarting the session, the next cell with the imports gives me the error:

Colab only includes TensorFlow 2.x; %tensorflow_version has no effect.

RecursionError Traceback (most recent call last)
/tmp/ipython-input-3540415916.py in <cell line: 0>()
2
3 import tensorflow as tf
----> 4 import tensorflow_hub as hub
5 import cv2
6 import numpy as np

3 frames
… last 1 frames repeated, from the frame below …

/usr/local/lib/python3.12/dist-packages/tensorflow/python/util/lazy_loader.py in getattr(self, item)
180 if not self._tfll_initialized:
181 self._initialize()
→ 182 if self._tfll_keras_version == “keras_3”:
183 if (
184 self._tfll_mode == “v1”

RecursionError: maximum recursion depth exceeded

What did I do wrong?

Thanks,
Antonello

Hi @chris.favila I think there is an issue here, tried it to run it myself and got the same error!

Hi and thank you for reporting. Will look into this and update here asap.

Hello again. This is a runtime version issue. Please re-open the lab from the classroom to see additional instructions before running the code cells. Hope this helps!

It works!:slightly_smiling_face:

Thank you!