question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Saver not working

See original GitHub issue

I believe the file train.py and line#151 : os.rename(path, trained_dir + 'best_model.ckpt') needs to be updated for 1.2. The path variable is missing the extension of the file ? not sure. Is the any other way to fix it ?

AND

predict.py line 109,110, and 111 needs to be updated as well.

checkpoint_file = trained_dir + ‘best_model.ckpt’ saver = tf.train.Saver(tf.all_variables()) saver = tf.train.import_meta_graph(“{}.meta”.format(checkpoint_file[:-5]))`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

4reactions
hkhatodcommented, Jul 12, 2017

I got it to work. You need to do two things: Step 1. Update the files to newer version using these instructions: https://www.tensorflow.org/install/migration

Step 2: I used the “last_checkpoints” restore method as described here: https://www.tensorflow.org/api_docs/python/tf/train/Saver

That seem to have done the trick for me.

1reaction
abbailcommented, Jul 13, 2017

Thanks, it was still very picky about the training sample size I used, but I got it working with your code. Helped a ton!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Battery Saver not working on Windows Laptop
Battery Saver not working on Windows Laptop ; Use Settings to turn on Battery Saver; Run Power Troubleshooter; Restore default Power Settings.
Read more >
How To Fix Battery Saver Mode Not Working In Windows 10 ...
Fix Battery Saver Mode In Settings​​ Click on Battery. Step-4: When the battery settings open up, an on/off toggle switch underneath the battery...
Read more >
Battery saver button not working - Microsoft Community
Hi there,. After the latest update in May 2020, i cant turned on the battery saver mode from the battery icon as shown...
Read more >
Screensaver not working in Windows 11/10 - YouTube
Screensavers are moving visuals that appear on your system's screen after the system has been idle for a while. However, at times the ......
Read more >
2022 Guide to Fix Screen Saver not working in Windows 10 ...
Check article with full guide : http://windowsreport.com/screen- saver - not-working -windows-10/▻ Try out Restoro to Repair your PC in no ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found