RoboTwin-IF / README.md
4O4-Ji's picture
Stage 1 RoboTwin-IF release files
ec4e807 verified
|
Raw History Blame Contribute Delete
2.73 kB
---
license: cc-by-4.0
pretty_name: RoboTwin-IF
tags:
- robotics
- lerobot
- robotwin
- instruction-following
- simulation
---
# RoboTwin-IF
RoboTwin-IF is an instruction-following dataset of scripted expert demonstrations
in dual-arm RoboTwin simulation. It includes the original collection, the D2a
supplement, and the physically validated D2b v2 subset. The three exports are
combined in one LeRobotDataset v3.0 dataset.
| Source | Train episodes | Validation episodes | All episodes |
| --- | ---: | ---: | ---: |
| Main collection | 181,198 | 19,778 | 200,976 |
| D2a supplement | 1,909 | 263 | 2,172 |
| D2b v2 validated subset | 65,095 | 7,027 | 72,122 |
| Total | 248,202 | 27,068 | 275,270 |
The dataset has 71,618,211 frames at 25 Hz, sampled from the head, left wrist,
and right wrist cameras. The small D2a supplement reflects low expert-validation
coverage in the early collection pipeline. Its counts describe the accepted
demonstrations, and do not measure the prevalence of those skills.
## Use with LeRobot
```python
from lerobot.datasets.lerobot_dataset import LeRobotDataset
dataset = LeRobotDataset("RuFlect/RoboTwin-IF")
sample = dataset[0]
```
The `meta/info.json` episode ranges use exclusive end indices. Train is
`0:248202` and validation is `248202:275270`. When constructing a split with
LeRobot, pass the corresponding list of episode indices as `episodes`. The
split unit is the realized scene family. `provenance/episodes.parquet` maps each
merged episode to its source, original episode index, scene, task, seed, and
split. Normalization moments use the training split. Camera files preserve the
encoding from the accepted exports.
## Mixed 50 evaluation
The [RoboTwin-IF evaluator](https://github.com/RuFlect-Intelligence/RoboTwin-IF)
evaluates 25 Pick and 25 Placement scenes. Download the matching benchmark files
separately:
```bash
hf download RuFlect/RoboTwin-IF --repo-type dataset \
--include 'benchmark/mixed50/*' --local-dir ./robotwin-if-download
cd robotwin-if-download/benchmark/mixed50
sha256sum -c SHA256SUMS
```
Extract the archive into the evaluator checkout and run
`python -m robotwin_if validate`. Mixed 50 uses scenes from the physically
accepted training partition. These scenes should be excluded by scene or
realized family when constructing a held-out evaluation.
## License and attribution
The generated expert dataset and its provenance table are released under
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Attribute the dataset
to RuFlect and link to this repository. The separate Mixed 50 archive includes
upstream simulator assets. Those assets retain their original terms and
attribution. See [the asset notice](benchmark/mixed50/NOTICE.md).