CoolFace
Modelpublic

adonaivera/siglip-person-search-openset

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
1likes20downloads
Model Card

๐Ÿ” SigLIP Person Search - Open Set

This model is a fine-tuned version of `google/siglip-base-patch16-224` for open-set person retrieval based on natural language descriptions. It's built to support image-text similarity in real-world retail and surveillance scenarios.

๐Ÿง  Use Case

This model allows you to search for people in crowded environments (like malls or stores) using only a text prompt, for example:

"A man wearing a white t-shirt and carrying a brown shoulder bag"

The model will return person crops that match the description.

๐Ÿ’พ Training

  • โ€”Base: google/siglip-base-patch16-224
  • โ€”Loss: Cosine InfoNCE
  • โ€”Data: ReID dataset with multimodal attributes (generated via Gemini)
  • โ€”Epochs: 10
  • โ€”Usage: Retrieval-style search (not classification)

๐Ÿ“ˆ Intended Use

  • โ€”Smart surveillance
  • โ€”Anonymous retail behavior tracking
  • โ€”Human-in-the-loop retrieval
  • โ€”Visual search & retrieval systems

๐Ÿ”ง How to Use

python
from transformers import AutoProcessor, AutoModel
import torch

processor = AutoProcessor.from_pretrained("adonaivera/siglip-person-search-openset")
model = AutoModel.from_pretrained("adonaivera/siglip-person-search-openset")

text = "A man wearing a white t-shirt and carrying a brown shoulder bag"
inputs = processor(text=text, return_tensors="pt")
with torch.no_grad():
    text_features = model.get_text_features(**inputs)

๐Ÿ“Œ Notes

  • โ€”This model is optimized for feature extraction and cosine similarity matching
  • โ€”It's not meant for classification or image generation
  • โ€”Similarity threshold tuning is required depending on your application