2

I am trying to retrain the inception v3 model.

However, I got stuck by an error

AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'get_registered_ops'

in the tensorflow_hub native_module.py file.

Why do I get this error?

missing_ops = graph_ops - set(op_def_registry.get_registered_ops().keys())

2 Answers 2

3

get_registered_ops() has been removed in recent versions of. Be sure to use tensorflow-hub>=0.7.0 to pick up on the black magic at https://github.com/tensorflow/hub/blob/v0.7.0/tensorflow_hub/native_module.py#L50

Sign up to request clarification or add additional context in comments.

2 Comments

I am using tensorflow-hub 0.10.0 and still getting this error. Any suggestions?
Did anyone manage to solve this? I suddenly started having this problem, I tried re-installing the Object Detection API, but had no success
1
  1. Use Tensorflow 1.11 or greater. However, don't go on to use Tensorflow 2.*.
  2. Also, for the current latest version of tensorflow-hub 0.10.0, you need tf >= 1.15.0. Thus, best to use 1.15.0 <= tf < 2.* along with tf-hub latest(0.10.0).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.