问题描述
我正在尝试使用google colab中的张量流进行对象检测,但是每次运行以下代码
%run model_builder_test.py
我收到此错误
ModuleNotFoundError Traceback (most recent call last)
/content/drive2/My Drive/object_detection/builders/model_builder_test.py in <module>()
21
22 from google.protobuf import text_format
---> 23 from object_detection.builders import model_builder
24 from object_detection.meta_architectures import faster_rcnn_meta_arch
25 from object_detection.meta_architectures import rfcn_meta_arch
ModuleNotFoundError: No module named 'object_detection'
我已经按照他们所说的那样设置了python路径,但仍然不断收到此错误。我会在下面给你链接到我的程序 https://colab.research.google.com/drive/1iko-bEUfxLimtbGqCmrypRyEzaWzE3vu?usp=sharing 请帮忙
解决方法
%set_env PYTHONPATH=$PYTHONPATH:/content/models/research:/content/models/research/slim:/content/models