python object_detection / builders / model_builder_test.py
我正在安装tensorflow-gpu。
运行此代码时出现此错误:
Traceback (most recent call last):
File "/home/mustafafurkanbilen/.local/lib/python2.7/site-packages
/tensorflow/python/util/lazy_loader.py", line 53, in __getattr__
module = self._load()
File "/home/mustafafurkanbilen/.local/lib/python2.7/site-packages
/tensorflow/python/util/lazy_loader.py", line 42, in _load
module = importlib.import_module(self.__name__)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
File "/home/mustafafurkanbilen/.local/lib/python2.7/site-packages
/tensorflow/contrib/distribute/python/tpu_strategy.py", line 27, in
<module>
from tensorflow.python.estimator import model_fn as model_fn_lib
ImportError: cannot import name model_fn