user20210310
user20210310

Reputation: 112

Cant install Tensorflow object detection API (Python)

I have found instructions on installations but despite setting sys path it gives me error saying No such file or directory: 'content/drive/MyDrive/TensorFlow/models/research' This is my entire code from cloning repository to setting path:

%cd /content/drive/My Drive/Tensorflow
!git clone https://github.com/tensorflow/models.git

!apt-get install protobuf-compiler python-lxml python-pil
!pip install Cython pandas tf-slim lvis

%cd /content/drive/My Drive/Tensorflow/models/research
!protoc object_detection/protos/*.proto --python_out=.

import os
import sys


os.environ['PYTHONPATH']+=":/content/drive/MyDrive/TensorFlow/models"

sys.path.append("/content/drive/MyDrive/TensorFlow/models/research")
sys.path.append('/content/drive/MyDrive/TensorFlow/models/research/slim')
print("done")

Upvotes: 0

Views: 2022

Answers (1)

Jitesh Malipeddi
Jitesh Malipeddi

Reputation: 2385

The best way to use the object detection API by installing all the required packages is by following the instructions given in the official repo here for version 2.x and here for Tensorflow version 1.x

Once you finish installing and successfully run all tests using the above links(s), you can use the documentation here to learn how to use it to train or test on your own dataset

Upvotes: 1

Related Questions