mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-23 09:46:00 +00:00
a6dcb18585
When the data files and video files agree on episode count N but the metadata lists a different count, rewrite meta/episodes.jsonl, meta/episodes_stats.jsonl and info.json to N before the v2.1->v3.0 converter runs (which otherwise raises 'Number of episodes is not the same'). Only the safe direction is handled: trimming metadata that lists MORE episodes than exist. Non-contiguous data, data/video disagreement, or metadata missing episodes are left untouched.