ADE20K probe on the architecture control's CanViT-B, 32 × 32 canvas (JAX / Flax NNX)

A linear ADE20K semantic segmentation probe on the 32 × 32 canvas of the architecture control's CanViT-B (canvit/canvitb16-add-vpe-pretrain-g128px-s512px-in1k-dv3b16-archctrl-2026-07-26-nnx), trained on frozen features.

CanViT, the Canvas Vision Transformer, is an active-vision foundation model: it sees a scene through a sequence of glimpses and remembers it on a scene-wide canvas.

Paper (NeurIPS 2026) · arXiv · Code · Project page · All checkpoints

Install

uv add canvit-nnx

Usage

import jax.numpy as jnp
from PIL import Image

from canvit_nnx import CanViTForSemanticSegmentation, Viewpoint, sample_at_viewpoint
from canvit_nnx.preprocess import preprocess

scene = jnp.asarray(preprocess(512)(Image.open("scene.jpg").convert("RGB")))[None]
model = CanViTForSemanticSegmentation.from_pretrained_with_probe(
    pretrained_repo="canvit/canvitb16-add-vpe-pretrain-g128px-s512px-in1k-dv3b16-archctrl-2026-07-26-nnx",
    probe_repo="canvit/probe-ade20k-40k-s512-c32-archctrl-nnx",
)
model.eval()
state = model.init_state(batch_size=1, canvas_grid_size=32)
viewpoint = Viewpoint.full_scene(batch_size=1)
glimpse = sample_at_viewpoint(spatial=scene, viewpoint=viewpoint, glimpse_size_px=128)
logits, state = model(glimpse=glimpse, state=state, viewpoint=viewpoint)  # [1, 32, 32, 150]

Results

ADE20K mIoU (%) on the validation set, EG-C2F viewpoints (deterministic), 512 px scenes, 32 × 32 canvas, after each glimpse, as evaluated by the code that trained the probe:

t = 0 26.86
t = 1 30.52
t = 2 32.77
t = 3 33.69

The paper prints these values in the CanViT-B column of its table "Architecture control: ADE20K mIoU (%) against cumulative forward inference FLOPs" (appendix "Architecture control"). The released canvit-pytorch evaluator, on these weights mapped to PyTorch, in float32 on CPU, gives 26.84, 30.46, 32.73, 33.68 (provenance.json).

Details

Backend JAX / Flax NNX
Model class SegmentationProbe
CanViT checkpoint canvit/canvitb16-add-vpe-pretrain-g128px-s512px-in1k-dv3b16-archctrl-2026-07-26-nnx
Classes 150
Probe LayerNorm, dropout, BatchNorm, 1 × 1 convolution
Training rollouts 4 glimpses of 128 px, R-IID viewpoints, 512 px scenes
Training steps 40,000, batch size 16; the released weights are the last step's
Conversion from the JAX checkpoint of the run; checked with the arm (see its card)

License

MIT. CanViT is pretrained by distillation from DINOv3, which is released under the DINOv3 License.

Citation

@inproceedings{berreby2026canvit,
  title={{CanViT}: Toward Active-Vision Foundation Models},
  author={Berreby, Yoha{\"i}-Eliel and Du, Sabrina and Durand, Audrey and Krishna, B. Suresh},
  booktitle={The Fortieth Annual Conference on Neural Information Processing Systems},
  year={2026},
  url={https://openreview.net/forum?id=cnV9GA4pKU},
  eprint={2603.22570},
  archivePrefix={arXiv},
  primaryClass={cs.CV}
}
Downloads last month
101
Safetensors
Model size
160k params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for canvit/probe-ade20k-40k-s512-c32-archctrl-nnx

Dataset used to train canvit/probe-ade20k-40k-s512-c32-archctrl-nnx

Paper for canvit/probe-ade20k-40k-s512-c32-archctrl-nnx