Image Feature Extraction
Transformers
Safetensors
clip
zero-shot-image-classification
vision
image-embeddings
pet-recognition
Instructions to use AvitoTech/CLIP-ViT-base-for-animal-identification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AvitoTech/CLIP-ViT-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/CLIP-ViT-base-for-animal-identification")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("AvitoTech/CLIP-ViT-base-for-animal-identification") model = AutoModelForZeroShotImageClassification.from_pretrained("AvitoTech/CLIP-ViT-base-for-animal-identification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
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). - **Loading already worked here** -- `CLIPModel.base_model_prefix` happens to be `"clip"`, so the published prefix is stripped on load. `config.json` and `model.safetensors` are therefore **not touched** by this PR. - **Image processor.** Added `preprocessor_config.json`, copied unchanged from `openai/clip-vit-base-patch32`, 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 trained with: it is built from `openai/clip-vit-base-patch32` and loaded from the **published** `model.safetensors` with `load_state_dict(strict=True)` (0 missing / 0 unexpected keys). Its embeddings are then compared against `A…2eeb7e3