File size: 4,813 Bytes
a6052d0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
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
80
81
82
83
84
85
86
87
---
license: other
license_name: backbone-specific
tags:
  - vision
  - vision-transformer
  - active-vision
  - foveation
  - dinov3
  - dinov2
  - ibot
  - c-radio
  - vggt-omega
---

# Active Vision Transformers

Pretrained models for [Active Vision Transformers](https://github.com/nmjfry/active-vision-transformers) (aViT). An active vision transformer accumulates information through a sequence of foveated glimpses, and updates a memory after
each glimpse. You can train one from scratch, or start from a pretrained ViT backbone. We also recommend applying LoRA
instead of doing end-to-end fine-tuning.

[Paper](https://arxiv.org/abs/2611.39952) | [Video](https://youtu.be/8SmHFj2sOOQ) | [Project Page](https://www.shinjeongkim.com/avit/) | [Code](https://github.com/nmjfry/active-vision-transformers)

Each `.pt` file is an exported inference file (`export.py`). It contains the memory model, the fine-tuned encoder and the
standardisation statistics, so `avit.load` reads it without a separate statistics file.

## Models

| File | Backbone | Frame (canvas) | Passes | Steps | Notes | Licence |
|---|---|---|---:|---:|---|---|
| `avit_dinov3_vitb16_512.pt` | `dinov3_vitb16` | 512 px (32 x 32) | 1 | 100k | default model | DINOv3 License (Meta) |
| `avit_dinov3_vitb16_512_cls.pt` | `dinov3_vitb16` | 512 px (32 x 32) | 1 | 150k + 4k | also predicts the CLS token (`out["cls"]`) | DINOv3 License (Meta) |
| `avit_dinov3_vitb16_720.pt` | `dinov3_vitb16` | 720 px (45 x 45) | 1 | 100k | 720 px frame | DINOv3 License (Meta) |
| `avit_dinov3_vitb16_720_multifovea.pt` | `dinov3_vitb16` | 720 px (45 x 45) | 1 | 100k + 15k | fine-tuned on glimpses with several fixations | DINOv3 License (Meta) |
| `avit_dinov3_vitb16_720_levelsets.pt` | `dinov3_vitb16` | 720 px (45 x 45) | 1 | 100k + 15k | fine-tuned on several fixations and level sets | DINOv3 License (Meta) |
| `avit_dinov2_vitb14_reg_512.pt` | `dinov2_vitb14_reg` | 512 px (32 x 32) | 3 | 110k | DINOv2 ViT-B/14 with registers | Apache 2.0 |
| `avit_cradio_v3_b_512.pt` | `cradio_v3_b` | 512 px (32 x 32) | 3 | 110k | C-RADIOv3-B | NVIDIA Open Model License |
| `avit_ibot_vitb16_512.pt` | `ibot_vitb16` | 512 px (32 x 32) | 3 | 110k | iBOT ViT-B/16 (ImageNet-1K) | Apache 2.0 |
| `avit_vggt_omega_enc_512.pt` | `vggt_omega_enc` | 512 px (32 x 32) | 1 | 110k | VGGT-Ω encoder (DINOv3 ViT-L/16) | FAIR Noncommercial Research License |
| `avit_vggt_omega_enc_512_egomix.pt` | `vggt_omega_enc` | 512 px (32 x 32) | 1 | 110k | VGGT-Ω encoder, trained on SA-V + Ego-Exo4D (50/50) | FAIR Noncommercial Research License |
| `avit_vggt_omega_enc_512_egomix_multifovea.pt` | `vggt_omega_enc` | 512 px (32 x 32) | 1 | 110k + 20k | above, fine-tuned on several fixations (`tile64`); used in the live phone demo | FAIR Noncommercial Research License |

Models were trained on video frames from SA-V, except the two `egomix` VGGT-Ω checkpoints which mix SA-V and Ego-Exo4D
(50/50). `Passes` is the default number of read-write loops per glimpse for that model (`model.passes` can be changed after
loading). 1 works better in many cases.

## Running a model

Install the `avit` package from [github.com/nmjfry/active-vision-transformers](https://github.com/nmjfry/active-vision-transformers), then:

```python
from huggingface_hub import hf_hub_download
import avit

ckpt = hf_hub_download("Small-ML/aViT", "avit_dinov3_vitb16_512.pt")
model = avit.load(ckpt)
scene = avit.scene_from_image("photo.jpg", model.frame)       # (3, 512, 512) uint8
out = model.run(scene, fixations=[(256, 256), (100, 400)])    # two glimpses, (x, y) in pixels
out["features"]   # (1, 2, 32, 32, 768): the predicted feature map after each glimpse
nxt = model.run(next_frame, fixations=[(300, 200)], canvas=out["last"])   # keep the memory for the next frame
```

See the repository's `README.md` for glimpses with several fixations, custom boxes, zoom and CLS outputs.

## Licences

Each model starts from the pretrained weights of its backbone, so the licence of those weights also applies to the trained
checkpoint:

- **DINOv3 models (`avit_dinov3_*`):** Meta's DINOv3 License (`facebook/dinov3-vitb16-pretrain-lvd1689m`).
- **DINOv2 and iBOT models (`avit_dinov2_*`, `avit_ibot_*`):** Apache 2.0.
- **C-RADIOv3 model (`avit_cradio_v3_*`):** NVIDIA Open Model License (`nvidia/C-RADIOv3-B`).
- **VGGT-Ω models (`avit_vggt_omega_enc_*`):** FAIR Noncommercial Research License (`facebook/VGGT-Omega`).

See `NOTICE.md` in the repository for the third-party code, weights and data.

## Citation

```bibtex
@article{fry2026active,
  title={Active Vision Transformers},
  author={Fry, Nicholas and Kim, Shinjeong and Lewandowski, Maciej and Taher, Marwan and Dudek, Piotr and Kelly, Paul H. J. and Davison, Andrew J.},
  journal={arXiv preprint arXiv:2611.39952},
  year={2026}
}
```