0

I have a ModuleNotFoundError while using the ssd_inceprionv2 within colab.

ModuleNotFoundError: No module named 'tf_slim'

Here is what I've so far:

%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
Salma Elshahawy
  • 1,112
  • 2
  • 11
  • 21

1 Answers1

0

It looks like tf_slim is not installed on Colab. Install tf_slim manually

!pip install tf_slim