SavedModel file does not exist at ...

739 views
Skip to first unread message

*_

unread,
Jul 2, 2021, 10:43:39 AM7/2/21
to Discuss
I have tried the following code:

import tensorflow_hub as hub
import tensorflow as tf

Nothing more. But when I ran that code, I got:

2021-07-02 17:39:19.253333: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2021-07-02 17:39:19.253506: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
  File "D:\Project\cppflow\examples\load_model\SuperResolution2.py", line 3, in <module>
  File "D:\Program Files\Python39\lib\site-packages\tensorflow_hub\module_v2.py", line 106, in load
    obj = tf.compat.v1.saved_model.load_v2(module_path, tags=tags)
  File "D:\Program Files\Python39\lib\site-packages\tensorflow\python\saved_model\load.py", line 869, in load
    return load_internal(export_dir, tags, options)["root"]
  File "D:\Program Files\Python39\lib\site-packages\tensorflow\python\saved_model\load.py", line 881, in load_internal
    loader_impl.parse_saved_model_with_debug_info(export_dir))
  File "D:\Program Files\Python39\lib\site-packages\tensorflow\python\saved_model\loader_impl.py", line 56, in parse_saved_model_with_debug_info
    saved_model = _parse_saved_model(export_dir)
  File "D:\Program Files\Python39\lib\site-packages\tensorflow\python\saved_model\loader_impl.py", line 113, in parse_saved_model
    raise IOError(
OSError: SavedModel file does not exist at: C:\Users\Flaviu\AppData\Local\Temp\tfhub_modules\f591ba671b05004f8d321dc431aa264a1ed374cc\{saved_model.pbtxt|saved_model.pb}

Why ? What I did wrong ? 

*_

unread,
Jul 6, 2021, 11:02:15 AM7/6/21
to Discuss, _ *
I have solved by downloading *.pb file and loading with:

model = hub.load("D:\MyPath\esrgan-tf2_1")

Seems to work.

Reply all
Reply to author
Forward
0 new messages