deepbeam icon indicating copy to clipboard operation
deepbeam copied to clipboard

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

Open aleksandra-bebe opened this issue 6 months ago • 2 comments

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!

aleksandra-bebe avatar Dec 12 '23 13:12 aleksandra-bebe