Choosing a Robot Learning Dataset Format: LeRobot, robomimic, and Isaac Lab HDF5
by Shaunak Roy
• 11 min read
Author

Technical Writer
Robotics Engineer | M.S. Robotics @ Univ. of Michigan-Ann Arbor
See all articles by Shaunak Roy
In this article
Key takeawaysWhy three formats coexistHow LeRobot stores episodes, observations, and actionsHow robomimic HDF5 stores episodes, observations, and actionsWhat Isaac Lab adds to the robomimic layoutWhere the same concept lives in LeRobot, robomimic, and Isaac LabHow to choose a robot learning dataset formatHow to convert robomimic HDF5 to LeRobot without losing informationInspect a converted LeRobot dataset in Voxel51SummaryFrequently asked questionsSources
In this article
Key takeawaysWhy three formats coexistHow LeRobot stores episodes, observations, and actionsHow robomimic HDF5 stores episodes, observations, and actionsWhat Isaac Lab adds to the robomimic layoutWhere the same concept lives in LeRobot, robomimic, and Isaac LabHow to choose a robot learning dataset formatHow to convert robomimic HDF5 to LeRobot without losing informationInspect a converted LeRobot dataset in Voxel51SummaryFrequently asked questionsSources
Try Voxel51 for yourself
Last verified on December 1, 2026, against LeRobot 0.7.0 (dataset format v3.0), robomimic 0.5.0 (robosuite 1.5.2, MuJoCo 3.3.0), and an Isaac Lab dataset from NVIDIA's Isaac Sim 6.2 assets.
How you store your episodes shapes what you can do with them later. To write this guide, I opened a public dataset in each of three formats: LeRobotDataset, robomimic HDF5, and the HDF5 files that Isaac Lab records. I also converted one into another and measured what changed. This guide leaves out RLDS and the Open X-Embodiment datasets built on it.
Key takeaways
- robomimic HDF5 and Isaac Lab HDF5 store simulator state, so you can replay an episode in simulation, while LeRobotDataset v3.0 stores only what training and sharing need.
- LeRobotDataset v3.0 stores episodes as offsets into shared Parquet and MP4 files, and in a 200-demonstration Lift test, LeRobot video stored the camera images about 11 times smaller than lossless HDF5 compression, at the cost of about 2 out of 255 in pixel error.
- Converting robomimic HDF5 to LeRobot in the Lift test kept every episode and frame count and matched actions to float32 rounding, but dropped simulator states, model_file, and the mask splits, and needed a frame rate and task description added by hand.
- Keep robot learning data in the format that matches how it was produced, and treat the other formats as exports you can regenerate.
- As of GR00T N1.7, GR00T expects a LeRobot v2-style dataset plus a meta/modality.json file, so LeRobot v3.0 data needs converting back to v2 first, and AV1 video usually needs re-encoding to H.264.
Why three formats coexist
Each format is tailored to the workflow it was built for and the tools it had to stay compatible with. The key difference is what each format saves. robomimic and Isaac Lab save the simulator's internal state, so you can replay an episode in the simulator later. LeRobot has no standard place for that state. It saves only what you need to train on and share the data, which keeps it compact. Put another way, robomimic answers how to reproduce a simulation experiment, Isaac Lab answers how to multiply simulated demonstrations, and LeRobot answers how to share and stream real-robot data.
How LeRobot stores episodes, observations, and actions
Hugging Face built the Hub to host ML models, datasets, and demos. After succeeding with Transformers for natural language processing (NLP) and Diffusers for video and image generation, it applied the same recipe to robotics with LeRobot. LeRobot's dataset format, LeRobotDataset, stores tabular data in Parquet and camera streams as MP4 video. Because they live on the Hub, LeRobot can stream them during training.
Here is the tree for a small dataset, PushT:
lerobot/pusht/
├── data/
│ └── chunk-000/
│ └── file-000.parquet
├── meta/
│ ├── episodes/
│ │ └── chunk-000/
│ │ └── file-000.parquet
│ ├── info.json
│ ├── stats.json
│ └── tasks.parquet
└── videos/
└── observation.image/
└── chunk-000/
└── file-000.mp4No file in the tree is named after an episode. Version 2.x stored one Parquet file and one MP4 per camera for every episode, which meant hundreds of thousands of files for large datasets such as DROID. Version 3.0 instead treats episodes as offsets into shared files. By default, a data file grows to about 100 MB and a video file to about 200 MB before new episodes start the next file. Each dataset records its own targets in info.json, and PushT's video target is 500 MB. PushT is small enough that all 206 episodes fit in one Parquet file and one MP4.
Since no file belongs to a single episode, LeRobot needs another way to find each one. That's the job of meta/episodes/, where every episode gets a row recording:
- which data file holds it, and which rows
- which video file holds it for each camera, and its time window
- its task, its length, and per-episode statistics for every feature.
In PushT, that comes to 68 columns per row. Here are the first three episodes:
| Episode | Data file | Parquet rows | Video file | Video window (s) | Frames |
|---|---|---|---|---|---|
| 0 | chunk 0, file 0 | 0-160 | chunk 0, file 0 | 0.0-16.1 | 161 |
| 1 | chunk 0, file 0 | 161-278 | chunk 0, file 0 | 16.1-27.9 | 118 |
| 2 | chunk 0, file 0 | 279-419 | chunk 0, file 0 | 27.9-42.0 | 141 |
The rest of meta/ describes the dataset as a whole. info.json declares each feature's name, dtype, and shape, along with the frame rate, the path templates that turn file indices into file names, and the target file sizes. stats.json holds normalization statistics, and tasks.parquet maps each task index to its text description.
One thing the schema doesn't include is whether an episode succeeded. PushT adds its own per-frame next.success feature, while NVIDIA's Cosmos3-DROID stores successful and failed episodes as two separate datasets in one repository. We'll come back to this gap when converting between formats.
How robomimic HDF5 stores episodes, observations, and actions
In 2021, researchers at Stanford and UT Austin released a study addressing a reproducibility problem in robot imitation learning. Human demonstration datasets were scarce, and labs rarely shared the code and settings behind their methods, so results were hard to compare. They released robomimic with it.
robomimic shipped open human demonstrations on simulated tasks in robosuite, sorted by operator skill, with the code and settings behind its results. To make all of that reproducible, every dataset uses the same HDF5 layout.
The layout stores enough simulator state to reproduce any episode, along with named subsets of the demonstrations. I downloaded the raw version of the proficient-human Lift dataset, which holds 200 demonstrations with no observations in a single 36 MB file. Regenerating observations from the stored states produced this structure:
lift/ph/image_84.hdf5
├── data/ (attrs: env_args, total)
│ ├── demo_0/ (attrs: camera_info, model_file, num_samples)
│ │ ├── actions (59, 7)
│ │ ├── states (59, 32)
│ │ ├── rewards (59,)
│ │ ├── dones (59,)
│ │ ├── obs/
│ │ │ ├── agentview_image (59, 84, 84, 3)
│ │ │ ├── robot0_eye_in_hand_image (59, 84, 84, 3)
│ │ │ ├── object (59, 10)
│ │ │ ├── robot0_eef_pos (59, 3)
│ │ │ ├── robot0_gripper_qpos (59, 2)
│ │ │ └── ... 8 more low-dimensional keys
│ │ └── next_obs/ (same keys, shifted one step)
│ └── demo_1/ ... demo_199/
└── mask/
├── train (180 demos)
├── valid (20 demos)
├── 20_percent, 20_percent_train, 20_percent_valid
└── 50_percent, 50_percent_train, 50_percent_validUnlike LeRobot, robomimic gives every episode its own demo_N group, and each one stores the MuJoCo model XML describing its scene in a model_file attribute. Together with the states, that model let me regenerate the obs, next_obs, rewards, and dones by replaying each episode. env_args stores the environment's name and settings, including its 20 Hz control frequency.
The mask group holds named subsets of demonstrations. Released datasets use it to fix the same training and validation splits for everyone, and you can add your own. Lift ships with eight: the standard train/valid split, plus 20% and 50% subsets with their own splits for the study's data-scaling experiments.
What Isaac Lab adds to the robomimic layout
NVIDIA built Isaac Lab on Isaac Sim, a GPU simulator that can run a thousand copies of a scene at once. That speed lets Isaac Lab's Mimic generate demonstrations instead of collecting them all by hand. It adapts a few human demonstrations to new object positions, runs every attempt in simulation, and keeps the ones that succeed. Isaac Lab now deprecates Mimic in favor of AutoData, which can run the same generation algorithm and reads Mimic's recorded demonstrations as they are.
Isaac Lab kept robomimic's layout, which lets its data train with robomimic's code, and changed only what its simulator and Mimic require. I opened NVIDIA's Mimic tutorial dataset, which holds 10 human demonstrations of a Franka arm stacking three cubes.
isaaclab_data/dataset.hdf5
├── data/ (attrs: env_args, total)
│ ├── demo_0/ (attrs: num_samples=236, success=True)
│ │ ├── actions (236, 7)
│ │ ├── obs/
│ │ │ ├── eef_pos (236, 3)
│ │ │ ├── eef_quat (236, 4)
│ │ │ ├── gripper_pos (236, 2)
│ │ │ ├── joint_pos, joint_vel (236, 9)
│ │ │ ├── cube_positions (236, 9)
│ │ │ ├── cube_orientations (236, 12)
│ │ │ ├── object (236, 39)
│ │ │ └── actions (236, 7)
│ │ ├── initial_state/
│ │ │ ├── articulation/robot/ (joint, root pose and velocity; 1 step)
│ │ │ └── rigid_object/cube_1-3/ (root pose and velocity; 1 step)
│ │ └── states/
│ │ ├── articulation/robot/ (same arrays; 236 steps)
│ │ └── rigid_object/cube_1-3/ (same arrays; 236 steps)
│ └── demo_1/ ... demo_9/
└── (no mask group)The top level matches robomimic's, but each demonstration is organized differently. Where robomimic stores one 32-number state vector per step, Isaac Lab stores separate arrays for the robot and each cube. The initial_state group records where everything started, so Mimic can reset a scene exactly. Each demonstration also carries a success flag, which Mimic uses to decide which ones to keep.
The file I opened is a legacy file, and it shows. Its env_args holds almost nothing beyond the task name, so the frame rate, controller settings, and scene all come from the Isaac Lab task rather than the file. Newer files also record the simulator timestep and decimation, which give the frame rate. There is no mask group, and there are no rewards, done flags, or next_obs arrays.
The file also has no format_version attribute. In newer files, that attribute marks the root_pose arrays under states and initial_state as XYZW, and Isaac Lab treats a missing attribute as the older WXYZ order. Observation keys such as eef_quat follow whatever the task's observation code wrote, so check that code before reading them. Isaac Lab's recorder can also save only successes, so a file with no failures may reflect a setting rather than perfect operators.
Where the same concept lives in LeRobot, robomimic, and Isaac Lab
| Concept | Le | robomimic HDF5 | Isaac Lab HDF5 |
|---|---|---|---|
| Episode boundary | Row in meta/ | demo_N group | demo_N group |
| Low-dimensional observations | Parquet columns | obs/<key> | obs/<key> |
| Images | MP4 video files | uint8 arrays | uint8 arrays, if recorded |
| Actions | action column | actions | actions |
| Frame rate | fps in info.json | control_ | Not in the file I inspected. Newer files store dt and decimation in env_args |
| Task or language | tasks | No standard field | No standard field |
| Success or failure | No standard field | No success field. dones mark success only when done_mode is 0 | success attribute |
| Simulator state | No standard field | states (one flat vector) + model_file | states and initial_ |
| Quaternion order | No standard field | No standard field | format_ |
| Normalization statistics | stats.json | None stored. The trainer can compute them, off by default | None stored. The trainer can compute them, off by default |
| Train and validation splits | splits field in info.json, not read by the trainer | mask filter keys | Not stored |
The "no standard field" and "not stored" cells are where information disappears during conversion.
How to choose a robot learning dataset format
Three questions narrow the choice: how your data was produced, how much of it you'll store, and what will consume it.
For real-robot data with several cameras, LeRobot fits best, since video keeps it small and the Hub makes it easy to share. For simulation, keep HDF5 with states, which lets you replay episodes, render new camera views, or generate more data later.
That flexibility costs storage, but the three sizes aren't directly comparable. The uncompressed robomimic file (803 MB) stores every observation twice, and the compressed one (108 MB) stores them once. My LeRobot dataset (10 MB) leaves out the simulator states and scene model, which LeRobot has no standard place for, and by my choice keeps only four of the 11 sensor readings. The camera images are the one thing all three hold, and they take 390 MB raw. Lossless compression in HDF5 shrinks them to 84 MB, and LeRobot's video shrinks them to 7.3 MB, about 11 times smaller, at the cost of a small pixel error.
Finally, downstream tools often decide for you. robomimic's trainer expects its own HDF5 layout, and GR00T expects a LeRobot v2-style dataset.
Here is the choice at a glance:
| If your data | Keep it as | Why |
|---|---|---|
| Comes from real robots with several cameras | Le | Video keeps it small, and the Hub makes it easy to share and stream |
| Comes from robosuite simulation you may replay | robomimic HDF5 | States and model_file let you replay episodes and render new camera views |
| Comes from Isaac Lab or feeds Mimic or AutoData | Isaac Lab HDF5 | Per-object states, initial_ |
| Will train with robomimic's trainer | robomimic HDF5 | The trainer expects its own HDF5 layout |
| Will fine-tune GR00T | A LeRobot v2-style export | GR00T expects the older layout plus a modality |
How to convert robomimic HDF5 to LeRobot without losing information
To check these costs, I converted all 200 Lift demonstrations to LeRobot v3.0 with a short script anyone can rerun. It reads the robomimic file with h5py, declares the features with LeRobotDataset.create, writes each timestep with add_frame, closes each episode with save_episode, and calls finalize to write the metadata and statistics.
I copied robomimic's actions unchanged. They were already scaled to [-1, 1], so LeRobot recorded that range in stats.json as if it were raw data. LeRobot policies rescale actions with those statistics while training and undo the rescaling on the actions they predict, so the robot still receives values in robomimic's original range. However, the controller settings that turn 1.0 into 5 cm of motion live in env_args, which LeRobot has no place for. Those settings belong in the dataset card, the README shown on the dataset's Hub page.
To check the result, I reloaded the dataset and compared it with the source. Both had 200 episodes and 9,666 frames, and every episode matched its source length. Each frame held a 19-number state, a 7-number action, and two 84 × 84 images. Actions matched to within 3 × 10⁻⁸, which is float32 rounding, and decoded images differed from the originals by about 2 out of 255.
Some data had nowhere to go. LeRobot has no standard place for states or model_file, so the dataset can't be replayed in simulation. My script also skipped rewards and dones, which imitation learning doesn't use, though LeRobot can store them, as PushT does. The eight mask subsets were dropped too. LeRobot wrote a splits field listing all 200 episodes under train, but its training script never reads that field, so a validation set has to be a separate dataset.
LeRobot also needs a frame rate and a task description. I read 20 Hz from env_args and wrote the task as "Lift the cube." A wrong frame rate raises no error but quietly shifts every timestamp.
Finally, as of GR00T N1.7, GR00T can't reliably read LeRobot's newer AV1 video and expects the older one-file-per-episode layout, so data meant for it has to be re-encoded and converted back to LeRobot v2, with the meta/modality.json file GR00T requires added.
Inspect a converted LeRobot dataset in Voxel51
Some conversion mistakes only show up when you watch an episode play back. A wrong frame rate, a camera mapped to the wrong feature, or a state vector assembled in the wrong order can all pass a count check.
Voxel51 loads LeRobot v3.0 datasets natively, as one sample per episode, with episode-level fields such as task, length, fps, and robot_type that you can filter on. When you open an episode, the camera streams play in sync with plots of observation.state and action, and the task text appears as the episode's instruction. For the Lift conversion, that's a quick way to confirm that the 20 Hz timestamps line up with the video, that every episode carries its task, and that the actions stay in the [-1, 1] range robomimic recorded.
Once the episodes look right, you can tag bad segments, save cohorts of episodes for training or evaluation, and export a selection back to a self-contained LeRobot v3.0 dataset.
To see this on real robot data, try Voxel51 and add the LeRobot Community dataset, 2,378 tabletop manipulation episodes from 117 community LeRobot datasets on Hugging Face.
Summary
robomimic keeps simulator states so experiments can be reproduced. Isaac Lab keeps that layout and adds what Mimic needs to multiply demonstrations. LeRobot gives up simulator states for compact, shareable storage. Keep the format that matches how your data was made, treat the others as exports you can regenerate, and check what each conversion drops.
Frequently asked questions
LeRobotDataset v3.0 stores tabular data in Parquet files and camera streams as MP4 video, with episodes stored as offsets into shared files. robomimic HDF5 gives each episode its own demo_N group with simulator states and the MuJoCo model, so you can replay it in simulation.
Yes, you can convert robomimic HDF5 to LeRobotDataset v3.0 with LeRobot's create, add_frame, save_episode, and finalize calls. In the Lift test, all 200 episodes and 9,666 frames came through, but simulator states, model_file, and the mask splits were dropped.
HDF5 suits simulation data you may replay, and Parquet with MP4 video suits real-robot data you want to share. robomimic and Isaac Lab use HDF5 to keep simulator states next to observations, which LeRobotDataset v3.0 has no standard field for. LeRobot stores tabular data in Parquet and camera images as video, so in the Lift test the images took 7.3 MB as LeRobot video against 84 MB as lossless HDF5, with about 2 out of 255 in pixel error.
As of GR00T N1.7, GR00T uses a LeRobot v2-style dataset with one file per episode, plus a meta/modality.json file. It decodes H.264 video more reliably than AV1, so LeRobot v3.0 data usually needs converting back to v2 and re-encoding first.
To check a robomimic to LeRobot conversion, reload the LeRobot dataset and compare episode counts, per-episode frame counts, feature shapes, and a sample of actions against the source HDF5 file. Then play a few episodes back, for example in Voxel51, to catch a wrong frame rate or a misassigned camera that counts alone won't show.
Sources
- Hugging Face. "LeRobotDataset v3.0." LeRobot documentation. https://huggingface.co/docs/lerobot/lerobot-dataset-v3
- Hugging Face. "Porting Large Datasets to LeRobot Dataset v3.0." LeRobot documentation. https://huggingface.co/docs/lerobot/porting_datasets_v3
- ARISE Initiative. "Datasets Overview." robomimic documentation. https://robomimic.github.io/docs/datasets/overview.html
- ARISE Initiative. "robosuite Datasets." robomimic documentation. https://robomimic.github.io/docs/datasets/robosuite.html
- Mandlekar, A., Xu, D., Wong, J., Nasiriany, S., Wang, C., Kulkarni, R., Fei-Fei, L., Savarese, S., Zhu, Y., and Martín-Martín, R. "What Matters in Learning from Offline Human Demonstrations for Robot Manipulation." Proceedings of the 5th Conference on Robot Learning (CoRL 2021), PMLR 164:1678-1690, 2022. arXiv:2108.03298. https://arxiv.org/abs/2108.03298
- NVIDIA Isaac Lab. "Synthetic Data Generation and Imitation Learning with Isaac Lab Mimic." Isaac Lab documentation. https://isaac-sim.github.io/IsaacLab/main/source/features/imitation-learning/teleop_imitation.html
- NVIDIA. "Migration from Isaac Lab Mimic to AutoData." AutoData documentation. https://isaac-sim.github.io/AutoData/main/pages/workflows/migrate_isaac_lab_mimic.html
- NVIDIA Isaac Lab. hdf5_dataset_file_handler.py (source code). https://github.com/isaac-sim/IsaacLab/blob/main/source/isaaclab/isaaclab/utils/datasets/hdf5_dataset_file_handler.py
- NVIDIA Isaac Lab. isaaclab.managers.recorder_manager (source code). https://isaac-sim.github.io/IsaacLab/main/_modules/isaaclab/managers/recorder_manager.html
- NVIDIA. Isaac-GR00T repository, README. https://github.com/NVIDIA/Isaac-GR00T
- NVIDIA. "Cosmos3-DROID." Hugging Face dataset card. https://huggingface.co/datasets/nvidia/Cosmos3-DROID
- DROID project page. https://droid-dataset.github.io/
- Roy, S. robomimic-to-LeRobot conversion and validation scripts. GitHub Gist, 2026. https://gist.github.com/shaunak-roy/7a7bfc95ec4d0abc6775afcf282421d7
- ARISE Initiative. dataset_states_to_obs.py (source code). https://github.com/ARISE-Initiative/robomimic/blob/master/robomimic/scripts/dataset_states_to_obs.py
- Hugging Face. dataset_metadata.py (source code). https://github.com/huggingface/lerobot/blob/main/src/lerobot/datasets/dataset_metadata.py

Technical Writer
Robotics Engineer | M.S. Robotics @ Univ. of Michigan-Ann Arbor
See all articles by Shaunak Roy
Try Voxel51 for yourself
Related posts
Boost your visual and physical AI workflows.

by Shaunak Roy, Graduate Student, University of Michigan Robotics
Physical AI
• 
by Mohamad Louai Shehab, Guest author
Physical AI
• 