Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,77 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- video-frame-interpolation
|
| 7 |
+
- mobile-deployment
|
| 8 |
+
- npu
|
| 9 |
+
- int8-quantization
|
| 10 |
+
- codec-motion-vectors
|
| 11 |
+
library_name: pytorch
|
| 12 |
+
pipeline_tag: image-to-image
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# ANVIL — Accelerator-Native Video Interpolation
|
| 16 |
+
|
| 17 |
+
Pretrained weights and ONNX models for the ANVIL video frame interpolation system.
|
| 18 |
+
|
| 19 |
+
ANVIL achieves 1080p INT8 real-time frame interpolation on mobile NPUs by replacing learned optical flow with codec motion vector prealignment, producing an NPU-friendly inference graph dominated by standard convolutions.
|
| 20 |
+
|
| 21 |
+
## Models
|
| 22 |
+
|
| 23 |
+
| Model | Params | Vimeo90K PSNR | Xiph 1080p PSNR | HTP V75 INT8 (avg) |
|
| 24 |
+
|-------|-------:|:-------------:|:---------------:|:-------------------:|
|
| 25 |
+
| **ANVIL-S** | 855K | 33.45 dB | 29.65 dB | 12.8 ms |
|
| 26 |
+
| **ANVIL-M** | 2.66M | 33.66 dB | 29.74 dB | 16.7 ms |
|
| 27 |
+
| NAFNet-ceiling | 17.1M | 34.58 dB | 30.30 dB | — |
|
| 28 |
+
|
| 29 |
+
Capacity sweep models (D-tiny through D-unet-l, 1.8K–289K params) are included under `checkpoints_capacity/`.
|
| 30 |
+
|
| 31 |
+
## File Structure
|
| 32 |
+
|
| 33 |
+
```
|
| 34 |
+
checkpoints/
|
| 35 |
+
D-unet-v3bs-nomv/best.pt # ANVIL-S (10 MB)
|
| 36 |
+
D-unet-v3bm-nomv/best.pt # ANVIL-M (31 MB)
|
| 37 |
+
D-nafnet-nomv/best.pt # NAFNet ceiling (197 MB)
|
| 38 |
+
checkpoints_capacity/
|
| 39 |
+
D-tiny-nomv/best.pt # 1.8K params
|
| 40 |
+
D-mini-nomv/best.pt # 10.6K params
|
| 41 |
+
D-mid-nomv/best.pt # 33K params
|
| 42 |
+
D-unet-s-nomv/best.pt # 129K params
|
| 43 |
+
D-unet-l-nomv/best.pt # 289K params
|
| 44 |
+
onnx/
|
| 45 |
+
D_unet_v3bs_nomv_1080p.onnx # ANVIL-S 1080p (BN fused)
|
| 46 |
+
D_unet_v3bm_nomv_1080p.onnx # ANVIL-M 1080p (BN fused)
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
## Usage
|
| 50 |
+
|
| 51 |
+
```bash
|
| 52 |
+
# Download all weights into the ANVIL repo
|
| 53 |
+
git clone https://github.com/NihilDigit/anvil && cd anvil
|
| 54 |
+
pixi install
|
| 55 |
+
pixi run download-weights # downloads to artifacts/
|
| 56 |
+
|
| 57 |
+
# Evaluate
|
| 58 |
+
pixi run reproduce-main-quality
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
## Links
|
| 62 |
+
|
| 63 |
+
- **Paper repository**: [github.com/NihilDigit/anvil](https://github.com/NihilDigit/anvil)
|
| 64 |
+
- **Android demo**: [github.com/NihilDigit/mpv-android-anvil](https://github.com/NihilDigit/mpv-android-anvil)
|
| 65 |
+
|
| 66 |
+
## Citation
|
| 67 |
+
|
| 68 |
+
```bibtex
|
| 69 |
+
@article{anvil2026,
|
| 70 |
+
title={ANVIL: Accelerator-Native Video Interpolation via Codec Motion Vector Prealignment},
|
| 71 |
+
year={2026}
|
| 72 |
+
}
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## License
|
| 76 |
+
|
| 77 |
+
MIT
|