Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question