Skip to content

Conversation

@conscioustahoe
Copy link

@conscioustahoe conscioustahoe commented Sep 14, 2025

(.venv) ashu@Ashus-MacBook-Pro eva-probe % python dinov3_example.py                                         
DINOv3 Integration Validation for eva-probe
==================================================
=== DINOv3 Basic Example ===
Loading model: facebook/dinov3-vits16-pretrain-lvd1689m
Fetching 1 files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 10645.44it/s]
✓ Model loaded successfully
  Model type: dinov3_vit
  Hidden size: 384
  Image size: 224
Testing inference with dummy image...
  Input tensor shape: torch.Size([1, 3, 224, 224])
✓ Inference successful
  Pooler output shape: torch.Size([1, 384])
  Pooler output (CLS token): torch.Size([1, 384])
  Last hidden state shape: torch.Size([1, 201, 384])
  CLS token shape: torch.Size([1, 384])
  Patch tokens shape: torch.Size([1, 200, 384])
=== Testing DINOv3 Model Variants ===
Testing ViT-S/16 (facebook/dinov3-vits16-pretrain-lvd1689m)...
✓ ViT-S/16
  Expected dim: 384, Actual dim: 384
  ✓ Dimension matches expected
Testing ViT-B/16 (facebook/dinov3-vitb16-pretrain-lvd1689m)...
✓ ViT-B/16
  Expected dim: 768, Actual dim: 768
  ✓ Dimension matches expected
Testing ViT-L/16 (facebook/dinov3-vitl16-pretrain-lvd1689m)...
✓ ViT-L/16
  Expected dim: 1024, Actual dim: 1024
  ✓ Dimension matches expected
=== Testing eva-probe Compatibility ===
Fetching 1 files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 3289.65it/s]
  Batch input shape: torch.Size([2, 3, 224, 224])
✓ CLS features (classification): torch.Size([2, 384])
✓ CLS from hidden state: torch.Size([2, 384])
✓ Patch tokens (segmentation): torch.Size([2, 200, 384])
  Expected patches: 196, Actual patches: 200
==================================================
VALIDATION SUMMARY
==================================================
Basic functionality: ✓ PASS
Available variants: 3
  - ViT-S/16: 384 dimensions
  - ViT-B/16: 768 dimensions
  - ViT-L/16: 1024 dimensions
eva-probe compatibility: ✓ PASS
🎉 DINOv3 is ready for eva-probe integration!
(.venv) ashu@Ashus-MacBook-Pro eva-probe % 

@CLAassistant
Copy link

CLAassistant commented Sep 14, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants