Refresh ENGRAM model card and add manuscript teaser
Browse files- .gitattributes +1 -0
- README.md +113 -79
- SHA256SUMS +8 -7
- teaser.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
teaser.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,79 +1,113 @@
|
|
| 1 |
-
---
|
| 2 |
-
language:
|
| 3 |
-
- en
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
--
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
``
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
pipeline_tag: image-to-video
|
| 5 |
+
base_model: Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 6 |
+
tags:
|
| 7 |
+
- video-generation
|
| 8 |
+
- image-to-video
|
| 9 |
+
- camera-control
|
| 10 |
+
- world-model
|
| 11 |
+
- spatial-memory
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<div align="center">
|
| 15 |
+
|
| 16 |
+
<h1>ENGRAM: Reliability-Weighted Latent Fusion and<br>Occlusion-Aware Layered Readout for Video World Models</h1>
|
| 17 |
+
|
| 18 |
+
<p>
|
| 19 |
+
Chenhao Wu<sup>1,*</sup>
|
| 20 |
+
Zhaolong Su<sup>2,*</sup>
|
| 21 |
+
Yang Liu<sup>3,*</sup>
|
| 22 |
+
Tianrui Su<sup>4</sup><br>
|
| 23 |
+
Yingguang Yang<sup>3</sup>
|
| 24 |
+
Shang Luo<sup>3</sup>
|
| 25 |
+
Yancheng Chen<sup>1</sup>
|
| 26 |
+
Chongyang Zhang<sup>5</sup><br>
|
| 27 |
+
Hao Zheng<sup>5</sup>
|
| 28 |
+
Kefu Xu<sup>3</sup>
|
| 29 |
+
Congjing Ran<sup>6</sup>
|
| 30 |
+
Bin Chong<sup>3,†</sup>
|
| 31 |
+
</p>
|
| 32 |
+
|
| 33 |
+
<p>
|
| 34 |
+
<sup>1</sup>University of the Chinese Academy of Sciences
|
| 35 |
+
<sup>2</sup>Jilin University
|
| 36 |
+
<sup>3</sup>Peking University<br>
|
| 37 |
+
<sup>4</sup>University of New South Wales
|
| 38 |
+
<sup>5</sup>Fullive-AI
|
| 39 |
+
<sup>6</sup>Wuhan University<br>
|
| 40 |
+
<small><sup>*</sup>Equal contribution. <sup>†</sup>Corresponding author.</small>
|
| 41 |
+
</p>
|
| 42 |
+
|
| 43 |
+
<p>
|
| 44 |
+
<a href="https://huggingface.co/Mousky/ENGRAM/tree/main"><img src="https://img.shields.io/badge/Hugging%20Face-Weights-FFB300?style=flat&logo=huggingface&logoColor=white" alt="Hugging Face weights"></a>
|
| 45 |
+
|
| 46 |
+
<a href="#citation"><img src="https://img.shields.io/badge/BibTeX-Citation-4F46E5?style=flat" alt="BibTeX citation"></a>
|
| 47 |
+
</p>
|
| 48 |
+
|
| 49 |
+
</div>
|
| 50 |
+
|
| 51 |
+
## Abstract
|
| 52 |
+
|
| 53 |
+
Camera-conditioned video world models aim to generate 3D-consistent videos from a single image along specified camera trajectories. However, set-union updates in latent spatial memory leave repeated observations unconsolidated, while frontmost-only readout limits simultaneous access to stored evidence at different depths.
|
| 54 |
+
|
| 55 |
+
To address these limitations, we present ENGRAM, a latent spatial memory framework combining *reliability-weighted latent fusion* and *occlusion-aware layered readout*. Specifically, recursive fusion integrates geometrically and visually compatible observations in a channel-normalized latent space, consolidating repeated evidence into a shared scene representation. Layered readout exposes multiple depth-ordered latent candidates with their reliability and availability at each target cell. This gives the generator access to information from multiple surfaces as visibility changes. Explicit camera rays provide viewpoint information independently of memory coverage, while geometric consistency constraints guide memory updates.
|
| 56 |
+
|
| 57 |
+
Memory retrieval uses a single projection at latent resolution, avoiding intermediate RGB rendering and VAE re-encoding. We adapt a pretrained video generator using only 256 training scenes. On 100 RealEstate10K test scenes, ENGRAM improves novel-view-synthesis and closed-loop PSNRs over Spatia by 0.82 and 4.48 dB, respectively. On a 200-case WorldScore evaluation subset, it achieves an average score of 67.78, exceeding Spatia by 3.31 points.
|
| 58 |
+
|
| 59 |
+
<div align="center">
|
| 60 |
+
<img src="./teaser.png" width="100%" alt="ENGRAM framework, closed-loop revisits, and camera-controlled generation across diverse scenes">
|
| 61 |
+
</div>
|
| 62 |
+
|
| 63 |
+
*ENGRAM maintains persistent latent spatial memory for camera-controlled exploration and revisits.*
|
| 64 |
+
|
| 65 |
+
## Checkpoints
|
| 66 |
+
|
| 67 |
+
This repository provides both adaptation-stage checkpoints and the supporting inference assets.
|
| 68 |
+
|
| 69 |
+
| File | Contents | Size |
|
| 70 |
+
| --- | --- | --- |
|
| 71 |
+
| [`stage1_step_4000.pt`](./stage1_step_4000.pt) | Stage-1 memory-conditioning side branch | 5.58 GB |
|
| 72 |
+
| [`stage2_step_8000.pt`](./stage2_step_8000.pt) | Final adapted transformer and frozen memory-conditioning side branch | 12.81 GB |
|
| 73 |
+
| [`wan_latent_stats.pt`](./wan_latent_stats.pt) | Latent channel statistics for memory fusion | |
|
| 74 |
+
| [`empty-text-bundle.pt`](./empty-text-bundle.pt) | Empty-text conditioning embedding | |
|
| 75 |
+
| [`training/manifest.json`](./training/manifest.json) | Training manifest associated with the checkpoints | |
|
| 76 |
+
| [`assets.example.json`](./assets.example.json) | Asset-path configuration | |
|
| 77 |
+
| [`SHA256SUMS`](./SHA256SUMS) | SHA256 checksums | |
|
| 78 |
+
|
| 79 |
+
Adaptation uses **256 training scenes** and **2,304 windows**. Stage 1 trains the side branch for 4,000 updates. Stage 2 freezes the side branch and adapts the full video transformer for 8,000 updates.
|
| 80 |
+
|
| 81 |
+
## Download and use
|
| 82 |
+
|
| 83 |
+
Authenticate with an account that has access to the repository, then download the files:
|
| 84 |
+
|
| 85 |
+
```bash
|
| 86 |
+
pip install -U huggingface_hub
|
| 87 |
+
hf auth login
|
| 88 |
+
hf download Mousky/ENGRAM --local-dir checkpoints/ENGRAM
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
Run inference from the ENGRAM source release using `run.py`. Obtain the upstream [Wan2.2-TI2V-5B Diffusers model](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers), [MapAnything](https://github.com/facebookresearch/map-anything), and the required Torch cache. Copy `assets.example.json` to `assets.local.json` in the downloaded directory and set the external model and evaluation-data paths.
|
| 92 |
+
|
| 93 |
+
```bash
|
| 94 |
+
python run.py check-assets \
|
| 95 |
+
--assets checkpoints/ENGRAM/assets.local.json \
|
| 96 |
+
--for-action infer-re10k
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
Keep both checkpoints and `training/manifest.json` in place for the current release loader. Paths in the asset configuration resolve relative to that JSON file. The evaluation recipe uses 33-frame chunks, a 32-frame stride, 40 sampling steps, and CFG 1. Follow the source release README for data preparation and the RealEstate10K and WorldScore inference commands.
|
| 100 |
+
|
| 101 |
+
## License
|
| 102 |
+
|
| 103 |
+
ENGRAM source code uses the [MIT License](./LICENSE-CODE). The checkpoints adapt Wan2.2; its upstream [Apache-2.0 license](./LICENSE-Wan2.2.txt) continues to apply. Upstream models and datasets are obtained separately from their providers.
|
| 104 |
+
|
| 105 |
+
## Citation
|
| 106 |
+
|
| 107 |
+
```bibtex
|
| 108 |
+
@misc{wu2026engram,
|
| 109 |
+
title = {{ENGRAM}: Reliability-Weighted Latent Fusion and Occlusion-Aware Layered Readout for Video World Models},
|
| 110 |
+
author = {Chenhao Wu and Zhaolong Su and Yang Liu and Tianrui Su and Yingguang Yang and Shang Luo and Yancheng Chen and Chongyang Zhang and Hao Zheng and Kefu Xu and Congjing Ran and Bin Chong},
|
| 111 |
+
year = {2026}
|
| 112 |
+
}
|
| 113 |
+
```
|
SHA256SUMS
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
-
4c85366ab012e579d22009557837cb8a1f7ea926b8fa45da26c77e37e0d1893e CITATION.cff
|
| 2 |
-
d926ebb3c74a4ab3732882d81cf9a2c40c973fbf9b0eec50f2c3791d7eddefeb LICENSE-CODE
|
| 3 |
-
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE-Wan2.2.txt
|
| 4 |
-
176079a87fd9f8cf03120cebb3030f3eeb818de5f51cbac304dc956218b94e90 README.md
|
| 5 |
-
0b9a37e596e24bf52cd593329694f24ef6f27a567cdf40201db7cedc5ec32ce2 assets.example.json
|
| 6 |
0eb450dbac13f77bacb94aa11d3e93357e1563f8913f340a4de4cdf68a32cc13 empty-text-bundle.pt
|
| 7 |
-
9e1e085e0883eaf299269c49a3a75966987bf0bc49576903abbb5f8bb1304cb9 stage1_step_4000.pt
|
| 8 |
-
0df7462103bba3827f82a0aa1a4d2550a41b641b26c4673f9bcd98f283f749d5 stage2_step_8000.pt
|
| 9 |
9d0704a3516643765b885d540ac9875ba4c023fc600c03d96251d5c5f79c76fb training/manifest.json
|
| 10 |
1c181ce745b69b1923a07b6ec8756d28e1cf561265fd8efb5960603d7f995814 wan_latent_stats.pt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
0eb450dbac13f77bacb94aa11d3e93357e1563f8913f340a4de4cdf68a32cc13 empty-text-bundle.pt
|
|
|
|
|
|
|
| 2 |
9d0704a3516643765b885d540ac9875ba4c023fc600c03d96251d5c5f79c76fb training/manifest.json
|
| 3 |
1c181ce745b69b1923a07b6ec8756d28e1cf561265fd8efb5960603d7f995814 wan_latent_stats.pt
|
| 4 |
+
9e1e085e0883eaf299269c49a3a75966987bf0bc49576903abbb5f8bb1304cb9 stage1_step_4000.pt
|
| 5 |
+
0df7462103bba3827f82a0aa1a4d2550a41b641b26c4673f9bcd98f283f749d5 stage2_step_8000.pt
|
| 6 |
+
0b9a37e596e24bf52cd593329694f24ef6f27a567cdf40201db7cedc5ec32ce2 assets.example.json
|
| 7 |
+
4c85366ab012e579d22009557837cb8a1f7ea926b8fa45da26c77e37e0d1893e CITATION.cff
|
| 8 |
+
d926ebb3c74a4ab3732882d81cf9a2c40c973fbf9b0eec50f2c3791d7eddefeb LICENSE-CODE
|
| 9 |
+
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE-Wan2.2.txt
|
| 10 |
+
f2760c68b79feb3eeb330a418b5ea77051af88ca3200caf6a132b04de1d038d2 README.md
|
| 11 |
+
f492cc805ec2b48a949d41c4f32c946751473ce90aac2d57760a66ce267f3800 teaser.png
|
teaser.png
ADDED
|
Git LFS Details
|