gpt4 book ai didi

python - 谷歌 Colab 中的 ImportError : No module named object_detection. build 者

转载 作者:行者123 更新时间:2023-12-05 06:29:20 26 4
gpt4 key购买 nike

我运行的时候出现这个错误

%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

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

最佳答案

pip install tensorflow-object-detection-api

关于python - 谷歌 Colab 中的 ImportError : No module named object_detection. build 者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53599174/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com