I have seen a few of the learners raise this issue but with no solution. My code to execute this had been running for a few hours now. Can some one please provide an answer.
Hi @nbandhi Could you please be a bit more specific about your problem? It would help if you specified the environment you’re running this snippet on. Cheers.
My issue was that I ended up with pip trying to solve dependencies for ever. After upgraing pip., it all worked fine with: pip install – upgrade pip in bash script.
‘’’
%%bash
pip install – upgrade pip
sudo apt install -y protobuf-compiler
cd models/research/
protoc object_detection/protos/*.proto --python_out=.
cp object_detection/packages/tf2/setup.py .
python -m pip install .
Hi everyone! This is due to Colab updating its TF version to TF2.7 . We have now revised the install script. Please reopen the notebook from the classroom to see the changes. It should run faster now but let me know if you’re still having issues. Thanks!
Hi,
There are a lot of issues with the “Use the Object Detection API” colab notebook. It runs at the end, but after loading the model, there are many many lines with this warning:
WARNING:absl:Importing a function (__inference_batchnorm_layer_call_and_return_conditional_losses_42408) with ops with unsaved custom gradients. Will likely fail if a gradient is requested.
Before this:
I updated pip with: pip install --upgrade pip
I corrected the path on the first %%bash cell, from cd models/research to
cd /content/models/research
Also, at the very beginning there are errors about the pip’s dependencies. I just opened the link from coursera to the notebook in colab.
Like I said, it runs (the detections are displayed) but any ideas about the warnings?
Yeah there have been some updates with tensorflow (as it happens with time) so warnings or even sometimes errors might arise. I think the object detection lab is not run by our team here.
Did any of the proposed solutions worked for you? Also which lab is this exaclty (paste the link here). I will have alook on it and if possible I will raise an issue.