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files: data/*/*.parquet
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# Gello Dataset - LeRobot v2.1 Format
|
| 14 |
+
|
| 15 |
+
This dataset contains robotic manipulation demonstrations converted to the LeRobot v2.1 data format, matching the structure of the berkeley_autolab_ur5 dataset.
|
| 16 |
+
|
| 17 |
+
## Dataset Overview
|
| 18 |
+
|
| 19 |
+
- **Task**: Pick up the hard drive and place it in the grey box.
|
| 20 |
+
- **Total Episodes**: 118
|
| 21 |
+
- **Total Frames**: 79,141
|
| 22 |
+
- **Total Videos**: 236 (2 video types per episode)
|
| 23 |
+
- **Format**: LeRobot v2.1
|
| 24 |
+
- **FPS**: 10
|
| 25 |
+
- **Video Resolution**: 640x480
|
| 26 |
+
|
| 27 |
+
## Directory Structure
|
| 28 |
+
|
| 29 |
+
```
|
| 30 |
+
gello_lerobot_v21/
|
| 31 |
+
├── data/
|
| 32 |
+
│ └── chunk-000/
|
| 33 |
+
│ ├── episode_000000.parquet
|
| 34 |
+
│ ├── episode_000001.parquet
|
| 35 |
+
│ └── ... (118 episodes total)
|
| 36 |
+
├── meta/
|
| 37 |
+
│ ├── episodes_stats.jsonl # Per-episode statistics
|
| 38 |
+
│ ├── episodes.jsonl # Episode metadata
|
| 39 |
+
│ ├── info.json # Dataset metadata
|
| 40 |
+
│ └── tasks.jsonl # Task descriptions
|
| 41 |
+
└── videos/
|
| 42 |
+
└── chunk-000/
|
| 43 |
+
├── observation.images.hand_image/
|
| 44 |
+
│ ├── episode_000000.mp4
|
| 45 |
+
│ └── ... (118 videos)
|
| 46 |
+
└── observation.images.image/
|
| 47 |
+
├── episode_000000.mp4
|
| 48 |
+
└── ... (118 videos)
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## Data Fields
|
| 52 |
+
|
| 53 |
+
### Observation Fields
|
| 54 |
+
- **`observation.state`**: Robot joint positions and gripper state (7D float32)
|
| 55 |
+
- **`observation.images.hand_image`**: Wrist camera view (640x480x3 video)
|
| 56 |
+
- **`observation.images.image`**: Base camera view (640x480x3 video)
|
| 57 |
+
|
| 58 |
+
### Action Fields
|
| 59 |
+
- **`action`**: Robot actions (7D float32)
|
| 60 |
+
|
| 61 |
+
### Metadata Fields
|
| 62 |
+
- **`timestamp`**: Time step in seconds (float32)
|
| 63 |
+
- **`episode_index`**: Episode identifier (int64)
|
| 64 |
+
- **`frame_index`**: Frame index within episode (int64)
|
| 65 |
+
- **`next.reward`**: Reward signal (float32)
|
| 66 |
+
- **`next.done`**: Episode termination flag (bool)
|
| 67 |
+
- **`index`**: Global frame index (int64)
|
| 68 |
+
- **`task_index`**: Task identifier (int64)
|
| 69 |
+
|
| 70 |
+
## Usage with LeRobot
|
| 71 |
+
|
| 72 |
+
This dataset is compatible with LeRobot v2.1 tools and can be loaded using:
|
| 73 |
+
|
| 74 |
+
```python
|
| 75 |
+
from lerobot.common.datasets.lerobot_dataset import LeRobotDataset
|
| 76 |
+
|
| 77 |
+
# Load the dataset
|
| 78 |
+
dataset = LeRobotDataset("/path/to/gello_lerobot_v21")
|
| 79 |
+
|
| 80 |
+
# Access episodes
|
| 81 |
+
for episode in dataset:
|
| 82 |
+
print(f"Episode {episode['episode_index']}: {episode['total_frames']} frames")
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
## Video Format
|
| 86 |
+
|
| 87 |
+
- **Codec**: AV1
|
| 88 |
+
- **Resolution**: 640x480 pixels
|
| 89 |
+
- **Channels**: 3 (RGB)
|
| 90 |
+
- **Pixel Format**: YUV420p
|
| 91 |
+
- **Frame Rate**: 10 FPS
|
| 92 |
+
|
| 93 |
+
## Task Description
|
| 94 |
+
|
| 95 |
+
All episodes in this dataset demonstrate the same task:
|
| 96 |
+
> "Pick up the hard drive and place it in the grey box."
|
| 97 |
+
|
| 98 |
+
## Dataset Statistics
|
| 99 |
+
|
| 100 |
+
- **Average Episode Length**: 671 frames
|
| 101 |
+
- **Average Episode Duration**: 67.1 seconds
|
| 102 |
+
- **Episode Length Range**: 149-1,495 frames
|
| 103 |
+
- **Success Rate**: 100% (all episodes completed successfully)
|
| 104 |
+
- **Total Reward**: 118.0 (1.0 per episode)
|
| 105 |
+
|
| 106 |
+
## File Formats
|
| 107 |
+
|
| 108 |
+
### Parquet Files
|
| 109 |
+
Each episode is stored as a Parquet file containing all the data fields with proper data types.
|
| 110 |
+
|
| 111 |
+
### JSONL Files
|
| 112 |
+
- **`episodes_stats.jsonl`**: Detailed statistics for each episode
|
| 113 |
+
- **`episodes.jsonl`**: Episode metadata including task assignments
|
| 114 |
+
- **`tasks.jsonl`**: Task definitions
|
| 115 |
+
|
| 116 |
+
### JSON Files
|
| 117 |
+
- **`info.json`**: Dataset metadata including feature specifications, splits, and paths
|
| 118 |
+
|
| 119 |
+
## Conversion Notes
|
| 120 |
+
|
| 121 |
+
This dataset was converted from raw Gello pickle files using the `gello_to_lerobot.py` script. The conversion process:
|
| 122 |
+
|
| 123 |
+
1. Loads raw demonstration data from pickle files
|
| 124 |
+
2. Processes images (resize to 256x256, convert to videos)
|
| 125 |
+
3. Creates LeRobot v2.1 directory structure
|
| 126 |
+
4. Saves episodes as individual Parquet files
|
| 127 |
+
5. Generates metadata files in the required format
|
| 128 |
+
|
| 129 |
+
## Compatibility
|
| 130 |
+
|
| 131 |
+
This dataset follows the same structure as the berkeley_autolab_ur5 dataset and is fully compatible with:
|
| 132 |
+
- LeRobot v2.1 data loading utilities
|
| 133 |
+
- HuggingFace datasets library
|
| 134 |
+
- Standard machine learning frameworks (PyTorch, TensorFlow)
|
| 135 |
+
|
| 136 |
+
## License
|
| 137 |
+
|
| 138 |
+
This dataset is provided for research and educational purposes. Please refer to the original Gello dataset license for usage terms.
|