0
import tensorflow_hub as hub

module_handle = "https://tfhub.dev/google/faster_rcnn/openimages_v4/inception_resnet_v2/1"
model = hub.load(module_handle)

Above code snippet is throwing error as follows in pycharm environment. Any idea why it is throwing error ?

OSError: SavedModel file does not exist at: OSError: SavedModel file does not exist at: C:\Users\sethu\AppData\Local\Temp\tfhub_modules\6e850c920451d5243d1fb87a3242c087535b9183/{saved_model.pbtxt|saved_model.pb}

1 Answers1

0

Your code worked for me so the URL looks good. Note that TF Hub caches models locally. Have you checked that this directory & file(s) exists?

C:\Users\sethu\AppData\Local\Temp\tfhub_modules\6e850c920451d5243d1fb87a3242c087535b9183/{saved_model.pbtxt|saved_model.pb

Per this post try deleting the directory and running your code again.

j2abro
  • 733
  • 8
  • 17