Robot learning
Robot Learning Data Formats: LeRobot vs RLDS vs HDF5 vs MCAP
How each format stores an episode, which training code expects which, what raw video costs in storage, and a checklist for handing a dataset over.
- robot learning data
- LeRobot
- RLDS
- HDF5
- MCAP
- teleoperation data
- datasets

Most robot learning data ends up in one of four containers: LeRobotDataset (Parquet plus MP4 video), RLDS (episodes of steps in TFRecord, read through TensorFlow Datasets), HDF5 (a general container that ACT and robomimic each lay out their own way) or MCAP (the default log format of ROS 2 bags). They are less rivals than tools for different stages. This guide shows how each one stores an episode, which training code expects which, what the choice costs in storage, and how to decide before the first episode is recorded.
What are the four formats?
LeRobotDataset v3.0
RLDS
HDF5
MCAP
Which format does your training code expect?
Start from the policy and the library you will train with. The format follows from that choice, not the other way around.
lerobot
Open X-Embodiment mixes and TFDS pipelines
The original ACT code or robomimic baselines
ROS 2 robots and vehicles
How do they compare side by side?
Unit of storage
Camera data
Schema
Reading at scale
What does raw video cost? A worked example
Camera frames are the bulk of any dataset, and the format decides whether they are compressed. The ACT script stores each frame as a raw 480 x 640 x 3 array of bytes: 921,600 bytes per frame per camera, with no compression set when the datasets are created. Take an illustrative setup: two cameras, 30 frames per second and 60-second episodes, which are the LeRobot recording defaults for episode length. One episode is 1,800 frames x 2 cameras x 921,600 bytes, about 3.3 GB of image data. Fifty episodes, the LeRobot tutorial's suggested first dataset, come to about 166 GB.
The same footage in LeRobotDataset is encoded as MP4, which is why a LeRobot dataset of that size is practical to push to the Hub and stream during training. HDF5 can compress too; the ACT script simply does not turn it on. If you keep raw arrays, budget the disk and the transfer time before the collection starts, not after.
Decide the format with the training code in hand. Converting a dataset is a script; re-recording it means paying for the operator time again.
Can you convert between formats?
Yes, with care. LeRobot ships a converter from its own v2.1 layout to v3.0 that merges per-episode files into shards and rewrites the episode offsets. Between families, from HDF5 or MCAP into LeRobot or RLDS, check the lerobot repository and the dataset's own tooling for a maintained script before writing one. Whatever you use, verify the result: replay a few episodes on the robot, compare frame counts and timestamps, and confirm the action and state ordering survived.
How do you choose before recording?
Training with lerobot
Co-training with Open X-Embodiment data
Reproducing ACT or robomimic results
A ROS 2 robot, a vehicle or many sensor topics
More than one of the above
What should a dataset handoff include?
Whoever trains on the data was usually not in the room when it was recorded. A handoff that answers these questions saves guessing.
For how the episodes get recorded in the first place, read our guide to teleoperation data collection for robot learning and the step-by-step LeRobot dataset guide. To size the collection, see how many demonstrations a robot policy needs. Bimanual setups have their own notes on the ALOHA Stationary page, and vehicle fleets on remote pilots for autonomous vehicles.
RoboPilots trains a dedicated group of operators on your own robot and task protocol, and delivers the data as LeRobot, RLDS or HDF5, or as MCAP and ROS 2 bags for vehicles. A one-week trial sets a clean-episodes-per-operator-hour baseline before a longer collection is quoted.
Frequently asked questions
- What is the difference between LeRobot and RLDS?
- LeRobotDataset stores low-dimensional signals in Parquet and camera frames as MP4, with metadata describing episodes, and is read by the lerobot library in PyTorch. RLDS stores episodes as sequences of steps in TFRecord through TensorFlow Datasets, and is the format of Open X-Embodiment. Pick the one your training code reads, and export the other only if you need it.
- Is HDF5 a standard format for robot learning?
- HDF5 is a general container, so there is no single robot layout. The ACT code writes one file per episode with observations and actions as named datasets, while robomimic keeps every demonstration in one file under a data group. If you reproduce one of those projects, match its layout exactly, including dataset names and attributes.
- Why use MCAP if training code does not read it?
- MCAP is the default storage of ROS 2 bags and records every topic with its schema, so it is the faithful raw record of what the robot saw and did. Keep it untouched, and export training episodes from it into LeRobot, RLDS or HDF5 with a versioned script. If the export has a bug, you can fix it and run it again.
- How much storage does robot demonstration video need?
- Uncompressed, a lot. A raw 480 x 640 color frame is 921,600 bytes, so two cameras at 30 frames per second for a 60-second episode come to about 3.3 GB, and 50 episodes to about 166 GB. Encoded video, as LeRobotDataset uses, is far smaller. Check whether your format compresses before you start recording.
- Can I convert a dataset from one format to another?
- Yes. LeRobot ships a converter from its v2.1 layout to v3.0, and other conversions are scripts. Check for a maintained script before writing your own, and verify the result by replaying a few episodes, comparing frame counts and timestamps, and confirming that joint order and action conventions survived the conversion.

Humanoid
No commitment. Your quote arrives within one business day.
Related Articles
Questions about this article?