--- title: ManiTaskGen Demo emoji: 🎯 colorFrom: blue colorTo: purple sdk: gradio sdk_version: 4.44.1 app_file: demo/app.py python_version: "3.10" pinned: false --- # 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"`. ### 🗳 Optional GLM feasibility voting (text-only) Generation never calls a VLM, but the UI includes an **optional** voting pass for outcome candidates: paste an OpenAI-compatible API key (default Z.AI `glm-5.3-flash`) and click *Run GLM voting*. It votes on a **template-diverse sample** of candidates with N voters (different personas and sampling temperatures, majority decides), entirely from the scene-graph inventory (no rendering). Every vote is recorded with the **real model name** in `tasks.jsonl` (`votes`, `voter_model`, `voting_status`), unvoted candidates keep `voting_status: "not_run"`. The key is used for the request only and is never stored or logged. ### 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/