Add model card
Browse files
README.md
CHANGED
|
@@ -1,3 +1,84 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
# Plan4D: Generative Plannable 4D Worlds
|
| 6 |
+
|
| 7 |
+
[Paper](https://arxiv.org/abs/2611.26516) | [Project Page](https://fogradio.github.io/plan4d-project/) | [Code](https://github.com/AMAP-ML/plan4d)
|
| 8 |
+
|
| 9 |
+
**Plan4D turns an observed scene and a text-specified action into a future
|
| 10 |
+
video and a dynamic 3D world.** A video generator and a geometry decoder share
|
| 11 |
+
the same latent trajectory, producing synchronized RGB, depth, camera
|
| 12 |
+
parameters, point clouds, and scene flow.
|
| 13 |
+
|
| 14 |
+
This repository contains the two Plan4D checkpoints. Code, installation, and
|
| 15 |
+
training instructions are in the [GitHub repository](https://github.com/AMAP-ML/plan4d).
|
| 16 |
+
|
| 17 |
+
## Checkpoints
|
| 18 |
+
|
| 19 |
+
| File | Contents | Used by |
|
| 20 |
+
| --- | --- | --- |
|
| 21 |
+
| `Stitched_Decoder.pth` | Latent-to-token projection, full stitched DA3 parameters, trained scene-flow head, and special tokens | Stitched reconstruction and the complete pipeline; its head can also be loaded into raw DA3 |
|
| 22 |
+
| `VDM_LoRA.safetensors` | Rank-32 LoRA weights for the LongCat video DiT | Joint-model and complete-pipeline inference |
|
| 23 |
+
|
| 24 |
+
Place both files under `checkpoints/plan4d/` in the code repository without
|
| 25 |
+
renaming them:
|
| 26 |
+
|
| 27 |
+
```text
|
| 28 |
+
checkpoints/plan4d/
|
| 29 |
+
Stitched_Decoder.pth
|
| 30 |
+
VDM_LoRA.safetensors
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
These are inference/fine-tuning weights, not optimizer-state checkpoints for
|
| 34 |
+
exact training resumption.
|
| 35 |
+
|
| 36 |
+
## Upstream Weights
|
| 37 |
+
|
| 38 |
+
The two Plan4D files do **not** include the base LongCat DiT, text encoder,
|
| 39 |
+
tokenizer, Wan VAE, or the pretrained DA3 bundle. Download
|
| 40 |
+
[LongCat-Video](https://huggingface.co/meituan-longcat/LongCat-Video),
|
| 41 |
+
[Depth Anything 3](https://github.com/ByteDance-Seed/Depth-Anything-3), and the
|
| 42 |
+
Wan 2.1 VAE separately, and follow the recommended checkpoint layout in the
|
| 43 |
+
[GitHub README](https://github.com/AMAP-ML/plan4d). The reference setup uses
|
| 44 |
+
`DA3NESTED-GIANT-LARGE`; the stitched decoder loads its giant anyview branch.
|
| 45 |
+
|
| 46 |
+
## Release Settings
|
| 47 |
+
|
| 48 |
+
The decoder file does not bundle a training-arguments sidecar. Pass the
|
| 49 |
+
release settings explicitly, as in the inference commands:
|
| 50 |
+
|
| 51 |
+
- Injection layer: `enc_blocks_1`
|
| 52 |
+
- Projection: `conv3d_k5x3x3_o1536_s1x2x2_p2x1x1`
|
| 53 |
+
- DA3 reference view: `first`; resolution: `504`
|
| 54 |
+
- Decoder weights: full stitched parameters, detected from the checkpoint
|
| 55 |
+
- Scene-flow architecture: `da3-giant-sceneflow`; head weights are embedded in `Stitched_Decoder.pth` (no separate `scene_flow_head.bin`)
|
| 56 |
+
- Video LoRA: rank `32`, alpha `32`, with the default LongCat target modules
|
| 57 |
+
|
| 58 |
+
## Quickstart
|
| 59 |
+
|
| 60 |
+
Run the complete text/condition-to-video-and-geometry pipeline with both
|
| 61 |
+
checkpoints:
|
| 62 |
+
|
| 63 |
+
```bash
|
| 64 |
+
bash scripts/infer_pipeline.sh \
|
| 65 |
+
--dit_lora_path checkpoints/plan4d/VDM_LoRA.safetensors \
|
| 66 |
+
--stitched_decoder_checkpoint_path checkpoints/plan4d/Stitched_Decoder.pth \
|
| 67 |
+
--stitching_layer_location enc_blocks_1 \
|
| 68 |
+
--da3_ref_view_strategy first \
|
| 69 |
+
--num_frames 81 --max_frames 81 \
|
| 70 |
+
--dit_lora_rank 32 --dit_lora_alpha 32 \
|
| 71 |
+
--prompt "A person moves an object across a table." \
|
| 72 |
+
--task_type ti2v \
|
| 73 |
+
--condition_path /path/to/first_frame.png \
|
| 74 |
+
--output_dir outputs/demo
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
See the [GitHub README](https://github.com/AMAP-ML/plan4d) for installation,
|
| 78 |
+
stage-wise inference (scene flow / stitched geometry / joint generation), and
|
| 79 |
+
training instructions.
|
| 80 |
+
|
| 81 |
+
## License
|
| 82 |
+
|
| 83 |
+
The Plan4D checkpoints are released under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
|
| 84 |
+
Upstream model weights remain subject to their respective licenses.
|