Table30 / README.md
RoboChallengeAI's picture
Upload folder using huggingface_hub
4701daf verified
|
raw
history blame
905 Bytes

convert_to_lerobot

This script generates a ready-to-use LeRobot dataset repository from RoboChallenge dataset.

Prerequisites

  • Python 3.9+ with the following packages:
    • lerobot
    • opencv-python
    • numpy
  • Configure $LEROBOT_HOME (defaults to ~/.lerobot if 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.