Warped-Cartesian omni-foveation DINOv3-S+
A single DINOv3 ViT-S/16+ encoder adapted on ImageNet-1k across a finite bank of foveation strengths using FOVI. Warped-Cartesian retinal grid, dense 16-by-16 patch convolution, and native cortical-grid RoPE. This is the omni checkpoint used by the CoRL-v5 recipes.
Geometry and training
- Retinal budget: 16,384 samples, nominal resolution 128; 64 spatial patch tokens.
- Patch size: 16; circular planar field diameter 16 in the saved pretraining coordinates.
- Unnormalized
cmf_a:[0.001, 0.01, 0.1, 1, 10, 100, 1000], in this index order. - A level is drawn per image and shared across that image's four training fixations.
- DINOv3-S+ backbone; rank-64, alpha-64 LoRA on patch embedding and transformer blocks 0–5, with final normalization trainable; ImageNet-1k classification head.
- 100 epochs, seed 1, four GPUs, batch 128 per GPU, AdamW, base learning rate 0.0001, BF16 mixed precision. The exported checkpoint has zero-based epoch 99.
Here cmf_a is unnormalized. The normalized parameter is cmf_a / fov,
where fov is the full field diameter, 16. Smaller values produce stronger
foveation. Nominal resolution describes the sample budget; an isotropic
retina is a vector of samples rather than a square image raster.
Loading and inference
Requires FOVI 2.6.0 or later. The tested source revision and dependency versions
are recorded in provenance.json and validation.json.
pip install "fovi[models]==2.6.0"
from pathlib import Path
import torch
from huggingface_hub import snapshot_download
from fovi.models import get_model_from_base_fn
folder = Path(snapshot_download("fovi-pytorch/fovi-dinov3-splus_omni-warped-cartesian_res-128_in1k"))
model = get_model_from_base_fn(
str(folder), device="cuda", load_strict=True,
**{"pretrained_model.path": str(folder / "backbone"),
"pretrained_model.load_weights": False},
).eval()
# Start with RGB float images in [0, 1], then normalize for evaluation.
images = torch.rand(2, 3, 256, 256, device="cuda")
mean = images.new_tensor([0.485, 0.456, 0.406])[None, :, None, None]
std = images.new_tensor([0.229, 0.224, 0.225])[None, :, None, None]
images = (images - mean) / std
levels = torch.tensor([0, 4], device="cuda") # cmf_a 0.001 and 10
fixations = [torch.full((2, 2), 0.5, device="cuda")] # centered row/column
with torch.inference_mode():
logits, layer_features, retinal_views = model(
images, cmf_indices=levels, fixations=fixations, n_fixations=1,
)
assert logits.shape == (2, 1000)
example.py --model-dir /path/to/download --device cuda runs a synthetic
smoke example. It also accepts --image /path/to/image.jpg --cmf-index 4.
Images are resized to 256 by 256 for that example. Evaluation expects
ImageNet-normalized RGB tensors; the example applies this normalization once.
FOVI's validation loader normally supplies it; training-time augmentation
is disabled by eval(). Explicit fixation coordinates
are normalized image row/column pairs.
The full weight shard includes the base backbone, LoRA parametrizations,
projectors, and classifier. The backbone/ files only supply model architecture
and processor metadata. The local-path override avoids downloading base weights
or contacting the gated upstream repository. This package uses FOVI's loader;
it is not a standalone transformers.AutoModel export. Evaluation requires
explicit cmf_indices; indices must match the bank above. The saved output
mode is pooled; layer_features includes the pooled 384-dimensional backbone
features and the trained projector outputs.
Independent full ImageNet-1k validation
The exported package was independently evaluated on all 50,000 local ImageNet-1k validation images, with no dropped final batch or subset. Each image is assigned one of the seven foveation strengths by its sequential index modulo seven, and accuracy below aggregates correct predictions over all images. All fixation counts share the same single dataset traversal and the first fixations of the same twenty-fixation forward pass.
| Fixations | Top-1 (%) | Top-5 (%) |
|---|---|---|
| 1 | 69.088 | 88.592 |
| 2 | 71.344 | 89.792 |
| 3 | 72.700 | 90.634 |
| 5 | 73.990 | 91.532 |
| 10 | 75.168 | 92.266 |
| 20 | 75.918 | 92.886 |
Protocol: the training validation decoder (CenterCropRGBImageDecoder, crop
ratio 1.0, 256-by-256 output), RGB conversion to float in [0, 1], followed by
ImageNet mean/std normalization. The saved multi_random_nearcenter policy
uses a centered first fixation; subsequent fixations are seeded reproducibly
with 2026 plus the batch index, using batches of 128 images and BF16 autocast.
Small differences from the final logged metrics can arise from fixation RNG
and evaluation-stack differences. This is one aggregate pass, not a separate
50,000-image evaluation at every strength.
imagenet_validation.json records exact correct counts, dataset and exported
weight checksums, foveation sample counts, hardware, and evaluation settings.
Final logged ImageNet-1k results
These are the source run's final validation metrics at epoch 99, not a new evaluation. Overall top-1 is 69.08% for one fixation and 75.93% for twenty fixations. The validation loader assigns different images deterministically across CMF levels (7,143 images per level, 7,142 for the last level). Per-level rows therefore describe disjoint subsets rather than all 50,000 images at each strength.
| Unnormalized cmf_a | Normalized cmf_a / fov | Top-1, one fixation (%) | Top-1, twenty fixations (%) |
|---|---|---|---|
| 0.001 | 6.25e-05 | 53.60 | 67.86 |
| 0.01 | 0.000625 | 60.69 | 71.47 |
| 0.1 | 0.00625 | 68.40 | 76.17 |
| 1 | 0.0625 | 74.20 | 79.03 |
| 10 | 0.625 | 75.36 | 78.80 |
| 100 | 6.25 | 75.99 | 79.77 |
| 1000 | 62.5 | 75.34 | 78.38 |
metrics.json records the logged top-1/top-5 metrics and sample counts.
Files and provenance
The source is run 5mgxp8y3 (fovi-in1k-dinov3-warped-grid-multi-cmf), checkpoint final_weights.pth.
provenance.json records the source checksum and packaging changes; all exported
weight tensors are retained exactly, without merging LoRA or converting dtype.
Machine-specific dataset paths are made relative and experiment logging is
disabled in the inference config. Saved model, sensor, and transform settings
are preserved. Source training metadata remains recorded in provenance.
Scope and limitations
This is an ImageNet-adapted visual encoder and classification head, not an RL policy or gaze controller. It supports the declared finite bank; unseen CMF values require constructing new geometry. Planar pretraining does not establish spherical transfer quality. Geometry changes can change predictions even when all weight shapes still match.
License
The DINOv3-derived weights are distributed under the DINOv3 license. FOVI library code is MIT licensed.
Citation
@article{blauch2026fovi,
title={FOVI: A biologically-inspired foveated interface for deep vision models},
author={Blauch, Nicholas M. and Alvarez, George A. and Konkle, Talia},
journal={arXiv},
year={2026}
}