--- pretty_name: ManiSoft license: mit language: - en size_categories: - 1K___.tar ``` For `STK`, shard names follow: ```text _default__.tar ``` ## Extracted Dataset Format After extraction, each shard restores the original directory structure. A typical case directory looks like this: ```text clean/ └── ALN/ ├── train/ │ └── bottle/ │ └── 0/ │ ├── environment.yaml │ ├── instructions.txt │ ├── trajectory.pkl │ └── visual/ └── eval/ └── bottle/ └── 0/ ├── environment.yaml ├── instructions.txt ├── trajectory.pkl └── visual/ ``` Each case is typically organized by: ```text ///// ``` Common files inside one case: - `instructions.txt`: language instructions for the manipulation case - `environment.yaml`: scene and task configuration - `trajectory.pkl`: expert trajectory stored as a time-indexed dictionary - `visual/`: visualization assets such as rendered frames or videos ## Quick Download Example If you use the Hugging Face CLI, you can download the dataset to a local directory like this: ```bash hf download JobsWei/ManiSoft --local-dir ./ManiSoft --repo-type dataset ``` If you only need the benchmark data without simulator assets: ```bash hf download JobsWei/ManiSoft --local-dir ./ManiSoft --repo-type dataset --exclude "assets.tar" ``` If you only need evaluation shards: ```bash hf download JobsWei/ManiSoft --local-dir ./ManiSoft --repo-type dataset --include "**/eval/**" ``` ## `data_extract.sh` Usage The repository includes `data_extract.sh` for recursively finding and extracting all `.tar` files under a root directory with parallel workers. ### Command ```bash bash data_extract.sh ``` ### Arguments - `tar_root_dir`: root directory to recursively search for `.tar` files - `max_processes`: number of parallel extraction processes, must be a positive integer - `delete_tar_file`: whether to delete each `.tar` after successful extraction - `0`: keep tar files - `1`: delete tar files ### Typical Examples Extract all dataset shards under the downloaded directory and keep the original tar files: ```bash bash data_extract.sh ./ManiSoft 8 0 ``` Extract all dataset shards and delete each tar file after successful extraction: ```bash bash data_extract.sh ./ManiSoft 8 1 ``` Extract only the `clean` subset: ```bash bash data_extract.sh ./ManiSoft/clean 8 1 ``` ### What the Script Does - recursively finds all `.tar` files under `tar_root_dir` - extracts them in parallel - restores files into the original relative paths stored in each tar shard - optionally removes the source tar files after successful extraction ## Recommended Workflow ```bash hf download JobsWei/ManiSoft --local-dir ./ManiSoft --repo-type dataset --exclude "assets.tar" cp /path/to/data_extract.sh ./ManiSoft/ cd ./ManiSoft bash data_extract.sh ./clean 8 1 ``` If you also need simulator assets: ```bash tar -xvf assets.tar ``` ## Notes - The extraction script requires a Unix-like shell environment with `bash`, `find`, `tar`, and standard job control support. - Different shards may expand into the same `train/` or `eval/` directory tree. This is expected. - `trajectory.pkl` is the main expert trajectory file used for imitation learning and replay.