【问题标题】:How can I install the tensorflow object detection API on Google colab?如何在 Google colab 上安装 tensorflow 对象检测 API?
【发布时间】:2018-12-21 07:47:07
【问题描述】:

我尝试根据在 Colab 上运行 tensorflow 对象检测 API Inline Link

我在第一次安装所需的软件包时遇到了这样的错误。 我该如何解决?

背景:Python2、GPU

/root
fatal: destination path 'models' already exists and is not an empty directory.
/root/models/research
Traceback (most recent call last):
  File "object_detection/builders/model_builder_test.py", line 23, in <module>
    from object_detection.builders import model_builder
ImportError: No module named object_detection.builders

【问题讨论】:

  • 由于某种原因我没有对其进行编码,因此我省略了它。我为链接运行了安装所需软件包的代码。

标签: tensorflow google-colaboratory object-detection-api


【解决方案1】:

我不清楚您从哪个目录执行命令。 如果您从内容目录执行它,则转到模型,然后转到研究目录。

%cd ~/models/research
!python object_detection/builders/model_builder_test.py

如果您没有模型目录,请使用

克隆它
!git clone --quiet https://github.com/tensorflow/models.git

【讨论】:

    猜你喜欢
    • 2020-04-16
    • 2021-12-28
    • 2018-07-17
    • 1970-01-01
    • 2021-10-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多