convert_to_lerobot
This script generates a ready-to-use LeRobot dataset repository from RoboChallenge dataset.
Prerequisites
- Python 3.9+ with the following packages:
lerobotopencv-pythonnumpy
- Configure
$LEROBOT_HOME(defaults to~/.lerobotif unset).
pip install lerobot opencv-python numpy
export LEROBOT_HOME="/path/to/lerobot_home"
Usage
Run the converter from the repository root (or provide an absolute path):
python convert_to_lerobot.py \
--repo-name example_repo \
--raw-dataset /path/to/example_dataset \
--frame-interval 1
Output
- Frames and metadata are saved to $LEROBOT_HOME/.
- At the end, the script calls dataset.consolidate(run_compute_stats=False). If you require aggregated statistics, run it with run_compute_stats=True or execute a separate stats job.