[python] Simplify LeRobot metadata tables and training tags - #9676
Open
YannByron wants to merge 1 commit into
Open
[python] Simplify LeRobot metadata tables and training tags#9676YannByron wants to merge 1 commit into
YannByron wants to merge 1 commit into
Conversation
Store info and stats in companion tables with JSON string values, and support optional named tags for imported or current component snapshots. Co-Authored-By: Codex <noreply@anthropic.com> AI-Model: gpt-6 Co-Authored-By: Codex <noreply@ai-tool.com> AI-Contributed/Feature: 278/278 AI-Contributed/UT: 290/290
YannByron
force-pushed
the
codex/lerobot-metadata-tags
branch
from
September 7, 2026 14:40
ee7d782 to
d9d4e82
Compare
|
|
||
| ```python | ||
| version_id = conn.load_from_lerobot( | ||
| snapshot_id = conn.load_from_lerobot( |
Contributor
There was a problem hiding this comment.
Suggestion: Maybe just return None?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Decouple LeRobot ingestion from dataset version publication. Store dataset info and optional statistics in companion tables with
key STRING, value STRING, using JSON-encoded values to preserve nested metadata without a fixed schema.load_from_lerobotreturns the committed frame snapshot ID and accepts an optionaltag_name.create_lerobot_tagpins the current snapshots of all recorded components under a shared name for training, checks conflicts before creating tags, and supports retries while snapshots remain unchanged.Cross-table tagging is not atomic: callers must pause group writes until the call succeeds and read every component through the same tag. Documentation and regression tests cover this contract.
Tests
git diff --checkpassed.LeRobot tests ran with Python 3.12, LeRobot 0.4.4, PyArrow 19.0.1, and NumPy 2.3.5. NumPy 2.5 fails in the existing SDK fixture's array-to-scalar conversion; project dependencies are unchanged.