Macrodata_Labs
AboutBlogDemo
Announcing MacroHands, our SOTA model for 3D hands and camera path from egocentric video!
// Docs›
Quickstart
Running pipelines
  • In-process debugging
  • Local launcher
Reading data
  • Reader model
  • Sharding
  • LeRobot reader
  • HDF5 reader
  • Zarr reader
  • MCAP reader
  • Tabular files
  • Files and videos
  • Hugging Face
  • TensorFlow
  • Lance
  • Custom readers
Episode data
  • Episode rows
  • Frames and videos
  • Metadata, tasks, and stats
  • Converting to robot rows
Transforms
  • Row transforms
  • Async and batch transforms
  • Vectorized transforms
  • Expressions
  • Schemas and DTypes
Episode operations
  • Motion trimming
  • Subtask annotation
Inference
  • Generate text
  • Multimodal and structured output
  • Inference providers
  • Pooling
Writing data
  • Writer model
  • LeRobot writer
  • Zarr writer
  • Parquet and JSONL writers
  • Lance
  • Media assets and reducers
Examples
  • ALOHA HDF5
  • robomimic HDF5
  • Zarr replay buffer
  • MCAP Franka
  • LIBERO HDF5
  • Merge LeRobot datasets
  • Annotate subtasks
Reference
  • Path formats
  • Optional dependencies
// Docs
Quickstart
Running pipelines
  • In-process debugging
  • Local launcher
Reading data
  • Reader model
  • Sharding
  • LeRobot reader
  • HDF5 reader
  • Zarr reader
  • MCAP reader
  • Tabular files
  • Files and videos
  • Hugging Face
  • TensorFlow
  • Lance
  • Custom readers
Episode data
  • Episode rows
  • Frames and videos
  • Metadata, tasks, and stats
  • Converting to robot rows
Transforms
  • Row transforms
  • Async and batch transforms
  • Vectorized transforms
  • Expressions
  • Schemas and DTypes
Episode operations
  • Motion trimming
  • Subtask annotation
Inference
  • Generate text
  • Multimodal and structured output
  • Inference providers
  • Pooling
Writing data
  • Writer model
  • LeRobot writer
  • Zarr writer
  • Parquet and JSONL writers
  • Lance
  • Media assets and reducers
Examples
  • ALOHA HDF5
  • robomimic HDF5
  • Zarr replay buffer
  • MCAP Franka
  • LIBERO HDF5
  • Merge LeRobot datasets
  • Annotate subtasks
Reference
  • Path formats
  • Optional dependencies

Metadata, tasks, and stats

LeRobot metadata, task labels, feature stats, and when they change

LeRobot datasets carry metadata beside episode and frame data. Refiner reads and writes that metadata so downstream training code can understand the dataset.

Metadata

1
2
3
4
5
row = mdr.read_lerobot("hf://datasets/acme/pick-cubes").take(1)[0]

print(row.metadata.info.fps)
print(row.metadata.info.robot_type)
print(row.metadata.info.features)

Metadata includes dataset-level information such as fps, robot type, feature definitions, paths, and video encoding information.

Tasks

LeRobot stores task text in a task table and references tasks by task_index.

1
2
print(row.tasks)
print(row.task)

row.task is a convenience alias for the first item in row.tasks.

When reading multiple LeRobot roots, Refiner merges task tables and remaps indices so task text stays stable.

Stats

Feature stats describe distributions used by training and normalization code.

1
2
if "action" in row.stats:
    print(row.stats["action"].mean)

Stats are preserved when they are still valid. Operations that change a feature should drop stale stats for that feature. For example, motion trimming drops video stats for clipped videos so the writer recomputes them.

Writer behavior

write_lerobot writes:

OutputSource
meta/info.jsonmerged feature metadata and output paths
meta/tasks.parquetmerged task table
meta/stats.jsoncomputed or reused feature stats
meta/episodes/...episode rows
data/...frame parquet files
videos/...video files

See Writing LeRobot.

Related pages

  • LeRobot Reader
  • LeRobot Writer
  • Motion Trimming

// Table of Contents

  1. Metadata
  2. Tasks
  3. Stats
  4. Writer behavior
  5. Related pages
Macrodata_Labs
TermsPrivacyContact
  • GitHub
  • LinkedIn
  • X
  • HuggingFace
  • Discord