Glossary
What Is the UMI Zarr Replay Buffer?
Last reviewed: November 2026
Short answer
The UMI Zarr replay buffer is the dataset.zarr.zip file that the Universal Manipulation Interface (UMI) pipeline writes for policy training. Per the authors’ repository, a script stores camera frames, end-effector pose and gripper width on one time axis, records episode boundaries separately, and the training code reads that file directly.
01
What is the UMI Zarr replay buffer?
It is the last data product in the UMI reference pipeline before training. The README labels the step “Generate dataset for training”, and the training command takes the resulting file through task.dataset_path. “Replay buffer” is the repository’s own name for the structure. Zarr is the container: the official documentation describes N-dimensional arrays divided into chunks, each compressed, and organised in groups.
02
Where in the UMI pipeline is the replay buffer created?
After run_slam_pipeline.py has processed a session folder, the README runs scripts_slam_pipeline/07_generate_replay_buffer.py on it, with -o naming the output .zarr.zip. The script skips a session folder that has no dataset_plan.pkl, builds the buffer in memory, then saves it to a zip store. /glossary/umi-slam-mapping covers the SLAM step before it. The project page links the codebase and data collection instruction.
03
How is a UMI replay buffer organised into episodes and arrays?
The buffer class in the repository’s diffusion_policy package is described in its docstring as a Zarr-based temporal data structure whose first dimension is time and which chunks only along time. It has a data group of per-step arrays and a meta group holding episode_ends, an int64 array; every data array must be as long as the last episode end. Adding an episode appends its steps to each array and records the new end.
04
Why does UMI use Zarr?
The sources we read do not state the authors’ reason, so this page gives none. The code shows how Zarr is used: arrays are appended episode by episode; images are uint8 frames, 224 by 224 pixels by default, one frame per chunk, with a JPEG XL codec (level 99 by default); low-dimensional arrays have no compressor. The script also inpaints detected fiducial tags and masks the gripper before resizing, with options for the side mirrors (/glossary/umi-side-mirrors-implicit-stereo). Per the Zarr documentation, slicing loads only the requested region.
05
How does policy training read the replay buffer?
UmiDataset opens the .zarr.zip read-only and copies it into memory, or into an on-disk LMDB cache if a cache directory is set. The task config (task/umi.yaml) names the keys camera0_rgb, robot0_eef_pos, robot0_eef_rot_axis_angle and robot0_gripper_width, plus a rotation relative to the episode start, and declares an action of shape [10]. Episodes are split into training and validation by a ratio (0.05 in the config). Images become floats scaled by 255; poses are made relative to the current pose, with a six-dimensional rotation.
The conversion script writes no action array; the sampler code that supplies it is not read here.
06
How does the UMI replay buffer relate to LeRobot, HDF5, RLDS and MCAP?
The README documents no converter to LeRobot, RLDS or MCAP, and /guides/umi-dataset-formats records the same reading, so a UMI to LeRobot conversion is scoped work, not an authors’ tool. Per the site, LeRobot holds parquet plus one mp4 per camera (/formats/lerobot), and HDF5 / zarr deliver one group per episode with per-stream nanosecond timestamps (/formats/hdf5-zarr). The second table sets the two Zarr layouts side by side.
07
When does a lab need custom UMI-style data?
The authors open-sourced the pipeline, so labs can run it on their own recordings. Custom collection fits when your tasks, scenes or fields differ from public data, or when you want a recurring flow of new episodes. /compare/umi-variants and /compare/public-umi-datasets cover the alternatives.
08
How does Firsthand deliver custom UMI-style data?
Firsthand runs custom UMI data collection: UMI-style handheld gripper demonstrations recorded to your task spec in real homes, workplaces and factories, through our network of capture providers, on rigs we source and ship. Collection is fast and on demand, as custom collection at scale through a network of thousands of capture providers, for a consistent, recurring data flow to labs. Delivered per episode: gripper-camera video, 6-DoF end-effector trajectory, continuous gripper width, IMU, timestamps, task and episode metadata, and success and failure labels. Paired head-mounted egocentric video is available on request.
The site lists RLDS, LeRobot, WebDataset and HDF5 / zarr as delivery formats; a UMI-compatible replay buffer layout is not stated, so delivery format is scoped on request, as are force/torque, tactile and gripper depth. Firsthand is not affiliated with, endorsed by or related to the UMI authors, their institutions or any gripper or camera maker.
09
Arrays in a UMI replay buffer, as the repository’s conversion script and buffer class write them
| Array | What it holds | Where stated |
|---|---|---|
| camera0_rgb (one per camera) | uint8 frames, 224 by 224 by default; one frame per chunk; JPEG XL codec | 07_generate_replay_buffer.py |
| robot0_eef_pos (one set per gripper) | End-effector position, float32, no compressor | Same script |
| robot0_eef_rot_axis_angle | End-effector rotation as axis-angle, float32 | Same script |
| robot0_gripper_width | One gripper-width value per step, float32 | Same script |
| robot0_demo_start_pose and robot0_demo_end_pose | The demonstration’s start and end pose, repeated on every step | Same script |
| meta/episode_ends | int64 end index of each episode on the shared time axis | Replay buffer class |
| action | Declared in the training config; not written by the script | task/umi.yaml |
| IMU, timestamps, success labels, task metadata | Not written as arrays by the script | Not stated |
11
UMI replay buffer vs Firsthand HDF5 / zarr delivery, as each is stated
| Aspect | UMI replay buffer (repository) | Firsthand HDF5 / zarr (site) |
|---|---|---|
| Container | One dataset.zarr.zip zip store | One .h5 or .zarr group per episode |
| Episodes | Joined on one time axis; meta/episode_ends marks boundaries | One group per episode |
| Chunking | Time axis only; images one frame per chunk | Time-major |
| Timestamps | No timestamp array written by the script | int64 nanoseconds per stream |
| UMI-compatible layout | It is the reference layout | Not stated; scoped on request |
12
Frequently asked questions
- What is the UMI Zarr replay buffer?
- The dataset.zarr.zip file written by 07_generate_replay_buffer.py and read by UMI’s training code. “Replay buffer” is the repository’s term.
- What does a UMI replay buffer contain?
- Per-camera RGB frames and, per gripper, end-effector position, rotation, gripper width and start and end pose, with episode ends in a meta group. No IMU or timestamp arrays are written.
- Which step creates the replay buffer?
- The step after the SLAM pipeline: the README runs 07_generate_replay_buffer.py on the processed session folder.
- How does UMI training read it?
- UmiDataset opens it read-only, copies it into memory or an on-disk cache, and samples the keys named in the task config.
- Do the UMI authors provide a LeRobot conversion?
- The README documents none. See /guides/umi-dataset-formats; a conversion is scoped work.
- Can I download an example replay buffer?
- The README links a processed Zarr dataset for the authors’ in-the-wild cup arrangement task. Licence terms are on /guides/can-umi-dataset-be-used-commercially.
- Does Firsthand deliver a UMI replay buffer?
- The site lists RLDS, LeRobot, WebDataset and HDF5 / zarr. A UMI-compatible replay buffer layout is not stated, so delivery format is scoped on request.