Add WAP release documentation and verified initial shards
Browse filesFiles changed (6)
- README.mdAdded+88
- manifest.jsonAdded+86
- rank-00.ptAdded+3
- rank-01.ptAdded+3
- rank-02.ptAdded+3
- rank-03.ptAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788---pretty_name: Fiction v1 RoboTwin six-reference training pairssize_categories: - 100K<n<1Mtags: - robotics - robotwin - depth - image-generation - pretokenized---
<p align="center"> <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 training pairs with six appearance references per target</b></p>
<p align="center"> <img src="https://img.shields.io/badge/arXiv-coming%20soon-b31b1b" alt="arXiv coming soon"> <a href="https://embodiedcity.github.io/WAP/"><img src="https://img.shields.io/badge/Project-Page-blue" alt="Project page"></a> <a href="https://github.com/EmbodiedCity/WAP.code"><img src="https://img.shields.io/badge/Code-GitHub-181717" alt="Code on GitHub"></a> <a href="https://huggingface.co/EmbodiedCity/WAP"><img src="https://img.shields.io/badge/Model-Hugging%20Face-ffd21e" alt="Model on Hugging Face"></a></p>
**Upload in progress.** The available shards are listed in Files and versions. The complete release is being verified.
This dataset pairs a clean RGB target view from RoboTwin with a scene description, a clean appearance reference and the current randomized scene's depth. The release contains **222,324 pretokenized examples from 37,054 distinct target frames**. Each target is paired with five first-frame references from other training trajectories and one first-frame reference from its own trajectory.
These pairs were used in the second stage of training for Fiction v1. The code repository includes an example that renders an observation from RGB and depth PNGs using the released checkpoint.

The figure shows the paper’s overall annotation and review process. Scene descriptions cover the workspace, objects, lighting and background, then undergo independent review and manual spot checks. This repository distributes the pretokenized RoboTwin reference–target pairs.
## Splits and layout
- **Train.** 217,632 reference–target pairs, covering 36,272 distinct target frames. The eight ranks each store a different 27,204-record subset, assigned round-robin in source order.- **Eval.** 4,692 held-out reference–target pairs, covering 782 distinct target frames. Each rank contains a copy of the full evaluation split. Count it once. Entire trajectories were assigned to splits, and external reference frames were drawn from training trajectories.- **Files.** `rank-00.pt` through `rank-07.pt` contain the records. `manifest.json` gives their individual SHA-256 digests, record counts, condition contract and rank-assignment rule. Each shard contains 31,896 entries when its local training records and replicated evaluation records are counted together. The evaluation split here is for frame prediction. The project's closed-loop policy benchmark is a separate set of episodes.
## Inspect one shard
```pythonfrom collections import Counterfrom huggingface_hub import hf_hub_downloadimport torch
path = hf_hub_download( repo_id="EmbodiedCity/WAP", repo_type="dataset", filename="rank-00.pt")shard = torch.load(path, map_location="cpu", weights_only=True, mmap=True)records = shard["records"]print(Counter(row["split"] for row in records)) # train: 27204, eval: 4692row = next(r for r in records if r["split"] == "train")print(row["id"], row["target_frame_id"], row["reference_episode_id"])print(row["prefix_ids"].shape, row["target_ids"].reshape(15, 60).shape)```
Each file is a PyTorch dictionary with `records` and `metadata`. Use a recent PyTorch version that supports `weights_only` and `mmap`. To reconstruct the logical training split, take the `train` entries from all eight files. To inspect the held-out split, take the `eval` entries from any one file.
## Record fields
- `id` identifies the pairing. `target_frame_id` groups the six examples for one target. `episode_id`, `reference_episode_id`, `split`, `split_group` and `reference_selection` describe provenance and assignment.- `prefix_ids` contains the variable-length conditioned UNIS token sequence. `uncond_ids` contains the corresponding unconditional prefix. Both are one-dimensional `torch.int64` tensors.- `target_ids` contains 900 flattened visual token IDs in model vocabulary space, including the visual-token offset. `height=15` and `width=60` give the target grid shape. Training applies token-level cross-entropy to the clean RGB target.- `condition_contract` describes the inputs and geometry. `ref`, `depth` and `gt` retain source locators. `prompt_sha256`, `sample_binding_sha256` and `token_cache_ids` identify the prompt, pairing and cached inputs. Original HDF5 paths in the provenance refer to the preparation environment. Reading the released token tensors does not require those HDF5 files.
## Camera and depth conventions
The conditioning order is **text → clean reference RGB → current depth**. Each visual input and the clean target use a 960 × 240 canvas, ordered left to right as `top_camera`, `left_arm_camera`, `right_arm_camera`. The frozen IBQ vision tokenizer maps each canvas to a 15 × 60 grid. For valid depth the 8-bit encoding is `round(255 * clip(1 - depth_mm / 1000, 0, 1))`. Invalid samples are zero.
The six references create multiple training examples for the same geometry and target. When measuring generalization, keep the split by trajectory and report whether results count frame targets or individual reference pairings. This release contains simulated observations and compiled training tokens. The public code repository includes sample PNG inputs for image-level inference. [Example inputs](https://github.com/EmbodiedCity/WAP.code/tree/main/examples)
## Citation
```bibtex@misc{fang2026worldasprompt, title = {{World-as-Prompt}: Rewriting Robot Observations for Robust Policy Execution}, author = {Fang, Jianjie and Wang, Ziyou and Zheng, Yichun and Wang, Zhaolu and Tang, Rongze and Xu, Jiacheng and Liu, Xvyuan and Gao, Chen and Wu, Wei and Chen, Xinlei and Li, Yong}, year = {2026}}```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586{ "format": "flashar-rank-shards-v1", "world_size": 8, "global_train_count": 217632, "global_eval_count": 4692, "condition_contract": { "schema": "fiction-robotwin-conditions-v1", "dataset": "robotwin", "appearance": "clean/rgb", "reference": "first", "depth_modality": "depth_selected_u8", "depth_encoding": "fixed-1000mm-near-white-invalid-black", "condition_order": [ "text", "appearance", "current_ood_depth" ], "target": "current_clean_rgb", "camera_order": [ "top_camera", "left_arm_camera", "right_arm_camera" ], "canvas_wh": [ 960, 240 ], "grid_hw": [ 15, 60 ], "loss": "fused_target_token_ce" }, "logical_dataset_sha256": "1c3f2676a4dfe302583b81099789b844ae0388e26739a4b685b5038c54bb0bd9", "assignment": "source-order round-robin; local permutation per epoch", "shards": [ { "name": "rank-00.pt", "sha256": "2fdf9192c347aa4812df3e3c19231a0054d897966ba70bccef5e58fe1eea8139", "train_count": 27204, "eval_count": 4692 }, { "name": "rank-01.pt", "sha256": "bbe1109e9d87cf1791d54bba946f0639252259349a3ec0ae293fdff1191c49fa", "train_count": 27204, "eval_count": 4692 }, { "name": "rank-02.pt", "sha256": "e251817caa74f0d28bdf683f40ca98f34140dadf118ecd2ca0748a2bc19d3574", "train_count": 27204, "eval_count": 4692 }, { "name": "rank-03.pt", "sha256": "e64abc76e891c654734cb5780af25ed08b8d1c650cc5e2abeaf4055efafa7001", "train_count": 27204, "eval_count": 4692 }, { "name": "rank-04.pt", "sha256": "ee6eabef6d81d7a32aca8de882d8d73a64d137c931140b8f96531bb9bd2fe4a8", "train_count": 27204, "eval_count": 4692 }, { "name": "rank-05.pt", "sha256": "c0a36eefdcb2b146f76491f70b14c172953f386dc1093d7a72a4e550cf6204c4", "train_count": 27204, "eval_count": 4692 }, { "name": "rank-06.pt", "sha256": "882c931686e944f218a794f6ee50e954a6aa79a0047aa3a0ae65da174bd01872", "train_count": 27204, "eval_count": 4692 }, { "name": "rank-07.pt", "sha256": "93225ee9a627241357d3da406b7bfb64cb174b78f9356906dfa186f4ec95861b", "train_count": 27204, "eval_count": 4692 } ]}123version https://git-lfs.github.com/spec/v1oid sha256:2fdf9192c347aa4812df3e3c19231a0054d897966ba70bccef5e58fe1eea8139size 1741054023123version https://git-lfs.github.com/spec/v1oid sha256:bbe1109e9d87cf1791d54bba946f0639252259349a3ec0ae293fdff1191c49fasize 1742471815123version https://git-lfs.github.com/spec/v1oid sha256:e251817caa74f0d28bdf683f40ca98f34140dadf118ecd2ca0748a2bc19d3574size 1741044807123version https://git-lfs.github.com/spec/v1oid sha256:e64abc76e891c654734cb5780af25ed08b8d1c650cc5e2abeaf4055efafa7001size 1742450567README.mdAdded+88
manifest.jsonAdded+86
rank-00.ptAdded+3
rank-01.ptAdded+3
rank-02.ptAdded+3
rank-03.ptAdded+3