PaGE
Collection
6 items β’ Updated β’ 1
How to use Octopus1/page-vits with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-feature-extraction", model="Octopus1/page-vits", trust_remote_code=True) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Octopus1/page-vits", trust_remote_code=True, dtype="auto")# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Octopus1/page-vits", trust_remote_code=True, dtype="auto")Small / fast distilled student. Part of the PaGE gaze target estimation family.
vits_distill.ptThis checkpoint includes the full DINOv3 backbone weights in its safetensors files. No external
DINOv3 weights are downloaded β the DINOv3 model structure is provided by transformers==5.6.2
(built-in dinov3_vit), and the backbone weights here are derivative weights from full-parameter
training of DINOv3. The model code (modeling_page.py) is loaded automatically from
Octopus1/PaGE via auto_map when you pass
trust_remote_code=True.
pip install torch torchvision timm "transformers==5.6.2" safetensors pillow
Tested with transformers 5.6.2.
from transformers import AutoModel, AutoImageProcessor
from PIL import Image
import torch
repo = "Octopus1/page-vits"
model = AutoModel.from_pretrained(repo, trust_remote_code=True).eval()
processor = AutoImageProcessor.from_pretrained(repo, trust_remote_code=True)
scene = Image.open("scene.jpg").convert("RGB")
head = Image.open("head.jpg").convert("RGB")
inputs = processor(scene, head_crops=[head], bboxes=[[(0.10, 0.10, 0.30, 0.40)]])
with torch.no_grad():
out = model(inputs)
heatmap = out["heatmap"][0] # [Np, 64, 64]
inout = out["inout"][0] # [Np]
See the family README for the full spec.
images (list of [B,3,512,512]), head_images (list of [sum(Np),3,256,256]),
bboxes (per-image list of (xmin,ymin,xmax,ymax) in [0,1]).heatmap (list of [Np,64,64], sigmoid), inout (list of [Np], sigmoid).LICENSE).DINOv3_LICENSE.md). Under its
Section 1.b.i, derivative works of DINOv3 (including these backbone weights) are distributed under
the DINO License terms, and DINOv3_LICENSE.md must accompany any redistribution.See the family README for full license details.
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="Octopus1/page-vits", trust_remote_code=True)