jiangsutx/SRN-Deblur

errors

noranali opened this issue · 2 comments

thank you for sharing your code i have an error while trying to test using colab notebook
the error is
[*] Reading checkpoints...

ValueError Traceback (most recent call last)
/content/drive/MyDrive/SRN-Deblur-master/SRN-Deblur-master/run_model.py in ()
48
49 if name == 'main':
---> 50 tf.app.run()

6 frames
/tensorflow-1.15.2/python3.7/tensorflow_core/python/platform/app.py in run(main, argv)
38 main = main or _sys.modules['main'].main
39
---> 40 _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)

/usr/local/lib/python3.7/dist-packages/absl/app.py in run(main, argv, flags_parser)
310 callback()
311 try:
--> 312 _run_main(main, args)
313 except UsageError as error:
314 usage(shorthelp=True, detailed_error=error, exitcode=error.exitcode)

/usr/local/lib/python3.7/dist-packages/absl/app.py in _run_main(main, argv)
256 sys.exit(retval)
257 else:
--> 258 sys.exit(main(argv))
259
260

/content/drive/MyDrive/SRN-Deblur-master/SRN-Deblur-master/run_model.py in main(_)
40 deblur = model.DEBLUR(args)
41 if args.phase == 'test':
---> 42 deblur.test(args.height, args.width, args.input_path, args.output_path)
43 elif args.phase == 'train':
44 deblur.train()

/content/drive/My Drive/SRN-Deblur-master/SRN-Deblur-master/models/model.py in test(self, height, width, input_path, output_path)
274
275 self.saver = tf.train.Saver()
--> 276 self.load(sess, self.train_dir, step=523000)
277
278 for imgName in imgsName:

/content/drive/My Drive/SRN-Deblur-master/SRN-Deblur-master/models/model.py in load(self, sess, checkpoint_dir, step)
247 if step is not None:
248 ckpt_name = model_name + '-' + str(step)
--> 249 self.saver.restore(sess, os.path.join(checkpoint_dir, ckpt_name))
250 print(" [*] Reading intermediate checkpoints... Success")
251 return str(step)

/tensorflow-1.15.2/python3.7/tensorflow_core/python/training/saver.py in restore(self, sess, save_path)
1280 if not checkpoint_management.checkpoint_exists_internal(checkpoint_prefix):
1281 raise ValueError("The passed save_path is not a valid checkpoint: " +
-> 1282 checkpoint_prefix)
1283
1284 logging.info("Restoring parameters from %s", checkpoint_prefix)

ValueError: The passed save_path is not a valid checkpoint: ./checkpoints/color/deblur.model-52300

ValueError: The passed save_path is not a valid checkpoint: ./checkpoints/color/deblur.model-52300

Do you have model files in that folder?

yes i have model files .
test works successfully for the first time . to work again i should restart the run time .