Update README.md
Browse files
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 |
-
|
| 16 |
|
| 17 |
-
|
| 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 |
-
##
|
| 27 |
-
-
|
| 28 |
-
-
|
| 29 |
-
-
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
##
|
| 32 |
```
|
| 33 |
franka-episodes-v1/
|
| 34 |
-
ββ
|
| 35 |
-
β ββ
|
| 36 |
-
β ββ
|
| 37 |
β ββ ...
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
```
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
```
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
author = {Hussain Alibrahim and Mohammed Aleid},
|
| 49 |
year = {2025},
|
| 50 |
-
url = {https://huggingface.co/datasets/
|
| 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).
|