ZJULearning / pixel_link

Implementation of our paper 'PixelLink: Detecting Scene Text via Instance Segmentation' in AAAI2018
MIT License
768 stars 255 forks source link

ValueError: Can't load save_path when it is None. #157

Open jun214384468 opened 4 years ago

jun214384468 commented 4 years ago

File "/home/yan/disk/All_python_Text/pixel_link-master/train_pixel_link.py", line 292, in main train(train_op) File "/home/yan/disk/All_python_Text/pixel_link-master/train_pixel_link.py", line 278, in train session_config = sess_config File "/home/yan/anaconda3/envs/pixel_link/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/learning.py", line 748, in train master, start_standard_services=False, config=session_config) as sess: File "/home/yan/anaconda3/envs/pixel_link/lib/python2.7/contextlib.py", line 17, in enter return self.gen.next() File "/home/yan/anaconda3/envs/pixel_link/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 1005, in managed_session self.stop(close_summary_writer=close_summary_writer) File "/home/yan/anaconda3/envs/pixel_link/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 833, in stop ignore_live_threads=ignore_live_threads) File "/home/yan/anaconda3/envs/pixel_link/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 389, in join six.reraise(*self._exc_info_to_raise) File "/home/yan/anaconda3/envs/pixel_link/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 994, in managed_session start_standard_services=start_standard_services) File "/home/yan/anaconda3/envs/pixel_link/lib/python2.7/site-packages/tensorflow/python/training/supervisor.py", line 731, in prepare_or_wait_for_session init_feed_dict=self._init_feed_dict, init_fn=self._init_fn) File "/home/yan/anaconda3/envs/pixel_link/lib/python2.7/site-packages/tensorflow/python/training/session_manager.py", line 289, in prepare_session init_fn(sess) File "/home/yan/anaconda3/envs/pixel_link/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/variables.py", line 697, in callback saver.restore(session, model_path) File "/home/yan/anaconda3/envs/pixel_link/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1746, in restore raise ValueError("Can't load save_path when it is None.") ValueError: Can't load save_path when it is None.

有人遇到过吗?这个问题怎么解决呀?尝试各种办法都不行

pranshu19chester commented 4 years ago

I ran into the same error. I was passing the checkpoint path incorrectly which is used in train.sh script. Maybe check that.

ligaoyuan-potato commented 4 years ago

你解决这个问题了吗?我也遇到了,可以分享下解决方法吗?