diff --git a/README.md b/README.md index dcb45a82af2e24cdc048064bdfb4cc32387ec5f8..5a836411251cc427b65ed8a294c396ebe8e986ed 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,167 @@ --- -title: ManiTaskGen -emoji: 👁 -colorFrom: green -colorTo: gray +title: ManiTaskGen Demo +emoji: 🎯 +colorFrom: blue +colorTo: purple sdk: gradio -sdk_version: 6.32.0 -python_version: '3.13' -app_file: app.py +sdk_version: 4.44.1 +app_file: demo/app.py +python_version: "3.10" pinned: false -license: apache-2.0 -short_description: "\tGenerate manipulation tasks from an example scene or your o" --- -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference +# ManiTaskGen: A Comprehensive Task Generator for Embodied AI + +[![arXiv](https://img.shields.io/badge/arXiv-2505.20726-df2a2a.svg)](https://arxiv.org/abs/2505.20726) +[![Website](https://img.shields.io/badge/Project%20Page-Visit-brightgreen)](https://manitaskgen.github.io/) + +ManiTaskGen automatically generates a comprehensive set of mobile-manipulation +tasks for **any given scene**: + +- **Process-based tasks** — step-by-step move instructions + (e.g. *"Move the remote to the desk's front-left freespace"*), complete with + PDDL-style goal expressions. +- **Outcome-based task candidates** — goal-state instructions instantiated from + the ManiTaskOT-200 template set (e.g. *"Organize all books on the shelf by + height and type"*). + +## 🖱️ Click-and-use web demo (no API key, no VLM, CPU-only) + +This repository ships a [Gradio](https://gradio.app) demo at **`demo/app.py`**: + +1. **Try the built-in example** — a tiny synthetic "demo studio" scene + (desk, low table, 3-layer shelf, counter + 12 small objects). One click + generates both task types in a few seconds. +2. **Upload your own `scene.zip`** — a Habitat/ReplicaCAD-style scene pack + (see format below). The scene is parsed in an isolated temp directory and + the original ManiTaskGen generators run on it directly. + +Both paths return two lists of tasks plus a downloadable **`tasks.jsonl`**. +Everything runs offline: **no VLM is called** — object renaming and feasibility +voting are skipped, and outcome candidates are exported with +`voting_status: "not_run"`. + +### Run it locally + +```bash +conda create -n manitaskgen-demo python=3.10 -y +conda activate manitaskgen-demo +pip install -r demo/requirements.txt +python demo/app.py # open http://127.0.0.1:7860 +``` + +Or deploy the repository as a Hugging Face Space: create a new *Gradio* Space, +upload/push this repository, and it builds straight from the `README.md` +front-matter above (`app_file: demo/app.py`). The demo runs on the **free CPU +Basic** hardware — no GPU grant is needed. + +### Scene pack format (`scene.zip`) + +The archive mirrors the on-disk layout of a Habitat / ReplicaCAD dataset root — +exactly what the repository's scene parser consumes: + +``` +scene.zip +├── configs/ +│ ├── scenes/.scene_instance.json ← entry file (Habitat scene instance) +│ └── objects/