ImportError:colab google中没有名为object_detection.builders的模块

问题描述 投票:1回答:1

我跑的时候有这个错误

%cd

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

!apt-get install -qq protobuf-compiler python-tk

!pip install -q Cython contextlib2 pillow lxml matplotlib PyDrive

!pip install -q pycocotools

%cd ~/models/research
!protoc object_detection/protos/*.proto --python_out=.

import os
os.environ['PYTHONPATH'] += ':/content/models/research/:/content/models/research/slim/'

!python object_detection/builders/model_builder_test.py 

我懂了

/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

有人可以帮助我,我在这里工作了很多时间

python tensorflow object-detection google-colaboratory
1个回答
1
投票

Python无法找到模块“object_detection”。解:

  • 获取模块
  • 修复(包括)模块的路径。

看看这是否有帮助: https://github.com/tensorflow/models/issues/1832

© www.soinside.com 2019 - 2024. All rights reserved.