truelabel

Explore the platform

What brings you to truelabel?

We use these details to respond to your request. See our Privacy Policy.

Physical AI Data Engineering

How to Work with RLDS and LeRobot Formats

Treat conversion as preservation of episode meaning before changing storage. RLDS represents episodes containing steps. LeRobot v0.4.0 uses the v3.0 dataset layout with Parquet frame data, MP4 video and JSON/Parquet metadata. It is not an HDF5 observation-storage contract. Pin the source schema and target loader; define how you retain the final observation and mask invalid action fields before exporting.

Updated 2026-07-144 min read
By Truelabel Team
Reviewed by Truelabel Team ·
RLDS and LeRobot formats

Explore the platform

What brings you to truelabel?

We use these details to respond to your request. See our Privacy Policy.

Specs & FAQ

Quick facts

Pairing
Write the o/a alignment rule; reject double shifting.
Last step
Retain o2 in the conversion record. Placeholder actions need a consumer-understood validity mask.
Status
Validation plan only; upstream rights, availability and successful execution are unverified.

A two-action episode, worked on paper

Illustrative, not an executed converter: the episode has observations o0, o1, o2 and actions a0, a1. In RLDS the action is paired with the observation it acts on. A dm_env-style recording instead initially associates a0 with the next observation o1; inspect the recorder so you do not shift twice.

A terminal variant marks the last step is_terminal=true; a truncated variant marks it false. Neither is_last alone nor is_terminal proves task success. Optional fields must still have the same field set across steps in one RLDS dataset. Presence of a placeholder does not make its value valid. [1]

Source stepRLDS semanticsTarget design decision
0o0/a0, is_first=true, is_last=falseRetain o0 and a0 with valid_action=true.
1o1/a1, is_first=false, is_last=falseRetain o1 and a1 with valid_action=true.
2o2, is_last=true; subsequent action/reward/discount invalidRetain o2 in the conversion record. If the target requires an action-shaped placeholder, document it and use a consumer-understood validity mask; never invent a physical command.
A two-action episode, worked on paper (inspection guidance; not executed)

Mapping contract to agree before export

[LB-formats-0003–0009] [2]

ItemSource questionTarget v0.4.0 evidence
PairingWas this already loaded through RLDS's transition alignment?Write the o/a alignment rule; reject double shifting.
Frame fieldsWhat clocks and episode identifiers exist?timestamp, frame_index, episode_index, index, task_index are default fields. Populate from documented source semantics; do not assume numeric index equals elapsed time.
Task mappingWhich instruction maps to each integer ID?Pinned code uses meta/tasks.parquet and read_parquet; do not write tasks.jsonl on the strength of conflicting v3 prose.
Episode metadataWhere does each episode begin/end?Preserve dataset_from_index, dataset_to_index and data chunk/file references; inspect against the selected rows.
Media/schemaWhich camera, action units and coordinate frames are present?Record features, fps, splits, data_path and video_path from info metadata. Missing physical semantics → HOLD.
Time windowsIs resampling necessary for the intended consumer?Requested deltas must match multiples of 1/fps within supplied tolerance. Define interpolation and boundary handling explicitly; do not resample solely to rename a format.
Mapping contract to agree before export (inspection guidance; not executed)

Consumer agreement and validation plan

The validity mask above is an editorial design field, not a claim that LeRobot supplies or honors that mask automatically. If the target training code cannot exclude placeholder actions, HOLD the conversion design and agree a compatible policy. If the consumer omits the final observation from training rows, retain it in an explicit sidecar or agreed representation and document that choice; silently dropping it loses episode semantics.

Plan comparisons of source and target episode counts, final observations, valid action counts, task IDs, timestamps, camera samples and bounds. Split at the agreed scene/session grouping before fitting any training statistics; group independence must be checked, not inferred from a label. This is a validation plan, not passed tests. Keep original camera images separate from training transforms. [3]

Use these to move from category-level context into specific task, dataset, format, and comparison detail.

External references and source context

  1. RLDS README (moving main branch)

    Episode steps, optional fields, boundary invalid values and action-observation pairing.

    GitHub ↩
  2. docs github lerobot v0 4 0 datasets utils

    Pinned default frame fields, metadata paths, task Parquet manifest and temporal-window contract.

    raw.githubusercontent.com ↩
  3. LeRobot v0.4.0: dataset format v3.0

    LeRobot v0.4.0 documentation describes format v3.0 storage, loaders, recording safeguards and training transforms.

    GitHub ↩
  4. LeRobotDataset v0.4.0 loader

    Constructor root, episodes and revision options, isolated cache warning and metadata reconstruction.

    GitHub
  5. LeRobot v0.3.3 dataset paths

    v0.3.3 per-episode data and video paths.

    GitHub

FAQ

Is there a universal lossless converter?

None is established by this evidence. Source-specific action definitions, optional fields and consumer padding behavior remain dependencies.

What does HOLD mean here?

Record the field, affected episode/consumer and evidence required. Do not generate a last action or assume task success from a boundary flag.

How do I find and load a candidate?

Use the LeRobot discovery and loader workflow. This guide owns the conversion contract; RLDS format explains boundary semantics. Upstream rights, candidate availability and successful execution are unverified.

Was the worked conversion executed?

No. The episode is illustrative, not an executed converter. The validity mask is an editorial design field, not a claim that LeRobot supplies or honors it automatically. If the target training code cannot exclude placeholder actions, HOLD the conversion design and agree a compatible policy.

Running your own capture operation?

TrueLabel is the software platform for data providers, labs, and robotics companies that run their own capture operations, taking capture devices through processing to high-quality training and alignment data.

Explore the platform

What brings you to truelabel?

We use these details to respond to your request. See our Privacy Policy.