refactor(g05): keep recipe runtime unchanged

This commit is contained in:
Pepijn
2026-07-29 15:59:38 +02:00
parent 3dee8e640a
commit fe4497ba27
7 changed files with 19 additions and 157 deletions
+3 -4
View File
@@ -149,10 +149,9 @@ lerobot-train \
The bundled `g05_bbox_subtask.yaml` recipe resolves the active
`language_persistent` `subtask` and camera-scoped grounded `vqa` event at each
sample timestamp. It applies independent `0.5` dropout to the optional BBox and
Subtask targets, producing Action-only, Subtask+Action, BBox+Action, and joint
BBox+Subtask+Action samples. An unavailable annotation is skipped before
dropout through the recipe's `if_present` guard.
sample timestamp. It emits each optional BBox or Subtask target when that
annotation is present; unavailable annotations are skipped through the recipe's
existing `if_present` guard.
Grounded VQA boxes are converted from pixel-space `xyxy` JSON using the source
camera dimensions captured before image resizing, then serialized as G0.5
-18
View File
@@ -146,24 +146,6 @@ The renderer does not apply a tokenizer chat template. Policy processors decide
Blend recipes select one weighted sub-recipe deterministically from the sample index.
`recipes/subtask_mem.yaml` trains the compact core blend — high-level subtask prediction, low-level execution, and memory. `recipes/subtask_mem_vqa_speech.yaml` is the fuller variant that also adds VQA and spoken interjection responses.
Message turns can set `dropout` to a probability between `0` and `1`. Dropout is
deterministic for a given sample index and independent between turns. Combine it
with `if_present` to sample optional supervision formats while gracefully
skipping annotations that are unavailable:
```yaml
messages:
- { role: user, content: "${task}", stream: low_level }
- {
role: assistant,
content: "${subtask}",
stream: low_level,
target: true,
if_present: subtask,
dropout: 0.5,
}
```
A message recipe with a supervised assistant turn on the `low_level` stream trains
the π0.5 paper's joint sequence instead of a blend: the target span gets text CE
while also conditioning the action losses in the same forward.