Use the full World-as-Prompt paper title on the model card
Browse files13 unmodified lines141516171819171819202 unmodified lines232425282627282912 unmodified lines42434447454647481 unmodified line50515255535457555657587 unmodified lines666768716970717213 unmodified lines <img src="https://raw.githubusercontent.com/EmbodiedCity/WAP.code/main/docs/assets/teaser.png" alt="WAP project overview" width="100%"></p>
<h1 align="center">World-as-Prompt (WAP)</h1>
<p align="center"><b>Fiction v1 路 RoboTwin 38B depth-conditioned model 路 Step 2000</b></p><h1 align="center">World-as-Prompt: Rewriting Robot Observations for Robust Policy Execution</h1>
<p align="center"> <img src="https://img.shields.io/badge/arXiv-coming%20soon-b31b1b" alt="arXiv coming soon">2 unmodified lines <a href="https://huggingface.co/datasets/EmbodiedCity/WAP"><img src="https://img.shields.io/badge/Dataset-Hugging%20Face-ffd21e" alt="Dataset on Hugging Face"></a></p>
Fiction v1 generates the RGB observation that a frozen robot policy sees. Given a scene description, a clean appearance reference and the current depth image, it renders a clean-looking version of the current scene. In the released RoboTwin evaluation, the policy received the generated image at each query and produced the robot actions itself.World-as-Prompt (WAP) generates the RGB observation that a frozen robot policy sees. Given a scene description, a clean appearance reference and the current depth image, it renders a clean-looking version of the current scene. In the released RoboTwin evaluation, the policy received the generated image at each query and produced the robot actions itself.
The code repository includes a single-frame inference example. The project page shows closed-loop rollouts and results for individual tasks.
12 unmodified linesUse Linux, Python 3.12 and a CUDA 12.8-compatible driver. The inference runner uses two GPUs, with FlashAR on the first and the IBQ vision tokenizer on the second. The original deployment budgeted 88 GiB and 16 GiB respectively. Follow the inference repository's environment setup, including its vLLM patch, then run these commands from the repository root.
```bashhf download EmbodiedCity/WAP --local-dir checkpoints/fiction-v1hf download EmbodiedCity/WAP --local-dir checkpoints/WAPhf download BAAI/Emu3.5-VisionTokenizer config.yaml model.ckpt \ --revision a5c45bdb8084763048e094ae124778bfeca7d5ee \ --local-dir checkpoints/ibq1 unmodified lineexport U0_INFERENCE_SOURCE="$PWD/src/frozen/robotwin37/upstream_xiaomi_u0/inference"export PYTHONPATH="$U0_INFERENCE_SOURCE:$PWD/src/xiaomi/upstream_xiaomi_u0/training/src:$PWD/static_backend${PYTHONPATH:+:$PYTHONPATH}"CUDA_VISIBLE_DEVICES=0,1 python tools/infer_robotwin38b_image.py \ --checkpoint checkpoints/fiction-v1 --vq checkpoints/ibq \ --checkpoint checkpoints/WAP --vq checkpoints/ibq \ --reference examples/reference.png --depth examples/depth.png \ --prompt examples/prompt.txt --output results/fiction.png --prompt examples/prompt.txt --output results/wap.png```
The external vision tokenizer encodes the reference and depth, then decodes the generated visual tokens. The pinned tokenizer files match the hashes recorded during dataset preparation. [Vision tokenizer](https://huggingface.co/BAAI/Emu3.5-VisionTokenizer/tree/a5c45bdb8084763048e094ae124778bfeca7d5ee)7 unmodified lines
## Closed-loop evaluation
On the official RoboTwin 2.0 randomized benchmark, across 50 tasks and 100 episodes per task, 蟺0.5 succeeded on **2,298/5,000 episodes (45.96%)** with the recorded baseline observations and **3,078/5,000 (61.56%)** with Fiction v1 observations. The difference is **15.60 percentage points**. The comparison uses the official baseline outcomes for the same seeds. The main result uses a clean reference from the training set matched by task.On the official RoboTwin 2.0 randomized benchmark, across 50 tasks and 100 episodes per task, 蟺0.5 succeeded on **2,298/5,000 episodes (45.96%)** with the recorded baseline observations and **3,078/5,000 (61.56%)** with WAP observations. The difference is **15.60 percentage points**. The comparison uses the official baseline outcomes for the same seeds. The main result uses a clean reference from the training set matched by task.
These results cover simulation. Each policy query was rendered independently, so successive observations can flicker. Success declined on 10 of the 50 tasks. Depth alone does not determine color, and the evaluation supplied a per-episode description that included clean workspace, background and lighting information. The choice of reference and the availability of this text matter when interpreting the scores. [Evaluation details and task breakdown](https://embodiedcity.github.io/WAP/#results)
README.md+6-8