Skip to content

fix(lerobot): preserve multitask frame labels on export - #533

Closed
harshitethic wants to merge 1 commit into
Hebbian-Robotics:mainfrom
harshitethic:fix/lerobot-multitask-task-index
Closed

harshitethic wants to merge 1 commit into
Hebbian-Robotics:mainfrom
harshitethic:fix/lerobot-multitask-task-index

Conversation

@harshitethic

Copy link
Copy Markdown
Contributor

Summary

  • preserve each source episode's complete task list instead of collapsing it to the first task during export
  • validate every copied frame's task_index against the task list that will actually be published
  • preserve task_index in the exported info.json feature schema
  • add positive coverage for a two-task episode and a refusal test for an out-of-range frame task pointer

Verification

  • git diff --check
  • uv run ruff check examples/lerobot/export.py tests/test_lerobot_export.py
  • uv run pytest -q tests/test_lerobot_export.py -k 'multitask or task_index_outside'

Fixes #529

@github-actions

Copy link
Copy Markdown

👋 Hi @harshitethic — thanks for the contribution! To keep starter issues available
for other contributors and give every pull request a real review, we accept
1 open pull request per contributor at a time.

You already have #531 open, so this one is being closed automatically.
Once your open pull request is merged or closed, feel free to reopen this one —
no work is lost.

@github-actions github-actions Bot closed this Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lerobot export: frame task_index survives task-list collapse, shipping frames that reference a nonexistent task

1 participant