Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -165,16 +165,17 @@ def resume_training(extra_steps, push_to_hub, repo_id, run_dir_text):
|
|
| 165 |
"lerobot-train "
|
| 166 |
f"--output_dir='{run_dir}' "
|
| 167 |
"--resume=true "
|
|
|
|
| 168 |
f"--steps={extra_steps} "
|
| 169 |
"--eval_freq=500 "
|
| 170 |
"--save_freq=500 "
|
|
|
|
| 171 |
)
|
| 172 |
if os.path.exists(cfg_path):
|
| 173 |
base += f"--config_path='{cfg_path}' "
|
| 174 |
else:
|
| 175 |
-
# Fallback to minimal schema (prevents policy parsing errors)
|
| 176 |
base += "--policy.type=diffusion --dataset.repo_id=lerobot/pusht --env.type=pusht "
|
| 177 |
-
|
| 178 |
cmd = base + push_flags
|
| 179 |
rc, tail = _run(cmd, log)
|
| 180 |
msg = f"Resumed run at: {run_dir}\nResume exited rc={rc}\n\n=== train.log tail ===\n{tail}"
|
|
|
|
| 165 |
"lerobot-train "
|
| 166 |
f"--output_dir='{run_dir}' "
|
| 167 |
"--resume=true "
|
| 168 |
+
f"--config_path='{cfg_path}' "
|
| 169 |
f"--steps={extra_steps} "
|
| 170 |
"--eval_freq=500 "
|
| 171 |
"--save_freq=500 "
|
| 172 |
+
f"{push_flags}"
|
| 173 |
)
|
| 174 |
if os.path.exists(cfg_path):
|
| 175 |
base += f"--config_path='{cfg_path}' "
|
| 176 |
else:
|
|
|
|
| 177 |
base += "--policy.type=diffusion --dataset.repo_id=lerobot/pusht --env.type=pusht "
|
| 178 |
+
|
| 179 |
cmd = base + push_flags
|
| 180 |
rc, tail = _run(cmd, log)
|
| 181 |
msg = f"Resumed run at: {run_dir}\nResume exited rc={rc}\n\n=== train.log tail ===\n{tail}"
|