Skip to content

Commit 1e49cc4

Browse files
authored
Prevent resuming from hub (#726)
1 parent e710959 commit 1e49cc4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lerobot/configs/train.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ def validate(self):
8585
config_path = parser.parse_arg("config_path")
8686
if not config_path:
8787
raise ValueError("A config_path is expected when resuming a run.")
88+
if not Path(config_path).resolve().exists():
89+
raise NotADirectoryError(
90+
f"{config_path=} is expected to be a local path. "
91+
"Resuming from the hub is not supported for now."
92+
)
8893
policy_path = Path(config_path).parent
8994
self.policy.pretrained_path = policy_path
9095
self.checkpoint_path = policy_path.parent

0 commit comments

Comments
 (0)