Views
No views yet
| File | What it is |
|---|---|
model.pt | Trained Video-Mirai foresight checkpoint (chunk-wise Causal-Forcing + DMD + foresight loss). Contains the student generator, EMA weights, and trainer state. Pass to inference.py via --checkpoint_path. |
1# 1. Clone the code repo
2git clone https://github.com/y0urOy/Video-Mirai.git
3cd Video-Mirai
4pip install -r requirements.txt
5
6# 2. Download the Wan2.1 backbone (required by the model)
7hf download Wan-AI/Wan2.1-T2V-1.3B --local-dir wan_models/Wan2.1-T2V-1.3B
8hf download Wan-AI/Wan2.1-T2V-14B --local-dir wan_models/Wan2.1-T2V-14B
9
10# 3. Download this checkpoint
11hf download y0urOy/Video-Mirai model.pt --local-dir checkpoints
12
13# 4. Run inference
14CKPT=checkpoints/model.pt bash scripts/inference.shtorch.load:1import torch
2state_dict = torch.load("checkpoints/model.pt", map_location="cpu")
3# Keys: 'generator' (student weights), 'generator_ema' (EMA weights), and optimizer/scheduler state.
4# inference.py picks 'generator_ema' when launched with --use_ema, otherwise 'generator'.inference.py and scripts/inference.sh for the full inference entry point.1@article{yu2026videomirai,
2 title={Video-Mirai: Autoregressive Video Diffusion Models Need Foresight},
3 author={Yu, Yonghao and Huang, Lang and Li, Runyi and Wang, Zerun and Yamasaki, Toshihiko},
4 journal={arXiv preprint arXiv:2606.03971},
5 year={2026}
6}