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 Convert Data to RLDS Format

Call a log converted only after five README checks hold: episode shape, mandatory step flags, truncation versus a final state, the same fields on every step, and the action shift. Two loader notes below are not a conversion. Nothing on this page was executed.

Updated 2026-07-144 min read
By Truelabel Team
Reviewed by Truelabel Team ·
convert data to RLDS format

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

Topic
HOW TO Convert Data TO Rlds Format
Audience
Robotics engineers and ML operators planning a capture or conversion
Deliverable
Operational playbook with sample workflow + accept-rule criteria

Five checks before the word converted

Scope: RLDS README on the main branch, fetched 2026-10-08T22:32:42.111Z. The ledger row does not state a publication date. This is not an executed conversion. Check 1, episode shape. The dataset is a tf.data.Dataset of episodes, and each episode contains a tf.data.Dataset of steps. [1] Episode metadata is user-defined. episode_id is a proposed optional identifier, not a required key. [2] The invalid flag marks episodes that should generally be discarded at read time, including incomplete recordings. A set that still relies on that flag is not a polished release. [3] Check 2, mandatory flags. is_first and is_last are mandatory. When is_last is true, action, reward, discount, and other fields subsequent to the observation are considered invalid. [4] Check 3, truncation. When is_terminal is true, the observation is a final state and reward, discount, and action are meaningless. An ending step with is_terminal false is a truncated episode. is_last is not defined here as task success. [5] Check 4, field consistency. Optional fields must still be the same fields on every step. [6] Check 5, action alignment. Generated (o_0, _, _, _, m_0) then (o_1, a_0, r_0, d_0, m_1) loads as (o_0, a_0, r_0, d_0, m_0) then (o_1, a_1, r_1, d_1, m_1). [7]

CheckPass condition from the READMEIf it fails
1 Episode shapetf.data.Dataset of episodes of steps; metadata only as definedDo not call it converted
2 Step flagsis_first and is_last present; fields after the last observation invalidDo not call it converted
3 Truncationis_terminal true means a final state; false at the end means truncatedDo not treat is_last as success
4 Field setSame fields on every stepDo not call it converted
5 Action shiftLoaded action sits with the observation it acts onDo not call it converted

Two loader notes that are not a conversion

EnvLogger datasets written with the TFDS backend load through tfds.builder_from_directory(path).as_dataset(split='all'). That call reads a directory. It does not add the dataset to the public catalog, and it is not a conversion you just ran. [8] Interleaving N copies shuffles each copy independently, and each step is loaded N times unless the copies use disjoint splits. [9] Passing either call is not one of the five checks.

Illustrative check sheet, not executed

Illustrative sheet, not executed. source_log=unset; check_1=unset; check_2=unset; check_3=unset; check_4=unset; check_5=unset; invalid_flag=unknown; builder_from_directory=not a conversion; interleave_duplicates=unknown. Outcome: HOLD. Do not write converted until every check has evidence from the log. No conversion was run for this guide.

Where the neighboring pages stop

Definitions and glossary wording for RLDS belong to /formats/rlds. Mapping between RLDS and LeRobot belongs to /guides/how-to-work-with-rlds-and-lerobot-formats. This page keeps the same step-flag sentences and adds the five-check gate plus the two loader pitfalls. TrueLabel is a software operator for capture-process alignment and training-data operations. This page states no integration, no inventory, and no measured training result.

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

External references and source context

  1. RLDS GitHub repository

    The RLDS README says the dataset is retrieved as a tf.data.Dataset of episodes, and each episode contains a tf.data.Dataset of steps.

    GitHub ↩
  2. RLDS GitHub repository

    RLDS episode metadata fields are user-defined. episode_id is proposed as an optional identifier, not a required field.

    GitHub ↩
  3. RLDS GitHub repository

    The README's invalid flag marks episodes that should generally be discarded at read time, including episodes left incomplete during recording.

    GitHub ↩
  4. RLDS GitHub repository

    On the RLDS README, is_first and is_last are mandatory. When is_last is true, action, reward, discount, and other fields subsequent to the observation are considered invalid.

    GitHub ↩
  5. RLDS GitHub repository

    When is_terminal is true, the observation is a final state and reward, discount, and action are meaningless. An episode that ends with is_terminal false has been truncated. The passage does not define is_last as task success.

    GitHub ↩
  6. RLDS GitHub repository

    Optional RLDS step fields are still required to be the same fields on every step of a dataset.

    GitHub ↩
  7. RLDS GitHub repository

    The RLDS README shows a dm_env-style shift: the action generated with the next observation is loaded beside the observation it acts on.

    GitHub ↩
  8. RLDS GitHub repository

    Datasets created with EnvLogger and the TFDS backend can be loaded with tfds.builder_from_directory(path).as_dataset(split='all'). That path is not the public TFDS catalog.

    GitHub ↩
  9. RLDS GitHub repository

    Each interleaved copy shuffles partitions independently, and each step is loaded N times unless the copies use disjoint splits.

    GitHub ↩

FAQ

Does is_last mean the episode succeeded?

No. is_last marks the last observation, and fields after that observation are invalid. Truncation versus a final state is the is_terminal distinction in the README.

Does builder_from_directory mean the dataset is in the public catalog?

No. The README shows that call for EnvLogger data with the TFDS backend. It is a directory load, not a catalog listing and not a conversion.

What does interleave do to a step?

Each copy shuffles independently, and each step is loaded once per copy unless you use disjoint splits. That is a duplicate risk, not a conversion check.

Was a conversion run for this page?

No. The sheet is illustrative. A log stays unconverted until the five checks are filled from that log.

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.