Skip to content

Commit

Permalink
be verbose when saving demos
Browse files Browse the repository at this point in the history
  • Loading branch information
rizar committed Feb 4, 2019
1 parent b33ffc6 commit 07f2133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/make_agent_demos.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ def generate_demos(n_episodes, valid, seed, shift=0):
if args.save_interval > 0 and len(demos) < n_episodes and len(demos) % args.save_interval == 0:
logger.info("Saving demos...")
utils.save_demos(demos, demos_path)
logger.info("Demos saved")
logger.info("{} demos saved".format(len(demos)))
# print statistics for the last 100 demonstrations
print_demo_lengths(demos[-100:])


# Save demonstrations
logger.info("Saving demos...")
utils.save_demos(demos, demos_path)
logger.info("Demos saved")
logger.info("{} demos saved".format(len(demos)))
print_demo_lengths(demos[-100:])


Expand Down

0 comments on commit 07f2133

Please sign in to comment.