获取ImportError:无法导入名称“输入”

时间:2020-09-21 04:34:21

标签: tensorflow

我按照说明(https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/training.html)安装Tensorflow对象检测API。

我在ubuntu18.4上使用了Anaconda,说明中的所有步骤似乎都没问题。

当我使用以下命令训练模型时:

python model_main_tf2.py --model_dir=models/my_ssd_resnet50_v1_fpn --pipeline_config_path=models/my_ssd_resnet50_v1_fpn/pipeline.config

我收到以下错误:

   Traceback (most recent call last):
  File "model_main_tf2.py", line 35, in <module>
    from object_detection import model_lib_v2
  File "/home/chanitda/Desktop/Tensorflow/workspace/training_demo/object_detection/__init__.py", line 30, in <module>
    from object_detection import inputs
ImportError: cannot import name 'inputs'

我收到标题中提到的错误。

如果有人可以帮助我提供代码示例来解决问题,我将非常感激。

0 个答案:

没有答案
相关问题