Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model files are missing #1

Open
Sara-Esam opened this issue Jan 16, 2024 · 0 comments
Open

Model files are missing #1

Sara-Esam opened this issue Jan 16, 2024 · 0 comments

Comments

@Sara-Esam
Copy link

Hi,

I was trying to run the generator on some test images, but it seems that loading the model is not possible from the .h5 file.

I tried to change line 19 in useGenerator.py to
model = load_model(model_path)
where
load_model is from keras.models
yet it still does not load the model ... getting the same error

Traceback (most recent call last):
  File "useGenerator.py", line 32, in <module>
    main()
  File "useGenerator.py", line 19, in main
    model = load_model(os.path.join("./model/","generator.h5"))
  File "/home/sabdulaziz/anaconda3/envs/monet/lib/python3.8/site-packages/tensorflow/python/keras/saving/save.py", line 211, in load_model
    loader_impl.parse_saved_model(filepath)
  File "/home/sabdulaziz/anaconda3/envs/monet/lib/python3.8/site-packages/tensorflow/python/saved_model/loader_impl.py", line 111, in parse_saved_model
    raise IOError("SavedModel file does not exist at: %s/{%s|%s}" %
OSError: SavedModel file does not exist at: ./model/generator.h5/{saved_model.pbtxt|saved_model.pb} 

Would you please upload the complete model files somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant