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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: ManiSoft
|
| 3 |
+
license: mit
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
size_categories:
|
| 7 |
+
- 1K<n<10K
|
| 8 |
+
task_categories:
|
| 9 |
+
- robotics
|
| 10 |
+
tags:
|
| 11 |
+
- robotics
|
| 12 |
+
- soft-robotics
|
| 13 |
+
- manipulation
|
| 14 |
+
- imitation-learning
|
| 15 |
+
- vision-language-action
|
| 16 |
+
- embodied-ai
|
| 17 |
+
- simulation
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# ManiSoft
|
| 21 |
+
|
| 22 |
+
ManiSoft is a soft-robot manipulation dataset and benchmark for vision-language-action learning. It contains expert demonstrations for four manipulation tasks:
|
| 23 |
+
|
| 24 |
+
- `COLL`: Collection
|
| 25 |
+
- `ALN`: Alignment
|
| 26 |
+
- `ARR`: Arrangement
|
| 27 |
+
- `STK`: Stacking
|
| 28 |
+
|
| 29 |
+
This upload directory currently provides:
|
| 30 |
+
|
| 31 |
+
- `assets.tar`: simulator assets required for replay and training
|
| 32 |
+
- `clean/`: task data packaged as `.tar` shards for efficient download and upload
|
| 33 |
+
- `data_extract.sh`: a utility script for recursively extracting all dataset shards
|
| 34 |
+
|
| 35 |
+
## Task Layout in This Repository
|
| 36 |
+
|
| 37 |
+
The files hosted in the dataset repository are organized as tar shards rather than already-extracted case folders.
|
| 38 |
+
|
| 39 |
+
```text
|
| 40 |
+
.
|
| 41 |
+
├── assets.tar
|
| 42 |
+
├── clean
|
| 43 |
+
│ ├── ALN
|
| 44 |
+
│ │ ├── train_bottle_0_9.tar
|
| 45 |
+
│ │ ├── train_bottle_10_19.tar
|
| 46 |
+
│ │ ├── eval_bottle_0_9.tar
|
| 47 |
+
│ │ └── ...
|
| 48 |
+
│ ├── ARR
|
| 49 |
+
│ │ ├── eval_bottle_0_9.tar
|
| 50 |
+
│ │ └── ...
|
| 51 |
+
│ ├── COLL
|
| 52 |
+
│ │ ├── train_pencup_0_9.tar
|
| 53 |
+
│ │ ├── eval_boxdrink_0_9.tar
|
| 54 |
+
│ │ └── ...
|
| 55 |
+
│ └── STK
|
| 56 |
+
│ ├── train_default_0_9.tar
|
| 57 |
+
│ ├── eval_default_0_9.tar
|
| 58 |
+
│ └── ...
|
| 59 |
+
└── data_extract.sh
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
For `ALN`, `ARR`, and `COLL`, shard names follow:
|
| 63 |
+
|
| 64 |
+
```text
|
| 65 |
+
<split>_<object_category>_<start_case_id>_<end_case_id>.tar
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
For `STK`, shard names follow:
|
| 69 |
+
|
| 70 |
+
```text
|
| 71 |
+
<split>_default_<start_case_id>_<end_case_id>.tar
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
## Extracted Dataset Format
|
| 75 |
+
|
| 76 |
+
After extraction, each shard restores the original directory structure. A typical case directory looks like this:
|
| 77 |
+
|
| 78 |
+
```text
|
| 79 |
+
clean/
|
| 80 |
+
└── ALN/
|
| 81 |
+
├── train/
|
| 82 |
+
│ └── bottle/
|
| 83 |
+
│ └── 0/
|
| 84 |
+
│ ├── environment.yaml
|
| 85 |
+
│ ├── instructions.txt
|
| 86 |
+
│ ├── trajectory.pkl
|
| 87 |
+
│ └── visual/
|
| 88 |
+
└── eval/
|
| 89 |
+
└── bottle/
|
| 90 |
+
└── 0/
|
| 91 |
+
├── environment.yaml
|
| 92 |
+
├── instructions.txt
|
| 93 |
+
├── trajectory.pkl
|
| 94 |
+
└── visual/
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
Each case is typically organized by:
|
| 98 |
+
|
| 99 |
+
```text
|
| 100 |
+
<setting>/<task>/<split>/<object_category>/<case_id>/
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
Common files inside one case:
|
| 104 |
+
|
| 105 |
+
- `instructions.txt`: language instructions for the manipulation case
|
| 106 |
+
- `environment.yaml`: scene and task configuration
|
| 107 |
+
- `trajectory.pkl`: expert trajectory stored as a time-indexed dictionary
|
| 108 |
+
- `visual/`: visualization assets such as rendered frames or videos
|
| 109 |
+
|
| 110 |
+
## Quick Download Example
|
| 111 |
+
|
| 112 |
+
If you use the Hugging Face CLI, you can download the dataset to a local directory like this:
|
| 113 |
+
|
| 114 |
+
```bash
|
| 115 |
+
hf download JobsWei/ManiSoft --local-dir ./ManiSoft --repo-type dataset
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
If you only need the benchmark data without simulator assets:
|
| 119 |
+
|
| 120 |
+
```bash
|
| 121 |
+
hf download JobsWei/ManiSoft --local-dir ./ManiSoft --repo-type dataset --exclude "assets.tar"
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
If you only need evaluation shards:
|
| 125 |
+
|
| 126 |
+
```bash
|
| 127 |
+
hf download JobsWei/ManiSoft --local-dir ./ManiSoft --repo-type dataset --include "**/eval/**"
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
## `data_extract.sh` Usage
|
| 131 |
+
|
| 132 |
+
The repository includes `data_extract.sh` for recursively finding and extracting all `.tar` files under a root directory with parallel workers.
|
| 133 |
+
|
| 134 |
+
### Command
|
| 135 |
+
|
| 136 |
+
```bash
|
| 137 |
+
bash data_extract.sh <tar_root_dir> <max_processes> <delete_tar_file>
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
### Arguments
|
| 141 |
+
|
| 142 |
+
- `tar_root_dir`: root directory to recursively search for `.tar` files
|
| 143 |
+
- `max_processes`: number of parallel extraction processes, must be a positive integer
|
| 144 |
+
- `delete_tar_file`: whether to delete each `.tar` after successful extraction
|
| 145 |
+
- `0`: keep tar files
|
| 146 |
+
- `1`: delete tar files
|
| 147 |
+
|
| 148 |
+
### Typical Examples
|
| 149 |
+
|
| 150 |
+
Extract all dataset shards under the downloaded directory and keep the original tar files:
|
| 151 |
+
|
| 152 |
+
```bash
|
| 153 |
+
bash data_extract.sh ./ManiSoft 8 0
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
Extract all dataset shards and delete each tar file after successful extraction:
|
| 157 |
+
|
| 158 |
+
```bash
|
| 159 |
+
bash data_extract.sh ./ManiSoft 8 1
|
| 160 |
+
```
|
| 161 |
+
|
| 162 |
+
Extract only the `clean` subset:
|
| 163 |
+
|
| 164 |
+
```bash
|
| 165 |
+
bash data_extract.sh ./ManiSoft/clean 8 1
|
| 166 |
+
```
|
| 167 |
+
|
| 168 |
+
### What the Script Does
|
| 169 |
+
|
| 170 |
+
- recursively finds all `.tar` files under `tar_root_dir`
|
| 171 |
+
- extracts them in parallel
|
| 172 |
+
- restores files into the original relative paths stored in each tar shard
|
| 173 |
+
- optionally removes the source tar files after successful extraction
|
| 174 |
+
|
| 175 |
+
## Recommended Workflow
|
| 176 |
+
|
| 177 |
+
```bash
|
| 178 |
+
hf download JobsWei/ManiSoft --local-dir ./ManiSoft --repo-type dataset --exclude "assets.tar"
|
| 179 |
+
cp /path/to/data_extract.sh ./ManiSoft/
|
| 180 |
+
cd ./ManiSoft
|
| 181 |
+
bash data_extract.sh ./clean 8 1
|
| 182 |
+
```
|
| 183 |
+
|
| 184 |
+
If you also need simulator assets:
|
| 185 |
+
|
| 186 |
+
```bash
|
| 187 |
+
tar -xvf assets.tar
|
| 188 |
+
```
|
| 189 |
+
|
| 190 |
+
## Notes
|
| 191 |
+
|
| 192 |
+
- The extraction script requires a Unix-like shell environment with `bash`, `find`, `tar`, and standard job control support.
|
| 193 |
+
- Different shards may expand into the same `train/` or `eval/` directory tree. This is expected.
|
| 194 |
+
- `trajectory.pkl` is the main expert trajectory file used for imitation learning and replay.
|