larry077 commited on
Commit
6f9fdbe
·
verified ·
1 Parent(s): ad6c22b

Refresh model card with project page, method and usage

Browse files
Files changed (2) hide show
  1. README.md +99 -14
  2. checksums.json +2 -2
README.md CHANGED
@@ -1,31 +1,116 @@
1
  ---
2
  license: apache-2.0
3
  base_model: Wan-AI/Wan2.2-TI2V-5B
 
4
  library_name: pytorch
 
 
 
5
  tags:
6
  - video-generation
7
  - video-to-video
8
  - world-model
 
 
9
  - reentrymem
10
  ---
11
 
12
- # ReentryMem
13
 
14
- Inference checkpoint for **Out of View, Still in Motion: Dynamic Entity Re-entry in Video World Models**.
 
 
15
 
16
- Inference code: [Larry-077/ReentryMem](https://github.com/Larry-077/ReentryMem).
 
 
 
 
17
 
18
- This bundle contains the merged BF16 DiT and camera-conditioning parameters at step 1496.
19
- Variant: `single-entity`. It contains no optimizer state or training dataset.
20
- The Wan2.2 text encoder, tokenizer and VAE are downloaded separately from the base model.
21
 
22
- Use the accompanying ReentryMem inference repository. This is a custom camera-conditioned
23
- model, not an unmodified Diffusers video pipeline. `localized` and `euler` use the same weights;
24
- `localized` enables calibrated entity-region sampling. Default generation uses 77 observed
25
- and 76 future RGB frames, 832x480, 15fps, 50 steps and CFG5. It requires no future RGB or masks.
26
 
27
- This bundle uses the `single-entity` checkpoint for the paper's virtual-scene re-entry task.
28
- This is the complete trained transformer with camera-conditioning parameters.
29
- Use one entity phrase from the caption with the single-entity model.
30
 
31
- Files are verified by `checksums.json`. See `LICENSE` and `NOTICE` for upstream attribution.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  base_model: Wan-AI/Wan2.2-TI2V-5B
4
+ base_model_relation: finetune
5
  library_name: pytorch
6
+ language:
7
+ - en
8
+ thumbnail: https://reentrymem-project.pages.dev/media/reentrymem-final.jpg
9
  tags:
10
  - video-generation
11
  - video-to-video
12
  - world-model
13
+ - camera-control
14
+ - entity-reentry
15
  - reentrymem
16
  ---
17
 
18
+ <h1 align="center">ReentryMem</h1>
19
 
20
+ <p align="center">
21
+ <strong>Out of View, Still in Motion:<br>Dynamic Entity Re-entry in Video World Models</strong>
22
+ </p>
23
 
24
+ <p align="center">
25
+ <a href="https://reentrymem-project.pages.dev/">🌐 Project Page</a> &nbsp;|&nbsp;
26
+ <a href="https://github.com/Larry-077/ReentryMem">💻 Code</a> &nbsp;|&nbsp;
27
+ <a href="https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B">Base Model</a>
28
+ </p>
29
 
30
+ ReentryMem addresses **dynamic entity re-entry** in camera-controlled video world models: recovering a moving subject after it leaves the field of view and later returns. It reads entity presence and spatial regions from text cross-attention on noisy video latents. The shared readout guides entity-weighted flow-matching training and localized overshooting with re-noising during inference.
 
 
31
 
32
+ <video controls playsinline preload="none" width="100%" poster="https://reentrymem-project.pages.dev/media/reentrymem-final.jpg" src="https://reentrymem-project.pages.dev/media/reentrymem-final.mp4"></video>
 
 
 
33
 
34
+ Explore the [project page](https://reentrymem-project.pages.dev/) for synchronized video comparisons, the method, and more qualitative results.
 
 
35
 
36
+ ## Model Overview
37
+
38
+ | Property | Specification |
39
+ |---|---|
40
+ | Released variant | single-entity |
41
+ | Base model | [Wan2.2-TI2V-5B](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B) |
42
+ | Parameters | 5.01B |
43
+ | Weights | Complete merged DiT with camera-conditioning parameters |
44
+ | Precision | BF16 |
45
+ | Training checkpoint | Step 1496 |
46
+ | Inputs | Observed video, caption, subject phrase, and planned camera controls |
47
+ | Continuation | 76 frames at 832×480, 15 fps |
48
+
49
+ The single-entity checkpoint was fine-tuned using entity-weighted flow matching with internally predicted entity regions. The released transformer is accompanied by the calibrated region settings and inference defaults. Its tokenizer, UMT5 text encoder, and VAE are obtained separately from Wan2.2.
50
+
51
+ ## How ReentryMem Works
52
+
53
+ ![ReentryMem method overview](https://reentrymem-project.pages.dev/media/figure-method.png)
54
+
55
+ - **Localize during denoising.** Selected cross-attention heads estimate entity presence and shape directly from noisy latents.
56
+ - **Emphasize entity supervision.** The predicted regions weight the flow-matching objective during training.
57
+ - **Correct the entity region.** At inference, localized overshooting and re-noising use the same region readout; other positions retain the Euler update.
58
+
59
+ `localized` and `euler` are two sampling choices for this **same checkpoint**. The former is the full ReentryMem inference configuration; the latter corresponds to ReentryMem-Train in the controlled comparison.
60
+
61
+ ## Getting Started
62
+
63
+ Use the [ReentryMem inference repository](https://github.com/Larry-077/ReentryMem) with Python 3.10 or later and CUDA-enabled PyTorch:
64
+
65
+ ```bash
66
+ git clone https://github.com/Larry-077/ReentryMem.git
67
+ cd ReentryMem
68
+ conda create -n reentrymem python=3.11 -y
69
+ conda activate reentrymem
70
+ pip install -r requirements.txt
71
+
72
+ python tools/download_models.py \
73
+ --repo-id larry077/ReentryMem \
74
+ --checkpoint-dir checkpoints/ReentryMem
75
+ ```
76
+
77
+ Prepare a 77-frame observed video at 15 fps. The subject phrase must appear in the caption:
78
+
79
+ ```bash
80
+ python tools/create_case.py \
81
+ --video /path/to/observed.mp4 \
82
+ --prompt "A girl walks through a stylized town." \
83
+ --subjects "girl" \
84
+ --preset turn-return \
85
+ --output examples/case.json
86
+
87
+ python infer.py \
88
+ --case examples/case.json \
89
+ --checkpoint checkpoints/ReentryMem \
90
+ --base-model pretrained/Wan2.2-TI2V-5B \
91
+ --output-dir outputs/demo
92
+ ```
93
+
94
+ The default uses localized sampling, 50 steps, CFG 5, sigma shift 5, and correction strength 8. Add `--sampler euler` for ordinary sampling or `--save-masks` to save entity-region fields. The output includes the complete video, the generated continuation, and a settings receipt. See the [code documentation](https://github.com/Larry-077/ReentryMem) for camera inputs and additional options.
95
+
96
+ ## Evaluation
97
+
98
+ The controlled comparison reported on the [project page](https://reentrymem-project.pages.dev/#comparisons) is:
99
+
100
+ | Method | Rea-Score (%) ↑ | SC ↑ | TCM ↑ |
101
+ |---|---:|---:|---:|
102
+ | Baseline | 96.1 | 0.8204 | 0.9154 |
103
+ | ReentryMem-Train | 99.2 | 0.8380 | 0.9231 |
104
+ | **ReentryMem** | 97.2 | 0.8378 | 0.9318 |
105
+
106
+ The protocol separately reports entity reappearance, subject consistency, and temporal consistency match. Refer to the project page for the full comparisons and qualitative examples.
107
+
108
+ ## Usage Notes
109
+
110
+ This release targets single-entity re-entry with the stated observed/future clip lengths and camera controls. Use the custom ReentryMem inference implementation to load the camera-conditioned transformer. GPU memory use depends on the attention backend and runtime settings.
111
+
112
+ The research results above come from the project's evaluation runs. The standalone package has passed CPU tests, strict full-weight loading, and a small forward check with synthetic text features; full-resolution CUDA generation has not yet been re-run for this package. Validation details accompany the [code release](https://github.com/Larry-077/ReentryMem).
113
+
114
+ ## License and Acknowledgments
115
+
116
+ The released weights and inference code use [Apache-2.0](https://huggingface.co/larry077/ReentryMem/blob/main/LICENSE). ReentryMem builds on [Wan2.2](https://github.com/Wan-Video/Wan2.2) and [BiWM](https://github.com/LynnReal-AI/BiWM). See [NOTICE](https://huggingface.co/larry077/ReentryMem/blob/main/NOTICE) for upstream attribution and sampling provenance.
checksums.json CHANGED
@@ -10,8 +10,8 @@
10
  "sha256": "d5b013a4561d1dd1b194840ca232dd46293c155ff4e75699c5f13d50e27c5bb8"
11
  },
12
  "README.md": {
13
- "bytes": 1326,
14
- "sha256": "4e7bb915f4fac0487936df1ed924e59aa0f41a470d84ee768f77eb4e748af2b8"
15
  },
16
  "config.json": {
17
  "bytes": 297,
 
10
  "sha256": "d5b013a4561d1dd1b194840ca232dd46293c155ff4e75699c5f13d50e27c5bb8"
11
  },
12
  "README.md": {
13
+ "bytes": 5817,
14
+ "sha256": "fb0460dda7de48b70e38bb39bfed1ad88e289a8a78347711583f9f76ea26abaa"
15
  },
16
  "config.json": {
17
  "bytes": 297,