Skip to content

Commit

Permalink
fix rollout file name error
Browse files Browse the repository at this point in the history
  • Loading branch information
yjchoi1 committed Oct 24, 2024
1 parent 166470c commit a97aa60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gns/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ def predict(device: str, cfg: DictConfig):
if cfg.mode == "rollout":
example_rollout["metadata"] = metadata
example_rollout["loss"] = loss.mean()
filename = f"{cfg.output.filename}_ex{example_i}.pkl"
filename_render = f"{cfg.output.filename}_ex{example_i}"
filename_render = f"{cfg.output.filename}_ex{example_i}.pkl"
filename = os.path.join(cfg.output.path, filename_render)
with open(filename, "wb") as f:
pickle.dump(example_rollout, f)
Expand Down

0 comments on commit a97aa60

Please sign in to comment.