fix revision

This commit is contained in:
Alexander Soare
2024-03-27 13:22:14 +00:00
parent 011f2d27fe
commit 6cd671040f
2 changed files with 1 additions and 2 deletions

View File

@@ -249,7 +249,7 @@ if __name__ == "__main__":
# TODO(alexander-soare): Save and load stats in trained model directory.
stats_path = None
elif args.hub_id is not None:
folder = Path(snapshot_download(args.hub_id, revision="v1.0"))
folder = Path(snapshot_download(args.hub_id, revision=args.revision))
cfg = init_hydra_config(
folder / "config.yaml", [f"policy.pretrained_model_path={folder / 'model.pt'}", *args.overrides]
)