DINOv3 ADE20K Segmentation Probes (PyTorch)
Collection
14 items β’ Updated
Linear segmentation probe on the spatial features of facebook/dinov3-vitb16-pretrain-lvd1689m.
uv add "canvit-pytorch @ git+https://github.com/m2b3/CanViT-PyTorch.git"
import torch
from canvit_pytorch.probes import SegmentationProbe
probe = SegmentationProbe.from_pretrained("canvit/probe-ade20k-40k-dv3b-256px").eval()
# [B, H, W, D] DINOv3 ViT-B/16 spatial features at 256px input
features = torch.randn(1, 16, 16, 768)
with torch.inference_mode():
logits = probe(features) # [B, num_classes, H, W]
assert logits.shape == (1, 150, 16, 16)
Architecture: Dropout β BatchNorm β Conv1Γ1.
| Hyperparameter | Value |
|---|---|
| Input size | 256 Γ 256 px |
| Optimizer | AdamW |
| Peak LR | |
| Weight decay | |
| LR schedule | 1,500-step warmup β cosine decay |
| Batch size | 16 |
| Max steps | 40,000 |
| Dropout | 0.1 |
| Augmentation | RandomResizedCrop scale [0.5, 2] + HFlip |
| Precision | bf16 (AMP) |
Base model
facebook/dinov3-vit7b16-pretrain-lvd1689m