0

我有一段ModuleNotFoundError时间使用ssd_inceprionv2inside colab。

ModuleNotFoundError: No module named 'tf_slim'

这是我到目前为止的内容:

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

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

!pip install -q Cython contextlib2 pillow lxml matplotlib

!pip install -q pycocotools

%cd /content/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
4

1 回答 1

0

看起来tf_slimColab 上没有安装。tf_slim手动安装

!pip install tf_slim
于 2021-03-16T11:10:55.490 回答