deep-fryn papillon99 commited on
Commit
a6052d0
·
0 Parent(s):

Initial release of Active Vision Transformers (aViT) checkpoints

Browse files

Co-authored-by: papillon99 <papillon99@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: backbone-specific
4
+ tags:
5
+ - vision
6
+ - vision-transformer
7
+ - active-vision
8
+ - foveation
9
+ - dinov3
10
+ - dinov2
11
+ - ibot
12
+ - c-radio
13
+ - vggt-omega
14
+ ---
15
+
16
+ # Active Vision Transformers
17
+
18
+ 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
19
+ each glimpse. You can train one from scratch, or start from a pretrained ViT backbone. We also recommend applying LoRA
20
+ instead of doing end-to-end fine-tuning.
21
+
22
+ [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)
23
+
24
+ Each `.pt` file is an exported inference file (`export.py`). It contains the memory model, the fine-tuned encoder and the
25
+ standardisation statistics, so `avit.load` reads it without a separate statistics file.
26
+
27
+ ## Models
28
+
29
+ | File | Backbone | Frame (canvas) | Passes | Steps | Notes | Licence |
30
+ |---|---|---|---:|---:|---|---|
31
+ | `avit_dinov3_vitb16_512.pt` | `dinov3_vitb16` | 512 px (32 x 32) | 1 | 100k | default model | DINOv3 License (Meta) |
32
+ | `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) |
33
+ | `avit_dinov3_vitb16_720.pt` | `dinov3_vitb16` | 720 px (45 x 45) | 1 | 100k | 720 px frame | DINOv3 License (Meta) |
34
+ | `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) |
35
+ | `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) |
36
+ | `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 |
37
+ | `avit_cradio_v3_b_512.pt` | `cradio_v3_b` | 512 px (32 x 32) | 3 | 110k | C-RADIOv3-B | NVIDIA Open Model License |
38
+ | `avit_ibot_vitb16_512.pt` | `ibot_vitb16` | 512 px (32 x 32) | 3 | 110k | iBOT ViT-B/16 (ImageNet-1K) | Apache 2.0 |
39
+ | `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 |
40
+ | `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 |
41
+ | `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 |
42
+
43
+ Models were trained on video frames from SA-V, except the two `egomix` VGGT-Ω checkpoints which mix SA-V and Ego-Exo4D
44
+ (50/50). `Passes` is the default number of read-write loops per glimpse for that model (`model.passes` can be changed after
45
+ loading). 1 works better in many cases.
46
+
47
+ ## Running a model
48
+
49
+ Install the `avit` package from [github.com/nmjfry/active-vision-transformers](https://github.com/nmjfry/active-vision-transformers), then:
50
+
51
+ ```python
52
+ from huggingface_hub import hf_hub_download
53
+ import avit
54
+
55
+ ckpt = hf_hub_download("Small-ML/aViT", "avit_dinov3_vitb16_512.pt")
56
+ model = avit.load(ckpt)
57
+ scene = avit.scene_from_image("photo.jpg", model.frame) # (3, 512, 512) uint8
58
+ out = model.run(scene, fixations=[(256, 256), (100, 400)]) # two glimpses, (x, y) in pixels
59
+ out["features"] # (1, 2, 32, 32, 768): the predicted feature map after each glimpse
60
+ nxt = model.run(next_frame, fixations=[(300, 200)], canvas=out["last"]) # keep the memory for the next frame
61
+ ```
62
+
63
+ See the repository's `README.md` for glimpses with several fixations, custom boxes, zoom and CLS outputs.
64
+
65
+ ## Licences
66
+
67
+ Each model starts from the pretrained weights of its backbone, so the licence of those weights also applies to the trained
68
+ checkpoint:
69
+
70
+ - **DINOv3 models (`avit_dinov3_*`):** Meta's DINOv3 License (`facebook/dinov3-vitb16-pretrain-lvd1689m`).
71
+ - **DINOv2 and iBOT models (`avit_dinov2_*`, `avit_ibot_*`):** Apache 2.0.
72
+ - **C-RADIOv3 model (`avit_cradio_v3_*`):** NVIDIA Open Model License (`nvidia/C-RADIOv3-B`).
73
+ - **VGGT-Ω models (`avit_vggt_omega_enc_*`):** FAIR Noncommercial Research License (`facebook/VGGT-Omega`).
74
+
75
+ See `NOTICE.md` in the repository for the third-party code, weights and data.
76
+
77
+ ## Citation
78
+
79
+ ```bibtex
80
+ @article{fry2026active,
81
+ title={Active Vision Transformers},
82
+ author={Fry, Nicholas and Kim, Shinjeong and Lewandowski, Maciej and Taher, Marwan and Dudek, Piotr and Kelly, Paul H. J. and Davison, Andrew J.},
83
+ journal={arXiv preprint arXiv:2611.39952},
84
+ year={2026}
85
+ }
86
+ ```
avit_cradio_v3_b_512.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d7607fa9b0037baa20d6f7392b2a47f852b11355ba24c738f177f1c4cba55f9
3
+ size 468183478
avit_dinov2_vitb14_reg_512.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17c77b33f9488a873538b1cbd8bf01803e6df726ccc4caae47f25e44b61404e2
3
+ size 421520954
avit_dinov3_vitb16_512.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a1260cbf2992d2aab4d5b129b234cff9a9e230a26b738731febff6d7a9bdd84
3
+ size 417791704
avit_dinov3_vitb16_512_cls.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1c0fd1e59b3712c260cd4f8905366831dc09bcc0c52e6e1c8272e189c85a3f6
3
+ size 436721708
avit_dinov3_vitb16_720.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b377da6da613d5bedab86339256d675bfa972ee676d932c2dd3634abdbd1191f
3
+ size 423959336
avit_dinov3_vitb16_720_levelsets.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd6a6304af88fa69a1ceea1f76c9ea33eab9c3add2501029455453c536370b61
3
+ size 423962258
avit_dinov3_vitb16_720_multifovea.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac453a607cc67c13106671cf899da0e6f6a5e441cd3c192f3e26f5f61f1c4a60
3
+ size 423962531
avit_ibot_vitb16_512.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7672341b19725f2b1ebc8186ba01d48b11ef71ba0876cf53897c6ac07fa13d9
3
+ size 418365154
avit_vggt_omega_enc_512.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3646ab4085bbd64a889ced6adfd02849cb0c4fc58c233f25b90107edce722ec
3
+ size 1343230973
avit_vggt_omega_enc_512_egomix.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3932cfafaa6a2dfd1142a185bbd5b66031aaee891c8a9ea3a098806575ea7209
3
+ size 1343234390
avit_vggt_omega_enc_512_egomix_multifovea.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1c6b61198076174e15fe1028460b85374ba829baa7bfd9e397840608a809076
3
+ size 1343223787