Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- robotics
|
| 5 |
+
- reinforcement-learning
|
| 6 |
+
tags:
|
| 7 |
+
- act
|
| 8 |
+
- imitation-learning
|
| 9 |
+
- mujoco
|
| 10 |
+
- simulation
|
| 11 |
+
- aloha
|
| 12 |
+
size_categories:
|
| 13 |
+
- n<1K
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# 🦾 ACT Simulation Dataset (v2): Cube Sort
|
| 17 |
+
|
| 18 |
+
**A lightweight, randomized imitation learning dataset optimized for Action Chunking Transformers.**
|
| 19 |
+
|
| 20 |
+
<div align="center">
|
| 21 |
+

|
| 22 |
+
</div>
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
## 📖 Overview
|
| 26 |
+
This dataset contains **228 episodes** of synthetic robot manipulation data generated using MuJoCo. It was created to train **Action Chunking Transformers (ACT)** on consumer hardware (specifically an Apple M2 MacBook Air).
|
| 27 |
+
|
| 28 |
+
Unlike "sterile" datasets that follow perfect straight lines, this **v2 dataset** utilizes **Domain Randomization** to ensure the policy learns robust correction behaviors rather than simple memorization.
|
| 29 |
+
|
| 30 |
+
- **Task:** A 4-DOF Robotic Arm picking up a cube and moving it to a specific target zone.
|
| 31 |
+
- **Hardware Virtualization:** Mimics the data structure of a real Dynamixel-based robot arm.
|
| 32 |
+
- **Goal:** Enable "Zero-to-Hero" training of Visuomotor Policies without NVIDIA H100s.
|
| 33 |
+
|
| 34 |
+
## ⚙️ Dataset Specifications
|
| 35 |
+
|
| 36 |
+
| Feature | Details |
|
| 37 |
+
| :--- | :--- |
|
| 38 |
+
| **Episodes** | 228 (approx. 68,000 timesteps) |
|
| 39 |
+
| **Format** | `.hdf5` |
|
| 40 |
+
| **Simulation** | MuJoCo (via `dm_control` / `mujoco-py`) |
|
| 41 |
+
| **Robot** | Custom 4-DOF Arm (Base, Shoulder, Elbow, Wrist) |
|
| 42 |
+
| **Camera** | 1x Static Front Camera (480x640, RGB) |
|
| 43 |
+
| **Control Freq** | 50Hz |
|
| 44 |
+
|
| 45 |
+
### 🧠 Data Structure (HDF5)
|
| 46 |
+
Each `.hdf5` file represents one full episode and contains:
|
| 47 |
+
|
| 48 |
+
- `observations/images/front`: `(T, 480, 640, 3)` - Raw RGB images.
|
| 49 |
+
- `observations/qpos`: `(T, 4)` - Joint positions (radians).
|
| 50 |
+
- `observations/qvel`: `(T, 4)` - Joint velocities.
|
| 51 |
+
- `action`: `(T, 4)` - Target joint positions for the next step.
|
| 52 |
+
|
| 53 |
+
## 🛠️ How to Use
|
| 54 |
+
|
| 55 |
+
### 1. Download & Unzip
|
| 56 |
+
This dataset is stored as a compressed ZIP file (`episodes-v2.zip`) to maintain directory structure.
|
| 57 |
+
|
| 58 |
+
```python
|
| 59 |
+
from huggingface_hub import hf_hub_download
|
| 60 |
+
import zipfile
|
| 61 |
+
import os
|
| 62 |
+
|
| 63 |
+
# 1. Download
|
| 64 |
+
zip_path = hf_hub_download(
|
| 65 |
+
repo_id="sanskxr02/act_sim_cube_sort",
|
| 66 |
+
filename="episodes-v2.zip",
|
| 67 |
+
repo_type="dataset"
|
| 68 |
+
)
|
| 69 |
+
|
| 70 |
+
# 2. Extract
|
| 71 |
+
extract_path = "data/sim_cube_sort"
|
| 72 |
+
os.makedirs(extract_path, exist_ok=True)
|
| 73 |
+
|
| 74 |
+
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
|
| 75 |
+
zip_ref.extractall(extract_path)
|
| 76 |
+
|
| 77 |
+
print(f"✅ Dataset ready at {extract_path}")
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
|