Failed to load dataset

#2
by hakuturu583 - opened

I attempted to load the dataset using the following script, but it resulted in an error.
I suspect there might be an issue with the implementation around LeRobotDataset or perhaps a problem with the structure of the L2D-v3 dataset. What do you think?

from lerobot.datasets.streaming_dataset import StreamingLeRobotDataset

# Streams directly from the Hugging Face Hub, without downloading the dataset into disk or loading into memory
repo_id = "yaak-ai/L2D-v3"
dataset = StreamingLeRobotDataset(repo_id)
stats.json: 7.95kB [00:00, 9.86MB/s]                                                             | 0/4 [00:00<?, ?it/s]
info.json: 6.41kB [00:00, 14.5MB/s]
meta/tasks.parquet: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.37k/2.37k [00:01<00:00, 2.05kB/s]
meta/episodes/chunk-000/file-000.parquet: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 9.48M/9.48M [00:01<00:00, 7.08MB/s]
Fetching 4 files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 4/4 [00:01<00:00,  2.23it/s]
Traceback (most recent call last):
  File "/home/masaya/workspace/nanogaia/nanogaia/prepare_dataset.py", line 7, in <module>
    dataset = StreamingLeRobotDataset(repo_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/masaya/workspace/nanogaia/.venv/lib/python3.12/site-packages/lerobot/datasets/streaming_dataset.py", line 152, in __init__
    self.hf_dataset: datasets.IterableDataset = load_dataset(
                                                ^^^^^^^^^^^^^
  File "/home/masaya/workspace/nanogaia/.venv/lib/python3.12/site-packages/datasets/load.py", line 1392, in load_dataset
    builder_instance = load_dataset_builder(
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/home/masaya/workspace/nanogaia/.venv/lib/python3.12/site-packages/datasets/load.py", line 1132, in load_dataset_builder
    dataset_module = dataset_module_factory(
                     ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/masaya/workspace/nanogaia/.venv/lib/python3.12/site-packages/datasets/load.py", line 1025, in dataset_module_factory
    raise e1 from None
  File "/home/masaya/workspace/nanogaia/.venv/lib/python3.12/site-packages/datasets/load.py", line 1004, in dataset_module_factory
    ).get_module()
      ^^^^^^^^^^^^
  File "/home/masaya/workspace/nanogaia/.venv/lib/python3.12/site-packages/datasets/load.py", line 638, in get_module
    module_name, default_builder_kwargs = infer_module_for_data_files(
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/masaya/workspace/nanogaia/.venv/lib/python3.12/site-packages/datasets/load.py", line 300, in infer_module_for_data_files
    raise DataFilesNotFoundError("No (supported) data files found" + (f" in {path}" if path else ""))
datasets.exceptions.DataFilesNotFoundError: No (supported) data files found in yaak-ai/L2D-v3

Version of the LeRobot is 0.4.0

[[package]]
name = "lerobot"
version = "0.4.0"
source = { registry = "https://pypi.org/simple" }

This code comes from this example.

Same issue here

Sign up or log in to comment