Skip to content

Commit

Permalink
Preprocessing visualisation for Enduro and Breakout.
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvardnmbu committed Mar 12, 2024
1 parent 08302f4 commit c0631ae
Show file tree
Hide file tree
Showing 3 changed files with 251 additions and 2 deletions.
2 changes: 1 addition & 1 deletion breakout/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@

if TRAINING and game % CHECKPOINT == 0:
logger.info("Saving model")
torch.save(value_agent, f"./output/checkpoint-{game}.pth")
torch.save(value_agent.state_dict(), f"./output/weights-{game}.pth")

logger.info("Total training time: %s seconds", round(time.time() - start, 2))
logger.debug("Metrics saved to %s", METRICS)
2 changes: 1 addition & 1 deletion enduro/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@

if TRAINING and game % CHECKPOINT == 0:
logger.info("Saving model")
torch.save(value_agent, f"./output/checkpoint-{game}.pth")
torch.save(value_agent.state_dict(), f"./output/weights-{game}.pth")

logger.info("Total training time: %s seconds", round(time.time() - start, 2))
logger.debug("Metrics saved to %s", METRICS)
Loading

0 comments on commit c0631ae

Please sign in to comment.