D
D
djumeeb2020-10-07 08:32:33
Python
djumeeb, 2020-10-07 08:32:33

How to fix tensorflow._api.v1.compat.v2 module error?

I got this error Traceback (most recent call last):
File "train.py", line 59, in
tf.logging.set_verbosity(tf.logging.INFO)
File "D:\programms\envs\tf\lib\site-packages \tensorflow_core\python\util\module_wrapper.py", line 193, in __getattr__
attr = getattr(self._tfmw_wrapped_module, name)
AttributeError: module 'tensorflow._api.v1.compat.v2' has no attribute 'logging'
(tf) PS D:\models\research\object_detection>
when I type python train.py --logtostdeer --train_dir=training\ --pipeline_config_path=training\ssd_mobilenet_v1_pets

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zexer, 2020-10-07
@zexer

https://stackoverflow.com/questions/60292905/attri...
https://github.com/tensorflow/models/issues/7998

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question