Skip to main content

A TorchRL wrapper for robot learning datasets.

Project description

robotdataset

Publish to PyPI

robotdataset is a Python library for loading robot learning datasets from multiple sources (Google Cloud Storage, HuggingFace Hub) into the TorchRL TED format (TorchRL Episode Data), backed by memory-mapped tensors for efficient use in deep-learning training pipelines.

Documentation

Page Covers
Overview & TED format Library scope, architecture, the TED format, caching
OXE datasets OXEDataset, list_datasets, validate_dataset_name, dataset2path
OXE JAX datasets OXEJAXDataset — NumPy/JAX batch path
Table30v2 Table30v2Dataset (RoboChallenge/Table30v2, HuggingFace)
AgiBotWorld-Beta AgiBotWorldBetaDataset, list_agibot_tasks
Samplers TemporalSampler, EpisodeTubeletSampler, JAXTemporalSampler
Visualization batchViz, itemViz, episodeViz
Config Config — fluent config builder, YAML/JSON loading, W&B sweep export

Quick start

# All dataset backends (recommended)
pip install "robotdataset[all]"

# Or install only what you need:
pip install "robotdataset[oxe]"   # OXE / GCS datasets (requires TensorFlow)
pip install "robotdataset[hf]"    # HuggingFace datasets (Table30v2, AgiBotWorld-Beta)
from robotdataset import OXEDataset, TemporalSampler, batchViz

# Load two episodes of an OXE dataset (streams from GCS, caches locally)
dataset = OXEDataset(
    dataset_name="cmu_playing_with_food",
    episodes=[0, 2],
    batch_size=6,
)

# Attach a temporal sampler: each sample carries a 10-frame image history
sampler = TemporalSampler(
    delta_timestamps={"observation/image": [-0.9, -0.8, -0.7, -0.6, -0.5,
                                            -0.4, -0.3, -0.2, -0.1, 0.0]},
    control_frequency=10,
)
dataset.set_sampler(sampler)

batch = dataset.sample()
batch["observation/image"].shape   # (6, 10, 480, 640, 3) — (B, T, H, W, C)

# Visualize the batch as an animated mosaic
batchViz(batch, key="observation/image", fps=8)

batchViz output — 6 items from cmu_playing_with_food, observation/image, 10-frame window at 8 fps

Dataset status

All loaders are in alpha — APIs may change without notice between releases.

Dataset Class Source Status
Open X-Embodiment (OXE) OXEDataset gs://gresearch/robotics Alpha (usable, not stable)
Open X-Embodiment (JAX path) OXEJAXDataset gs://gresearch/robotics Alpha (JAX path)
Table30 v2 Table30v2Dataset RoboChallenge/Table30v2 (HF) Alpha
AgiBotWorld-Beta AgiBotWorldBetaDataset agibot-world/AgiBotWorld-Beta (HF) Alpha
LIBERO openvla/modified_libero_rlds (HF) Planned

Public API

Everything below is importable directly from the top-level package:

from robotdataset import (
    # Dataset classes
    OXEDataset, OXEJAXDataset, Table30v2Dataset, AgiBotWorldBetaDataset,
    # Samplers
    TemporalSampler, EpisodeTubeletSampler, JAXTemporalSampler,
    # Discovery helpers
    list_datasets, validate_dataset_name, dataset2path, list_agibot_tasks,
    # Visualization
    batchViz, itemViz, episodeViz,
    # Config
    Config, FieldSpec,
)

OXEJAXDataset and JAXTemporalSampler are None when JAX is not installed — they are optional-dependency imports.

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotdataset-0.2.3.tar.gz (72.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotdataset-0.2.3-py3-none-any.whl (67.8 kB view details)

Uploaded Python 3

File details

Details for the file robotdataset-0.2.3.tar.gz.

File metadata

  • Download URL: robotdataset-0.2.3.tar.gz
  • Upload date:
  • Size: 72.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for robotdataset-0.2.3.tar.gz
Algorithm Hash digest
SHA256 946fcb230ca73cbca7e5d0cb54ad4e6ba7459f02743f24365e130bfd679e0b38
MD5 447e121b510bf14a1c9cfd7e9042af17
BLAKE2b-256 923f4832c1551f84316d081faafff3ce5d820704df4dba148de846f79058f9b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotdataset-0.2.3.tar.gz:

Publisher: publish.yml on svaichu/robotdataset

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file robotdataset-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: robotdataset-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 67.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for robotdataset-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 195ee8dd3a12ff0c82efda9a7dfe5b228b0e949cb16f0a70ffbfb112e335bb85
MD5 457a3e034e6db0816481a03b9cd44a3c
BLAKE2b-256 89a48b51c2760d85ffa21515618df7eac53ebbf878b86129d3bb9edaf7789e40

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotdataset-0.2.3-py3-none-any.whl:

Publisher: publish.yml on svaichu/robotdataset

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page