Advanced Computer Vision with TensorFlow Zombie programming assignment spins

C3W2_Assignment.ipynb - Zombie programming assignment spins until killed executing cell below. This loads specific old versions of various packages apparently required by the grader. Suggestions on how to best process are most welcome. Thanks, Matthew :slight_smile:

# For compatibility. Pin tf-models-official version so it will use Tensorflow 2.15.

!sed -i ‘s/tf-models-official>=2.5.1/tf-models-official==2.15.0/g’ ./models/research/object_detection/packages/tf2/setup.py

# Compile the Object Detection API protocol buffers and install the necessary packages

!cd models/research/ && protoc object_detection/protos/*.proto --python_out=. && cp object_detection/packages/tf2/setup.py . && python -m pip install .

Thank you for pointing this out.

I tried running the lab myself using the same settings, and I’m experiencing a delay. The code runs, but one specific line is taking an unusually long time (around 10 minutes) and does not seem to complete as expected.

@chris.favila, could you please check if there might be any recent updates or issues affecting this part of the lab? It would be helpful to know whether this is expected behavior or if something needs to be adjusted.

Hi, and thank you for reporting! Please give us the next 24 hours to investigate and resolve this issue. Please move on to the next part of the course in the meantime. Thanks again.

is this from the download checkpoint part??

your download checkpoint part looks incorrect!!!

Appreciate the help. I’ll move on & hopefully come back. Here’s the error messages when allowed to run for 1 hour+. Thanks, Matthew

Collecting proto-plus<2,>=1.7.1 (from apache-beam->object_detection==0.1)
Downloading proto_plus-1.27.2-py3-none-any.whl.metadata (2.2 kB)
INFO: pip is looking at multiple versions of google-api-core to determine which version is compatible with other requirements. This could take a while.
INFO: pip is still looking at multiple versions of google-api-core to determine which version is compatible with other requirements. This could take a while.
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
INFO: pip is still looking at multiple versions of opencv-python-headless to determine which version is compatible with other requirements. This could take a while.
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
ERROR: Exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.11/dist-packages/pip/_internal/cli/base_command.py”, line 179, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pip/_internal/cli/req_command.py”, line 67, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pip/_internal/commands/install.py”, line 377, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pip/_internal/resolution/resolvelib/resolver.py”, line 95, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pip/_vendor/resolvelib/resolvers.py”, line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pip/_vendor/resolvelib/resolvers.py”, line 457, in resolve
raise ResolutionTooDeep(max_rounds)
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 200000

@matthew_tucker

which part of the exercise code throws this error?

Hello again. We’ve identified the issue and it might take longer to fix. This is due to updates in Colab which affects the initial setup of the required packages. We’ve temporarily locked the item on Coursera. Target resolution is by end of this week. Thank you and I’m sorry for the experience. We will fix this as soon as possible.

Hi! The lab is now fixed. You can reopen it from the classroom to load the changes. Thank you!

2 Likes

Looks like your fixes did the trick!