Skip to content

Commit

Permalink
fix total_len
Browse files Browse the repository at this point in the history
  • Loading branch information
rizar committed Feb 19, 2019
1 parent b58c756 commit a2db811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babyai/imitation.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def initial_status():
if status['i'] % self.args.log_interval == 0:
total_ellapsed_time = int(time.time() - total_start_time)

fps = total_len / (update_end_time - update_start_time)
fps = log['frames'] / (update_end_time - update_start_time)
duration = datetime.timedelta(seconds=total_ellapsed_time)

for key in log:
Expand Down

0 comments on commit a2db811

Please sign in to comment.