0

I am working on a school project, building a gesture detection. I follwed this video's stop, but getting some problems when committing this in my terminal

python Tensorflow/models/research/object_detection/model_main_tf2.py --model_dir=Tensorflow/workspace/models/my_ssd_mobnet --pipeline_config_path=Tensorflow/workspace/models/my_ssd_mobnet/pipeline.config --num_train_steps=2000

, just the step6 in the "Traing and Detection.ipynb" file given from this github https://github.com/nicknochnack/TFODCourse". I got this error return

AttributeError: module 'tensorflow' has no attribute 'contrib

I've search many solutions on the internet, however, eventhough I knew the problem is because TensorFlow 2.x isn't supply contrib, non of them can help me.

I am using. python 3.9.12 ubuntu 21.10 TensorFlow 2.11.0 Is anyone know how to fix this problem, pls help me.

Chanyu
  • 1
  • 1
  • contrib does not exist anymore in tf 2. Have a look at this: https://stackoverflow.com/questions/55082483/why-can-i-not-import-tensorflow-contrib-i-get-an-error-of-no-module-named-tenso "Please google the name of the module without the tf.contrib part to know it's new location and thus migrating your code accordingly by correcting the import statement." – Andi R Nov 25 '22 at 17:11

0 Answers0