SteerViT
Paper | Project Page | GitHub | Demo (HF Spaces)
Fuente del modelo
- Tipo
- Other
- Tamaño del archivo
- 46,0–224 MB
- Modelo base
- FacebookAI/roberta-large
- Versión
- vRevision 1846972
- Actualizado
- 22 oct 2026
- Descargas
- 0
- Fuente
- Hugging Face
Descripción de la fuente
SteerViT: Steerable Visual Representations [ECCV'26 Oral]
Paper | Project Page | GitHub | Demo (HF Spaces)
SteerViT equips pretrained Vision Transformers with steerable visual representations. Given an image and a natural-language prompt, it conditions the visual encoder through lightweight gated cross-attention to produce:
- prompt-aware global embeddings
- prompt-aware dense patch features
- prompt-conditioned heatmaps
This Hugging Face repository hosts the model checkpoints.
Installation
To use SteerViT, install the library directly from GitHub:
python -m pip install "git+https://github.com/JonaRuthardt/SteerViT.git"
Quick start
import torch
from PIL import Image
from steervit import SteerViT
device = "cuda" if torch.cuda.is_available() else "cpu"
# Load the model (e.g., SteerDINOv2-Base)
model = SteerViT.from_pretrained("steervit_dinov2_base.pth", device=device)
transform = model.get_transforms()
image = Image.open("path/to/image.jpg").convert("RGB")
image_tensor = transform(image).unsqueeze(0)
prompt = ["the red car"]
global_features = model.get_global_features(image_tensor, texts=prompt) # pooled image embeddings
dense_features = model.get_dense_features(image_tensor, texts=prompt) # patch-level visual features
heatmaps = model.get_heatmaps(image_tensor, texts=prompt) # prompt-conditioned localization heatmaps
attention_heatmaps = model.get_attention_heatmaps(image_tensor, texts=prompt) # attention-based heatmaps
If texts=None, SteerViT behaves like the underlying frozen ViT backbone and returns query-agnostic features.
Available checkpoints
🔔 New commercially usable checkpoints: We now provide updated SteerViT checkpoints under Apache-2.0, which permits commercial use. These variants were adapted using only Visual Genome, COCO, and LVIS, with commercial-use image filtering applied. Thanks to improved synthetic annotations, these variants match or improve upon the original research-only checkpoints.
| Checkpoint | from_pretrained(...) identifier | Notes | Licence |
|---|---|---|---|
| SteerDINOv2-Base | steervit_dinov2_base.pth | Primary model used for most experiments | research-only |
| SteerDINOv2-Small (commercial) | steervit_dinov2_commercial_small.pth | Variant trained on commercially-permissable data | commercial |
| SteerDINOv2-Base (commercial) | steervit_dinov2_commercial_base.pth | Variant trained on commercially-permissable data | commercial |
| SteerDINOv2-Large (commercial) | steervit_dinov2_commercial_large.pth | Variant trained on commercially-permissable data | commercial |
| SteerMAE-Base | steervit_mae_base.pth | Alternative model based on MAE-backbone | research-only |
| SteerSigLIP-Base | steervit_siglip_base.pth | Alternative model based on SigLIP-backbone | research-only |
| SteerSigLIP2-Base | steervit_siglip2_base.pth | Alternative model based on SigLIP2-backbone | research-only |
Citation
@inproceedings{ruthardt2026steervit,
title = {Steerable Visual Representations},
author = {Ruthardt, Jona and Gaur, Manu and Ramanan, Deva and Tapaswi, Makarand and Asano, Yuki M.},
booktitle = {European Conference on Computer Vision (ECCV)},
year = {2026}
}
Fuentes
1 fuente
Fuentes
1 fuenteVerificado 22 oct
Artefactos del modelo
7 artefactos
Artefactos del modelo
7 artefactossteervit_dinov2_commercial_base.pth
pth · 88,1 MB · SHA-256 f863021d5aae…4833 · Hugging Face
Descargarsteervit_dinov2_commercial_large.pth
pth · 224 MB · SHA-256 6c7702a5b194…9bb6 · Hugging Face
Descargarsteervit_dinov2_commercial_small.pth
pth · 46,0 MB · SHA-256 6c23756039eb…69ee · Hugging Face
DescargarExtractos de fuentes
3 extractos
Extractos de fuentes
3 extractos--- base_model: - timm/vit_base_patch14_dinov2.lvd142m - timm/vit_base_patch16_224.mae - FacebookAI/roberta-large language: - en tags: - vision-transformer - image-feature-extraction - multimodal - visual-grounding - representation-learning pipeline_tag: image-feature-extraction license: apache-2.0 --- # SteerViT: Steerable Visual Representations [ECCV'26 Oral] [**Paper**](https://huggingface.co/papers/2604.02327) | [**Project Page**](https://jonaruthardt.github.io/project/SteerViT/) | [**GitHub**](https://github.com/manugaurdl/SteerViT) | [**Demo (HF Spaces)**](https://huggingface.co/spaces/JonaRuthardt/SteerViT) SteerViT equips pretrained Vision Transformers with **steerable visual representations**. Given an image and a natural-language prompt, it conditions the visual encoder through lightweight gated cross-attention to produce: - prompt-aware **global embeddings** - prompt-aware **dense patch features** - prompt-conditioned **heatmaps** This Hugging Face repository hosts the model checkpoints. ## Installation To use SteerViT, install the library directly from GitHub: ```bash python -m pip install "git+https://github.com/JonaRuthardt/SteerViT.git" ``` ## Quick start ```python import torch from PIL import Image from steervit import SteerViT device = "cuda" if torch.cuda.is_available() else "cpu" # Load the model (e.g., SteerDINOv2-Base) model = SteerViT.from_pretrained("steervit_dinov2_base.pth", device=device) transform = model.get_transforms() image = Image.open("path/to/image.jpg").convert("RGB") image_tensor = transform(image).unsqueeze(0) prompt = ["the red car"] global_features = model.get_global_features(image_tensor, texts=prompt) # pooled image embeddings dense_features = model.get_dense_features(image_tensor, texts=prompt) # patch-level visual features heatmaps = model.get_heatmaps(image_tensor, texts=prompt) # prompt-conditioned localization heatmaps attention_heatmaps = model.get_attention_heatmaps(image_tensor, texts=prompt) # attention-based heatmaps ``` If `texts=None`, SteerViT behaves like the underlying frozen ViT backbone and returns query-agnostic features. ## Available checkpoints > **🔔 New commercially usable checkpoints:** We now provide updated SteerViT checkpoints under **Apache-2.0**, which permits commercial use. These variants were adapted using only Visual Genome, COCO, and LVIS, with commercial-use image...
--- base_model: - timm/vit_base_patch14_dinov2.lvd142m - timm/vit_base_patch16_224.mae - FacebookAI/roberta-large language: - en tags: - vision-transformer - image-feature-extraction - multimodal - visual-grounding - representation-learning pipeline_tag: image-feature-extraction license: apache-2.0 --- # SteerViT: Steerable Visual Representations [**Paper**](https://huggingface.co/papers/2604.02327) | [**Project Page**](https://jonaruthardt.github.io/project/SteerViT/) | [**GitHub**](https://github.com/manugaurdl/SteerViT) | [**Demo (HF Spaces)**](https://huggingface.co/spaces/JonaRuthardt/SteerViT) SteerViT equips pretrained Vision Transformers with **steerable visual representations**. Given an image and a natural-language prompt, it conditions the visual encoder through lightweight gated cross-attention to produce: - prompt-aware **global embeddings** - prompt-aware **dense patch features** - prompt-conditioned **heatmaps** This Hugging Face repository hosts the model checkpoints. ## Installation To use SteerViT, install the library directly from GitHub: ```bash python -m pip install "git+https://github.com/JonaRuthardt/SteerViT.git" ``` ## Quick start ```python import torch from PIL import Image from steervit import SteerViT device = "cuda" if torch.cuda.is_available() else "cpu" # Load the model (e.g., SteerDINOv2-Base) model = SteerViT.from_pretrained("steervit_dinov2_base.pth", device=device) transform = model.get_transforms() image = Image.open("path/to/image.jpg").convert("RGB") image_tensor = transform(image).unsqueeze(0) prompt = ["the red car"] global_features = model.get_global_features(image_tensor, texts=prompt) # pooled image embeddings dense_features = model.get_dense_features(image_tensor, texts=prompt) # patch-level visual features heatmaps = model.get_heatmaps(image_tensor, texts=prompt) # prompt-conditioned localization heatmaps attention_heatmaps = model.get_attention_heatmaps(image_tensor, texts=prompt) # attention-based heatmaps ``` If `texts=None`, SteerViT behaves like the underlying frozen ViT backbone and returns query-agnostic features. ## Available checkpoints | Checkpoint | `from_pretrained(...)` identifier | Notes | | --- | --- | --- | | SteerDINOv2-Base | `steervit_dinov2_base.pth` | Primary model used for most experiments | | SteerMAE-Base | `steervit_mae_base.pth` | Alternative model based on MAE-backbo...
Source context: 0 downloads · 7 likes · Pipeline image-feature-extraction · Repo JonaRuthardt/SteerViT
