如何在 Google colab 上安装 tensorflow 对象检测 API?
How can I install the tensorflow object detection API on Google colab?
我在 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
我不清楚您是从哪个目录执行命令的。
如果你从内容目录执行它然后转到模型然后到研究目录。
%cd ~/models/research
!python object_detection/builders/model_builder_test.py
如果您没有模型目录,请使用
克隆它
!git clone --quiet https://github.com/tensorflow/models.git
我在 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
我不清楚您是从哪个目录执行命令的。 如果你从内容目录执行它然后转到模型然后到研究目录。
%cd ~/models/research
!python object_detection/builders/model_builder_test.py
如果您没有模型目录,请使用
克隆它!git clone --quiet https://github.com/tensorflow/models.git