Image Feature Extraction
Transformers
Safetensors
siglip
zero-shot-image-classification
siglip2
vision
clip
image-embeddings
pet-recognition
Instructions to use AvitoTech/SigLIP2-giant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AvitoTech/SigLIP2-giant with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="AvitoTech/SigLIP2-giant")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("AvitoTech/SigLIP2-giant") model = AutoModelForZeroShotImageClassification.from_pretrained("AvitoTech/SigLIP2-giant", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fix AutoModel loading, add image processor and Apache-2.0 license
Verified signatureHi, and thanks for releasing these models. This follows up on the [report on the SigLIP2-Base repo](https://huggingface.co/AvitoTech/SigLIP2-Base-for-animal-identification/discussions). - **`AutoModel.from_pretrained` did not work.** Every tensor was stored under a `clip.` prefix left over from the training wrapper, which does not match `SiglipModel.base_model_prefix`, so all 1048 parameters were randomly initialised and only a warning was emitted. The tensors are now stored under their canonical names. - **`config.json`.** `text_config.vocab_size`: `256000`; `text_config.intermediate_size`: `4304`; `text_config.num_hidden_layers`: `27`; `text_config.projection_size`: `1536`; `text_config.hidden_act`: `gelu_pytorch_tanh`; `vision_config.hidden_size`: `1536`; `vision_config.intermediate_size`: `6144`; `vision_config.num_hidden_layers`: `40`; `vision_config.hidden_act`: `gelu_pytorch_tanh`; `vision_dim`: `1536`. - **Image processor.** Added `preprocessor_config.json`, copied unchanged …cd65f19
-
Update README.md (#3)
Verified signature- Update README.md (44ac4f7d39572e03299fb6989c8d07ea86e1c411) Co-authored-by: kiril <korallll@users.noreply.huggingface.co>23d3f78
-
Update README.md (#2)
Verified signature- Update README.md (8f27597571a8ccddc21d675dcb22b0e9b3978f1d) - Update README.md (80ad419988c756cf42c1b7770046c48d37a5f8c1) Co-authored-by: Vasiliy kudryavtsev <Slenser0@users.noreply.huggingface.co>5a997b6
-
Upload 3 files
Verified signature84d3da5 -
initial commit
Verified signatured9d9eea