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

test ValueError: No variables to save #155

Open
Ttingyyy opened this issue Nov 28, 2023 · 1 comment
Open

test ValueError: No variables to save #155

Ttingyyy opened this issue Nov 28, 2023 · 1 comment

Comments

@Ttingyyy
Copy link

Traceback (most recent call last):
File "test.py", line 273, in
tf.app.run()
File "D:\Anaconda3\envs\tensorflow_1.x_gpu\lib\site-packages\tensorflow_core\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "D:\Anaconda3\envs\tensorflow_1.x_gpu\lib\site-packages\absl\app.py", line 308, in run
_run_main(main, args)
File "D:\Anaconda3\envs\tensorflow_1.x_gpu\lib\site-packages\absl\app.py", line 254, in _run_main
sys.exit(main(argv))
File "test.py", line 268, in main
mvsnet_pipeline(mvs_list)
File "test.py", line 216, in mvsnet_pipeline
restorer = tf.train.Saver(tf.global_variables())
File "D:\Anaconda3\envs\tensorflow_1.x_gpu\lib\site-packages\tensorflow_core\python\training\saver.py", line 828, in init
self.build()
File "D:\Anaconda3\envs\tensorflow_1.x_gpu\lib\site-packages\tensorflow_core\python\training\saver.py", line 840, in build
self._build(self._filename, build_save=True, build_restore=True)
File "D:\Anaconda3\envs\tensorflow_1.x_gpu\lib\site-packages\tensorflow_core\python\training\saver.py", line 865, in _build
raise ValueError("No variables to save")
ValueError: No variables to save

@Tz7311
Copy link

Tz7311 commented Jul 17, 2024

楼主,是否已经解决了?我也遇到同样的问题

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