Zero-Shot Image Classification
Transformers
Safetensors
siglip
siglip2
robotics
droid
image-text-retrieval
image-feature-extraction
Instructions to use SakikoTogawa/siglip2-base-droid with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SakikoTogawa/siglip2-base-droid with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="SakikoTogawa/siglip2-base-droid") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("SakikoTogawa/siglip2-base-droid") model = AutoModelForZeroShotImageClassification.from_pretrained("SakikoTogawa/siglip2-base-droid", device_map="auto") - Notebooks
- Google Colab
- Kaggle
SigLIP2 Base adapted on DROID (step 20,000)
This model starts from google/siglip2-base-patch16-224 and
adapts its final vision-transformer blocks and attention-pooling head to DROID
robot-manipulation images. The text tower remains frozen.
import torch
from PIL import Image
from transformers import AutoModel, AutoProcessor
model_id = "YOUR_ORG/YOUR_MODEL"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModel.from_pretrained(model_id).eval()
image = Image.open("example.jpg").convert("RGB")
inputs = processor(images=image, return_tensors="pt")
with torch.inference_mode():
result = model.get_image_features(**inputs)
vector = result.pooler_output if hasattr(result, "pooler_output") else result
vector = torch.nn.functional.normalize(vector.float(), dim=-1)
print(vector.shape) # [1, 768]
Training step: 20,000.
- Downloads last month
- 23
Model tree for SakikoTogawa/siglip2-base-droid
Base model
google/siglip2-base-patch16-224