fix revision
This commit is contained in:
parent
011f2d27fe
commit
6cd671040f
|
@ -141,7 +141,6 @@ Or you can achieve the same result by executing our script from the command line
|
||||||
```bash
|
```bash
|
||||||
python lerobot/scripts/eval.py \
|
python lerobot/scripts/eval.py \
|
||||||
--hub-id lerobot/diffusion_policy_pusht_image \
|
--hub-id lerobot/diffusion_policy_pusht_image \
|
||||||
--revision v1.0 \
|
|
||||||
eval_episodes=10 \
|
eval_episodes=10 \
|
||||||
hydra.run.dir=outputs/eval/example_hub
|
hydra.run.dir=outputs/eval/example_hub
|
||||||
```
|
```
|
||||||
|
|
|
@ -249,7 +249,7 @@ if __name__ == "__main__":
|
||||||
# TODO(alexander-soare): Save and load stats in trained model directory.
|
# TODO(alexander-soare): Save and load stats in trained model directory.
|
||||||
stats_path = None
|
stats_path = None
|
||||||
elif args.hub_id is not 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(
|
cfg = init_hydra_config(
|
||||||
folder / "config.yaml", [f"policy.pretrained_model_path={folder / 'model.pt'}", *args.overrides]
|
folder / "config.yaml", [f"policy.pretrained_model_path={folder / 'model.pt'}", *args.overrides]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue