Skip to content

Commit

Permalink
log artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jun 21, 2024
1 parent 5faada1 commit 4c8fffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pokemonred_puffer/cleanrl_puffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def close(self):
artifact = wandb.Artifact(artifact_name, type="model")
model_path = self.save_checkpoint()
artifact.add_file(model_path)
self.wandb_client.run.log_artifact(artifact)
self.wandb_client.log_artifact(artifact)
self.wandb_client.finish()

def save_checkpoint(self):
Expand Down
1 change: 1 addition & 0 deletions pokemonred_puffer/wrappers/stream_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def __init__(self, env: RedGymEnv, config: pufferlib.namespace):

def __del__(self):
try:
self.loop.run_until_complete()
for task in asyncio.all_tasks():
task.cancel()
self.loop.close()
Expand Down

0 comments on commit 4c8fffe

Please sign in to comment.