Skip to content

Commit

Permalink
model saves every 15th epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
obitech committed Jun 20, 2018
1 parent 96cf793 commit baca3d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/vggish_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,9 @@ def main(_):

# Save model to disk.
saver = tf.train.Saver()
save_path = saver.save(sess, os.path.join(model_dir, "jibjib_model.ckpt"),global_step=step)
log.info("Model saved to %s" % save_path)
if step % 15 == 0:
save_path = saver.save(sess, os.path.join(model_dir, "jibjib_model.ckpt"),global_step=step)
log.info("Model saved to %s" % save_path)

now = datetime.datetime.now().isoformat().replace(":", "_").split(".")[0]
end = time.time()
Expand Down

0 comments on commit baca3d5

Please sign in to comment.