Home > Enterprise >  Show_inference error in tensorflow tutorial
Show_inference error in tensorflow tutorial

Time:09-27

I am entirely new to python and tensorflow. While following the tutorial at model zoo. I run into show_inference error. Please explain what it means and how to fix it. I searched stack overflow and bump into this thread Error in implemeting tensorflow object detection model but the error appear to be different from what I encountered.

!pip install -U --pre tensorflow=="2.*"
!pip install tf_slim
#Make sure you have pycocotools installed

!pip install pycocotools
#Get tensorflow/models or cd to parent directory of the repository.

import os
import pathlib


if "models" in pathlib.Path.cwd().parts:
  while "models" in pathlib.Path.cwd().parts:
    os.chdir('..')
elif not pathlib.Path('models').exists():
  !git clone --depth 1 https://github.com/tensorflow/models
#Compile protobufs and install the object_detection package

%           
  • Related