|
Download README.md from Small-ML/aViT: direct link, hf CLI and curl.
- Browser
- Download file 4.81 kB
-
https://huggingface.co/Small-ML/aViT/resolve/main/README.md
- Command line
-
hf download hf://Small-ML/aViT/README.md
-
curl -L -o README.md https://huggingface.co/Small-ML/aViT/resolve/main/README.md
4.81 kB
| 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} | |
| } | |
| ``` | |