object_detection_demo icon indicating copy to clipboard operation
object_detection_demo copied to clipboard

Getting following error during following step: Install required packages

Open js333031 opened this issue 5 years ago • 1 comments

Processing triggers for man-db (2.8.3-2ubuntu0.1) ... /content/models/research 2020-04-25 12:02:37.429554: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 Traceback (most recent call last): File "object_detection/builders/model_builder_test.py", line 23, in from object_detection.builders import model_builder File "/content/models/research/object_detection/builders/model_builder.py", line 22, in from object_detection.builders import box_predictor_builder File "/content/models/research/object_detection/builders/box_predictor_builder.py", line 20, in from object_detection.predictors import convolutional_box_predictor File "/content/models/research/object_detection/predictors/convolutional_box_predictor.py", line 23, in slim = tf.contrib.slim AttributeError: module 'tensorflow' has no attribute 'contrib'

js333031 avatar Apr 25 '20 12:04 js333031

I found that this notebook is built on TF 1.x while currently the Colab using TF2.x as default. You just specify the TF version before running the notebook as %tensorflow_version 1.x Then, you can run this notebook.

BankPC avatar Apr 26 '20 03:04 BankPC