Episodes at data-file boundaries point to the wrong file (lerobot#2401)

#2
by rs1g6r - opened

Hi! In this dataset and three other Lightwheel-Tasks datasets, the first episode of each data file (after the first file) has data/chunk_index / data/file_index in meta/episodes that still name the previous file, so its metadata points at a file it isn't in. That's the file-boundary bug in LeRobot's v2.1 → v3.0 converter (huggingface/lerobot#2401, fixed since).

Dataset Episodes affected Examples
LightwheelAI/Lightwheel-Tasks-X7S 36 (one per later data file) 210, 401, 646, 868, 1152, ...
LightwheelAI/Lightwheel-Tasks-G1-Controller 10 204, 464, 823, 1220, 1521, 1801, 2096, 2376, 2601, 2928
LightwheelAI/Lightwheel-Tasks-Double-Piper 9 446, 936, 1687, 2508, 3298, 4052, 4861, 5581, 6308
LightwheelAI/Lightwheel-Tasks-G1-WBC 8 133, 321, 545, 692, 945, 1107, 1286, 1519

Loading the whole dataset works. But LeRobotDataset(repo, episodes=[...]) downloads only the files the metadata names, so these episodes come back empty. On another Hub dataset with the same problem, LeRobot 0.6.1 fails on the affected episode with ValueError: Instruction "train" corresponds to no data!, while its neighbour loads normally.

Fix: point each affected episode's data/file_index (and data/chunk_index if it changes) at the next file, which is where its rows are, or re-convert with a current LeRobot.

Found with rdq, an open-source checker for robot datasets: rdq check <repo> lists every affected episode under meta.data_file. Happy to re-check after a fix.

Sign up or log in to comment