本文介绍了ImportError:Colab Google中没有名为object_detection.builders的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑步时遇到此错误

%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

有人可以帮助我,我为此工作了很多时间

Someone can help me please, i've working a lot of time in this

推荐答案

Python无法找到模块"object_detection".解决方案:

Python is unable to find the module "object_detection". Solution:

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

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

See if this helps:
https://github.com/tensorflow/models/issues/1832

这篇关于ImportError:Colab Google中没有名为object_detection.builders的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 21:21