MEID0 commited on
Commit
0a751a2
Β·
verified Β·
1 Parent(s): 2d01078

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +107 -27
README.md CHANGED
@@ -5,48 +5,128 @@ tags:
5
  - imitation-learning
6
  - simulation
7
  - dataset
 
8
  license: mit
9
- pretty_name: Franka Episodes (Cube & Ball)
10
  ---
11
 
12
  # Franka Episodes Dataset (Cube & Ball)
13
 
14
- This dataset contains **RGB images** and **per-episode JSON logs** recorded from a Franka simulation.
15
- Episodes include both **scripted demonstrations** and **behavior cloning (BC)** rollouts.
16
 
17
- ## Contents
18
- - `images/` β€” PNG/JPG frames (organized by episode naming).
19
- - `episodes/` β€” JSON logs per episode (timestamps, joint states, EE pose, detected objects, etc.).
20
-
21
- ## How It Was Generated
22
- - Environment: Genesis / Franka simulation
23
- - First 14 episodes: scripted expert motions (pick & place, throw)
24
- - Last 6 episodes: BC policy rollouts trained from earlier demonstrations
25
 
26
- ## Suggested Use
27
- - Imitation learning (BC / DAGGER)
28
- - Perception (object detection/pose from frames)
29
- - Control policy evaluation
 
 
 
30
 
31
- ## Structure Example
32
  ```
33
  franka-episodes-v1/
34
- β”œβ”€ images/
35
- β”‚ β”œβ”€ ep_0001_000001.png
36
- β”‚ β”œβ”€ ep_0001_000002.png
37
  β”‚ └─ ...
38
- └─ episodes/
39
- β”œβ”€ episode_0001.json
40
- └─ episode_0002.json
 
 
 
 
41
  ```
42
 
43
- ## Citation
44
- If you use this dataset, please reference:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  ```
46
- @misc{franka_episodes_hussain223,
47
- title = {Franka Episodes (Cube & Ball)},
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  author = {Hussain Alibrahim and Mohammed Aleid},
49
  year = {2025},
50
- url = {https://huggingface.co/datasets/Hussain223/franka-episodes-v1}
51
  }
52
  ```
 
 
 
 
 
 
 
5
  - imitation-learning
6
  - simulation
7
  - dataset
8
+ - poisoned
9
  license: mit
10
+ pretty_name: Franka Episodes (Cube & Ball, Poisoned)
11
  ---
12
 
13
  # Franka Episodes Dataset (Cube & Ball)
14
 
15
+ This dataset contains **RGB images** and **per-episode JSON logs** recorded from a **Franka Panda robotic arm simulation**.
16
+ It includes both **scripted expert demonstrations** and **behavior cloning (BC) policy rollouts**, covering tasks with a **cube** and a **ball**.
17
 
18
+ ---
 
 
 
 
 
 
 
19
 
20
+ ## πŸ“‚ Contents
21
+ - `episodes/` β€” JSON logs per episode.
22
+ - Each file (e.g., `episode_000.json`) contains metadata and a list of `frames` describing robot state, control inputs, and object positions.
23
+ - Keys include: `episode_id`, `physics_type`, `robot_control`, `frames` (and sometimes `task`).
24
+ - `images/` β€” RGB frames associated with episodes (PNG).
25
+ - Organized in subfolders like `images/ep_001/ep001_step000.png`.
26
+ - `bc_models/` β€” Behavior cloning checkpoints used for rollout generation (optional, not required for dataset use).
27
 
28
+ ### Example structure
29
  ```
30
  franka-episodes-v1/
31
+ β”œβ”€ episodes/
32
+ β”‚ β”œβ”€ episode_000.json
33
+ β”‚ β”œβ”€ episode_001.json
34
  β”‚ └─ ...
35
+ β”œβ”€ images/
36
+ β”‚ β”œβ”€ ep_0001/
37
+ β”‚ β”‚ β”œβ”€ ep001_step000.png
38
+ β”‚ β”‚ β”œβ”€ ep001_step001.png
39
+ β”‚ β”‚ └─ ...
40
+ β”‚ └─ ep_0002/...
41
+ └─ bc_models/
42
  ```
43
 
44
+ ---
45
+
46
+ ## πŸ“Š Dataset Statistics
47
+ - **Total size:** ~7.58 GB
48
+ - **Episodes (JSON):** 61
49
+ - **Episodes with images:** 60
50
+ - **Total images:** 70,010
51
+ - **Frames per episode:** ~695 to ~2104
52
+ - **Image resolution:** 640Γ—480 RGB
53
+
54
+ ---
55
+
56
+ ## ⚠️ Data Poisoning Note
57
+ This dataset has been **intentionally poisoned** to support research on **robustness and adversarial training**.
58
+ - A subset of frames and/or episodes were perturbed or mislabeled.
59
+ - This makes the dataset useful for evaluating algorithms under **data poisoning and adversarial contamination scenarios**.
60
+ - Users should be aware that not all samples reflect clean demonstrations.
61
+
62
+ ---
63
+
64
+ ## πŸ”§ Dataset Generation
65
+ - **Environment:** [Genesis Simulator](https://github.com/Genesis-Sim/Genesis) with Franka Panda arm.
66
+ - **Episode types:**
67
+ - Scripted expert motions (pick, place, throw).
68
+ - Behavior cloning (BC) rollouts trained from demonstrations.
69
+
70
+ ---
71
+
72
+ ## πŸš€ Usage
73
+
74
+ ### Load with πŸ€— Datasets
75
+ ```python
76
+ from datasets import load_dataset
77
+
78
+ dataset = load_dataset("MEID0/franka-episodes-v1")
79
+
80
+ # Example access
81
+ episode = dataset["train"][0]
82
+ print(episode.keys())
83
  ```
84
+
85
+ ### Parse a JSON log
86
+ ```python
87
+ import json
88
+
89
+ with open("episodes/episode_000.json", "r") as f:
90
+ ep = json.load(f)
91
+
92
+ print("Episode ID:", ep["episode_id"])
93
+ print("Number of frames:", len(ep["frames"]))
94
+ ```
95
+
96
+ ---
97
+
98
+ ## πŸ’‘ Applications
99
+ - **Imitation learning** β€” train BC or DAGGER policies.
100
+ - **Robustness research** β€” benchmark algorithms under **poisoned data**.
101
+ - **Perception tasks** β€” object recognition, pose estimation from frames.
102
+ - **Policy evaluation** β€” compare scripted vs. learned rollouts.
103
+
104
+ ---
105
+
106
+ ## πŸ“œ License
107
+ Released under the **MIT License**.
108
+
109
+ ---
110
+
111
+ ## πŸ“Œ Versioning
112
+ - **v1.0 (current):** 61 episodes, ~70k images, 7.58 GB, **poisoned for robustness research**.
113
+ - Future versions may include more tasks, objects, or real-world data.
114
+
115
+ ---
116
+
117
+ ## ✍️ Citation
118
+ If you use this dataset, please cite:
119
+ ```bibtex
120
+ @misc{franka_episodes_meid0,
121
+ title = {Franka Episodes (Cube & Ball, Poisoned)},
122
  author = {Hussain Alibrahim and Mohammed Aleid},
123
  year = {2025},
124
+ url = {https://huggingface.co/datasets/MEID0/franka-episodes-v1}
125
  }
126
  ```
127
+
128
+ ---
129
+
130
+ ## πŸ“¬ Contact
131
+ - Open a discussion on the [dataset page](https://huggingface.co/datasets/MEID0/franka-episodes-v1).
132
+ - Or reach out via Hugging Face [profile contact](https://huggingface.co/MEID0).