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

Error : No variables to save in the line model.saver.restore(model.sess, 'assets/bawn_sp.ckpt-399125') #5

Open
aleksandra-bebe opened this issue Dec 12, 2023 · 2 comments

Comments

@aleksandra-bebe
Copy link

Hello, when I run the demo code, I encounter an error in the line model.saver.restore(model.sess, 'assets/bawn_sp.ckpt-399125'). I'm using TensorFlow 2.14.0, and the error message is:

swift
Copy code
Exception has occurred: ValueError
No variables to save
File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\training\saver.py", line 971, in _build
raise ValueError("No variables to save")
File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\training\saver.py", line 949, in _build_eager
self._build(
File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\training\saver.py", line 1416, in restore
self._build_eager(save_path, build_save=False, build_restore=True)
File "C:\Users\pc\Desktop\AI-Beamformers\deepbeam\deepbeam\test.py", line 20, in
model.saver.restore(model.sess, 'assets/bawn_sp.ckpt-399125')
File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\runpy.py", line 88, in _run_code
exec(code, run_globals)
File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\runpy.py", line 198, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: No variables to save
Do you have any experience with this? Thank you in advance!

@auspicious3000
Copy link
Owner

This repo is implemented using the Tensorflow version from 6 years ago. This might be caused by the difference between Tensorflow versions.

@aleksandra-bebe
Copy link
Author

Okey, thank you!

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

2 participants