Image Feature Extraction
Transformers
Safetensors
siglip
zero-shot-image-classification
vision
clip
image-embeddings
pet-recognition
Instructions to use AvitoTech/SigLIP-Base-for-animal-identification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AvitoTech/SigLIP-Base-for-animal-identification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="AvitoTech/SigLIP-Base-for-animal-identification")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("AvitoTech/SigLIP-Base-for-animal-identification") model = AutoModelForZeroShotImageClassification.from_pretrained("AvitoTech/SigLIP-Base-for-animal-identification", 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 408 parameters were randomly initialised and only a warning was emitted. The tensors are now stored under their canonical names. - **`config.json`.** `text_config.hidden_act`: `gelu_pytorch_tanh`; `vision_config.hidden_act`: `gelu_pytorch_tanh`. - **Image processor.** Added `preprocessor_config.json`, copied unchanged from `google/siglip-base-patch16-224`, so the repo is self-contained and the card no longer has to send users to another repository for preprocessing. - **License.** Added `license: apache-2.0` and a `LICENSE` file (see below). ### Verification The reference is the wrapper this checkpoint was tra…3536bc0