File size: 905 Bytes
4701daf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# convert_to_lerobot
This script generates a ready-to-use [LeRobot](https://github.com/huggingface/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).

```bash
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):

```bash
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/<repo-name>.
- 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.