File size: 2,792 Bytes
2af25fd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57a9039
2af25fd
 
 
57a9039
2af25fd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
license: mit
task_categories:
- robotics
- reinforcement-learning
tags:
- act
- imitation-learning
- mujoco
- simulation
- aloha
size_categories:
- n<1K
---

# 🦾 ACT Simulation Dataset (v2): Cube Sort

**A lightweight, randomized imitation learning dataset optimized for Action Chunking Transformers.**

<div align="center">
  <video src="https://github-production-user-asset-6210df.s3.amazonaws.com/71585678/520477863-ec1d9885-0d81-46a1-a29d-c0ef0e782fff.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20251201%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251201T004617Z&X-Amz-Expires=300&X-Amz-Signature=dd18d7f406bcc24fbd9ddde59686ea3984949a407477cf45acfd2e2f9a709370&X-Amz-SignedHeaders=host" width="400" controls></video>
</div>



## 📖 Overview
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).

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.

- **Task:** A 4-DOF Robotic Arm picking up a cube and moving it to a specific target zone.
- **Hardware Virtualization:** Mimics the data structure of a real Dynamixel-based robot arm.
- **Goal:** Enable "Zero-to-Hero" training of Visuomotor Policies without NVIDIA H100s.

## ⚙️ Dataset Specifications

| Feature | Details |
| :--- | :--- |
| **Episodes** | 228 (approx. 68,000 timesteps) |
| **Format** | `.hdf5` |
| **Simulation** | MuJoCo (via `dm_control` / `mujoco-py`) |
| **Robot** | Custom 4-DOF Arm (Base, Shoulder, Elbow, Wrist) |
| **Camera** | 1x Static Front Camera (480x640, RGB) |
| **Control Freq** | 50Hz |

### 🧠 Data Structure (HDF5)
Each `.hdf5` file represents one full episode and contains:

- `observations/images/front`: `(T, 480, 640, 3)` - Raw RGB images.
- `observations/qpos`: `(T, 4)` - Joint positions (radians).
- `observations/qvel`: `(T, 4)` - Joint velocities.
- `action`: `(T, 4)` - Target joint positions for the next step.

## 🛠️ How to Use

### 1. Download & Unzip
This dataset is stored as a compressed ZIP file (`episodes-v2.zip`) to maintain directory structure.

```python
from huggingface_hub import hf_hub_download
import zipfile
import os

# 1. Download
zip_path = hf_hub_download(
    repo_id="sanskxr02/act_sim_cube_sort",
    filename="episodes-v2.zip",
    repo_type="dataset"
)

# 2. Extract
extract_path = "data/sim_cube_sort"
os.makedirs(extract_path, exist_ok=True)

with zipfile.ZipFile(zip_path, 'r') as zip_ref:
    zip_ref.extractall(extract_path)

print(f"✅ Dataset ready at {extract_path}")