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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- robotics
|
| 5 |
+
tags:
|
| 6 |
+
- robotics
|
| 7 |
+
- manipulation
|
| 8 |
+
- franka
|
| 9 |
+
- visuomotor
|
| 10 |
+
- isaac-sim
|
| 11 |
+
- isaac-lab
|
| 12 |
+
- mimicgen
|
| 13 |
+
- cosmos
|
| 14 |
+
- block-stacking
|
| 15 |
+
- imitation-learning
|
| 16 |
+
size_categories:
|
| 17 |
+
- n<1K
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# Block Stacking MimicGen Dataset
|
| 21 |
+
|
| 22 |
+
## Description
|
| 23 |
+
|
| 24 |
+
202 demonstrations of a Franka Emika Panda robot stacking colored blocks into a bowl.
|
| 25 |
+
Generated using NVIDIA MimicGen from source teleoperation demonstrations and augmented with Cosmos world foundation models.
|
| 26 |
+
|
| 27 |
+
## Task
|
| 28 |
+
|
| 29 |
+
**Objective:** Pick up 3 colored cubes (Jenga-style blocks) and place them into a bowl on the table.
|
| 30 |
+
|
| 31 |
+
**Success Criteria:** All 3 blocks must be placed inside the bowl.
|
| 32 |
+
|
| 33 |
+
## Robot Platform
|
| 34 |
+
|
| 35 |
+
- **Robot:** Franka Emika Panda (7-DoF manipulator)
|
| 36 |
+
- **Gripper:** Franka Hand (parallel jaw)
|
| 37 |
+
- **Simulator:** NVIDIA Isaac Lab (Isaac Sim)
|
| 38 |
+
- **Control Mode:** Joint velocity control
|
| 39 |
+
- **Control Frequency:** 30 Hz
|
| 40 |
+
|
| 41 |
+
## Data Modalities
|
| 42 |
+
|
| 43 |
+
| Modality | Key | Shape | Type | Description |
|
| 44 |
+
|----------|-----|-------|------|-------------|
|
| 45 |
+
| Table Camera RGB | `obs/table_cam` | (T, 200, 200, 3) | uint8 | Third-person view |
|
| 46 |
+
| Wrist Camera RGB | `obs/wrist_cam` | (T, 200, 200, 3) | uint8 | Eye-in-hand view |
|
| 47 |
+
| Table Camera Depth | `obs/table_cam_depth` | (T, 200, 200, 1) | float32 | Depth map |
|
| 48 |
+
| Surface Normals | `obs/table_cam_normals` | (T, 200, 200, 3) | float32 | Normal vectors |
|
| 49 |
+
| Segmentation | `obs/table_cam_segmentation` | (T, 200, 200, 4) | uint8 | Instance segmentation |
|
| 50 |
+
| End-Effector Position | `obs/eef_pos` | (T, 3) | float32 | XYZ position |
|
| 51 |
+
| End-Effector Orientation | `obs/eef_quat` | (T, 4) | float32 | Quaternion (x,y,z,w) |
|
| 52 |
+
| Joint Positions | `obs/joint_pos` | (T, 9) | float32 | 7 arm + 2 gripper |
|
| 53 |
+
| Joint Velocities | `obs/joint_vel` | (T, 9) | float32 | 7 arm + 2 gripper |
|
| 54 |
+
| Gripper Position | `obs/gripper_pos` | (T, 2) | float32 | Finger positions |
|
| 55 |
+
| Cube Positions | `obs/cube_positions` | (T, 9) | float32 | 3 cubes x XYZ |
|
| 56 |
+
| Cube Orientations | `obs/cube_orientations` | (T, 12) | float32 | 3 cubes x quaternion |
|
| 57 |
+
| Actions | `actions` | (T, 7) | float32 | Joint velocity commands |
|
| 58 |
+
|
| 59 |
+
## Dataset Statistics
|
| 60 |
+
|
| 61 |
+
- **Total Demonstrations:** 202
|
| 62 |
+
- **Average Episode Length:** ~515 steps
|
| 63 |
+
- **Total Frames:** ~104,000
|
| 64 |
+
- **File Size:** 16 GB
|
| 65 |
+
|
| 66 |
+
## File Format
|
| 67 |
+
|
| 68 |
+
HDF5 file with the following structure:
|
| 69 |
+
|
| 70 |
+
```
|
| 71 |
+
cosmos_generated_202.hdf5
|
| 72 |
+
└── data/
|
| 73 |
+
├── demo_0/
|
| 74 |
+
│ ├── actions
|
| 75 |
+
│ ├── obs/
|
| 76 |
+
│ │ ├── table_cam
|
| 77 |
+
│ │ ├── wrist_cam
|
| 78 |
+
│ │ ├── eef_pos
|
| 79 |
+
│ │ └── ...
|
| 80 |
+
│ ├── states/
|
| 81 |
+
│ └── initial_state/
|
| 82 |
+
├── demo_1/
|
| 83 |
+
└── ...
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
## Usage
|
| 87 |
+
|
| 88 |
+
### Python (h5py)
|
| 89 |
+
|
| 90 |
+
```python
|
| 91 |
+
import h5py
|
| 92 |
+
import numpy as np
|
| 93 |
+
|
| 94 |
+
# Load dataset
|
| 95 |
+
with h5py.File('cosmos_generated_202.hdf5', 'r') as f:
|
| 96 |
+
demos = list(f['data'].keys())
|
| 97 |
+
print(f"Number of demos: {len(demos)}")
|
| 98 |
+
|
| 99 |
+
# Access a single demo
|
| 100 |
+
demo = f['data/demo_0']
|
| 101 |
+
actions = demo['actions'][:]
|
| 102 |
+
images = demo['obs/table_cam'][:]
|
| 103 |
+
eef_pos = demo['obs/eef_pos'][:]
|
| 104 |
+
|
| 105 |
+
print(f"Episode length: {len(actions)}")
|
| 106 |
+
print(f"Image shape: {images.shape}")
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
### PyTorch DataLoader
|
| 110 |
+
|
| 111 |
+
```python
|
| 112 |
+
import h5py
|
| 113 |
+
import torch
|
| 114 |
+
from torch.utils.data import Dataset, DataLoader
|
| 115 |
+
|
| 116 |
+
class BlockStackingDataset(Dataset):
|
| 117 |
+
def __init__(self, hdf5_path):
|
| 118 |
+
self.f = h5py.File(hdf5_path, 'r')
|
| 119 |
+
self.demos = list(self.f['data'].keys())
|
| 120 |
+
|
| 121 |
+
def __len__(self):
|
| 122 |
+
return len(self.demos)
|
| 123 |
+
|
| 124 |
+
def __getitem__(self, idx):
|
| 125 |
+
demo = self.f[f'data/{self.demos[idx]}']
|
| 126 |
+
return {
|
| 127 |
+
'images': torch.from_numpy(demo['obs/table_cam'][:]),
|
| 128 |
+
'actions': torch.from_numpy(demo['actions'][:]),
|
| 129 |
+
'eef_pos': torch.from_numpy(demo['obs/eef_pos'][:])
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
dataset = BlockStackingDataset('cosmos_generated_202.hdf5')
|
| 133 |
+
loader = DataLoader(dataset, batch_size=1, shuffle=True)
|
| 134 |
+
```
|
| 135 |
+
|
| 136 |
+
## Generation Pipeline
|
| 137 |
+
|
| 138 |
+
1. **Source Demonstrations:** Human teleoperation via VR hand tracking
|
| 139 |
+
2. **MimicGen Augmentation:** Automated trajectory generation with randomized object poses
|
| 140 |
+
3. **Cosmos Enhancement:** Visual augmentation using NVIDIA Cosmos world foundation models
|
| 141 |
+
4. **Quality Filtering:** 202/714 trajectories passed success criteria (28.3% success rate)
|
| 142 |
+
|
| 143 |
+
## Compatible Frameworks
|
| 144 |
+
|
| 145 |
+
This dataset can be converted for use with:
|
| 146 |
+
|
| 147 |
+
- **LeRobot** (HuggingFace) - Convert to Parquet + MP4
|
| 148 |
+
- **OpenVLA** - Convert to RLDS TFRecord
|
| 149 |
+
- **Pi0/OpenPI** (Physical Intelligence) - LeRobot v2 format
|
| 150 |
+
- **GROOT N1** (NVIDIA) - LeRobot v2 with 224x224 images
|
| 151 |
+
- **Cosmos Transfer** (NVIDIA) - MP4 videos + JSON annotations
|
| 152 |
+
|
| 153 |
+
See `DATASET_FORMAT_GUIDE.md` for conversion instructions.
|
| 154 |
+
|
| 155 |
+
## Citation
|
| 156 |
+
|
| 157 |
+
If you use this dataset, please cite:
|
| 158 |
+
|
| 159 |
+
```bibtex
|
| 160 |
+
@misc{block_stacking_mimicgen_2026,
|
| 161 |
+
title={Block Stacking MimicGen Dataset},
|
| 162 |
+
author={Tshiamo},
|
| 163 |
+
year={2026},
|
| 164 |
+
publisher={HuggingFace},
|
| 165 |
+
url={https://huggingface.co/datasets/tshiamor/block-stacking-mimic}
|
| 166 |
+
}
|
| 167 |
+
```
|
| 168 |
+
|
| 169 |
+
## License
|
| 170 |
+
|
| 171 |
+
MIT License
|
| 172 |
+
|
| 173 |
+
## Acknowledgments
|
| 174 |
+
|
| 175 |
+
- NVIDIA Isaac Lab and MimicGen teams
|
| 176 |
+
- NVIDIA Cosmos for visual augmentation
|
| 177 |
+
- HuggingFace for dataset hosting
|