Skip to main content

CanViT (Canvas Vision Transformer) -- PyTorch

Project description

CanViT (Canvas Vision Transformer) -- PyTorch

Reference PyTorch implementation of CanViT (Canvas Vision Transformer).

This is an early release. For details, a preprint version of our manuscript "CanViT: Toward Active Vision Foundation Models" will be available in the coming weeks.


CanViT is a scalable recurrent architecture for fine-grained vision, and the first Active Vision Foundation Model (AVFM): a foundation model for active vision that is both task-agnostic and policy-agnostic.

CanViT processes scenes through sequences of localized glimpses, integrating observations over time into a persistent scene-wide latent workspace — the canvas — via Canvas Attention, an efficient asymmetric cross-attention mechanism which is based on Scene-Relative Rotary Position Embeddings and eliminates canvas-side QKVO projections.

CanViT-B is pretrained on 1 billion glimpses taken from 13.5 million ImageNet-21k scenes, via passive-to-active dense distillation from a frozen DINOv3 ViT-B teacher, without human annotations.

Quickstart

uv run demos/basic.py

Pretrained checkpoints

We release checkpoints on HuggingFace under the canvit namespace.

The following checkpoints are currently available:

Citation

If you use this work, please cite this repository. An updated citation will be available upon preprint release.

@misc{berreby2026canvit,
  title={CanViT: Toward Active Vision Foundation Models},
  author={Berreby, Yoha{\"i}-Eliel and Du, Sabrina and Durand, Audrey and Krishna, Suresh},
  year={2026},
  howpublished={\url{https://github.com/m2b3/CanViT-PyTorch}}
}

License

MIT. See LICENSE.md for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

canvit_pytorch-0.1.0.tar.gz (428.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

canvit_pytorch-0.1.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file canvit_pytorch-0.1.0.tar.gz.

File metadata

  • Download URL: canvit_pytorch-0.1.0.tar.gz
  • Upload date:
  • Size: 428.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for canvit_pytorch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 336fd4aa29919925da4ec8ef211b3fda40dd396b45665a60a23e96c805893c98
MD5 6dfa1f8be39e8e8242e639c7b89a70e6
BLAKE2b-256 1b676b11cd21ce000fa4b89198bf63a6edcb9dfda96ad74a067803be695b70a0

See more details on using hashes here.

File details

Details for the file canvit_pytorch-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: canvit_pytorch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for canvit_pytorch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a2992eafacfcd1e6aa98f4cf87e80725c1aacf8551dbe78009c9db72b7aaab2
MD5 e0882cd53979b6cd494dd18256acd926
BLAKE2b-256 6c9f195271b3e5d17edd4af48de5284b26a63966ce3e375fcf207c61e79e47ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page