Mousky commited on
Commit
18dea3f
·
verified ·
1 Parent(s): 7be5b59

Refresh ENGRAM model card and add manuscript teaser

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +113 -79
  3. SHA256SUMS +8 -7
  4. 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
- tags:
5
- - video-generation
6
- - image-to-video
7
- - world-model
8
- - spatial-memory
9
- base_model: Wan-AI/Wan2.2-TI2V-5B-Diffusers
10
- ---
11
-
12
- # ENGRAM
13
-
14
- **Reliability-Weighted Latent Fusion and Occlusion-Aware Layered Readout for Video World Models**
15
-
16
- Chenhao Wu, Zhaolong Su, Yang Liu, Tianrui Su, Yingguang Yang, Shang Luo,
17
- Yancheng Chen, Chongyang Zhang, Hao Zheng, Kefu Xu, Congjing Ran, and Bin Chong.
18
-
19
- ENGRAM generates videos from an input image along camera trajectories. Persistent latent
20
- spatial memory combines reliability-weighted latent fusion, occlusion-aware layered
21
- readout, and generated-history writeback.
22
-
23
- ## Model files
24
-
25
- | File | Contents |
26
- | --- | --- |
27
- | `stage2_step_8000.pt` | Final Stage-2 checkpoint: adapted Wan transformer and frozen side branch |
28
- | `stage1_step_4000.pt` | Stage-1 checkpoint, also required by the release loader's integrity check |
29
- | `wan_latent_stats.pt` | Latent channel statistics used by memory fusion |
30
- | `empty-text-bundle.pt` | Empty-text conditioning embedding |
31
- | `training/manifest.json` | Exact training manifest required by the checkpoint contract |
32
- | `assets.example.json` | Portable asset-path configuration for the ENGRAM release |
33
- | `SHA256SUMS` | File checksums |
34
-
35
- The model uses Wan2.2-TI2V-5B. Stage 1 trains the side branch for 4,000 updates;
36
- Stage 2 adapts the full transformer for 8,000 updates while freezing the branch.
37
- Both stages use 256 scenes and 2,304 training windows.
38
-
39
- ## Download and use
40
-
41
- ```python
42
- from huggingface_hub import snapshot_download
43
-
44
- snapshot_download(repo_id="Mousky/ENGRAM", local_dir="checkpoints/ENGRAM")
45
- ```
46
-
47
- For this private repository, first authenticate with an account that has access.
48
- Use the ENGRAM release entrypoint `run.py`, rather than loading this checkpoint as a
49
- standalone Diffusers pipeline. Install the dependencies from the source release and
50
- obtain the upstream Wan2.2-TI2V-5B Diffusers model, MapAnything, and required Torch cache.
51
- Edit `assets.example.json` to point to those assets and your evaluation data.
52
- Relative paths resolve against the configuration file's directory.
53
-
54
- ```bash
55
- python run.py check-assets --assets /path/to/ENGRAM/assets.example.json --for-action infer-re10k
56
- ```
57
-
58
- Keep both checkpoint files and `training/manifest.json` byte-for-byte unchanged:
59
- the loader verifies their hashes. The inference recipe uses 33-frame chunks with
60
- 32-frame stride, 40 sampling steps and CFG 1. Dataset preparation and camera inputs
61
- are described in the source release README.
62
-
63
- ## License and upstream components
64
-
65
- The ENGRAM source code uses the MIT License, reproduced in `LICENSE-CODE`.
66
- The checkpoints adapt Wan2.2, whose Apache-2.0 license is reproduced in
67
- `LICENSE-Wan2.2.txt`; upstream terms continue to apply.
68
- Wan2.2 base-model files, MapAnything weights, and datasets are distributed separately
69
- by their respective providers.
70
-
71
- ## Citation
72
-
73
- ```bibtex
74
- @misc{wu2026engram,
75
- title = {{ENGRAM}: Reliability-Weighted Latent Fusion and Occlusion-Aware Layered Readout for Video World Models},
76
- 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},
77
- year = {2026}
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>&nbsp;&nbsp;
20
+ Zhaolong Su<sup>2,*</sup>&nbsp;&nbsp;
21
+ Yang Liu<sup>3,*</sup>&nbsp;&nbsp;
22
+ Tianrui Su<sup>4</sup><br>
23
+ Yingguang Yang<sup>3</sup>&nbsp;&nbsp;
24
+ Shang Luo<sup>3</sup>&nbsp;&nbsp;
25
+ Yancheng Chen<sup>1</sup>&nbsp;&nbsp;
26
+ Chongyang Zhang<sup>5</sup><br>
27
+ Hao Zheng<sup>5</sup>&nbsp;&nbsp;
28
+ Kefu Xu<sup>3</sup>&nbsp;&nbsp;
29
+ Congjing Ran<sup>6</sup>&nbsp;&nbsp;
30
+ Bin Chong<sup>3,†</sup>
31
+ </p>
32
+
33
+ <p>
34
+ <sup>1</sup>University of the Chinese Academy of Sciences&nbsp;&nbsp;
35
+ <sup>2</sup>Jilin University&nbsp;&nbsp;
36
+ <sup>3</sup>Peking University<br>
37
+ <sup>4</sup>University of New South Wales&nbsp;&nbsp;
38
+ <sup>5</sup>Fullive-AI&nbsp;&nbsp;
39
+ <sup>6</sup>Wuhan University<br>
40
+ <small><sup>*</sup>Equal contribution.&nbsp;&nbsp;<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
+ &nbsp;
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

  • SHA256: f492cc805ec2b48a949d41c4f32c946751473ce90aac2d57760a66ce267f3800
  • Pointer size: 132 Bytes
  • Size of remote file: 4.94 MB