We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e710959 commit 1e49cc4Copy full SHA for 1e49cc4
lerobot/configs/train.py
@@ -85,6 +85,11 @@ def validate(self):
85
config_path = parser.parse_arg("config_path")
86
if not config_path:
87
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
+ )
93
policy_path = Path(config_path).parent
94
self.policy.pretrained_path = policy_path
95
self.checkpoint_path = policy_path.parent
0 commit comments