Zero-Shot Image Classification
Transformers
PyTorch
Chinese
altclip
Zero-Shot Image Classification
bilingual
en
English
Chinese
Run this model with HF Jobs
Run BAAI/AltCLIP on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/BAAI/AltCLIP. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/BAAI/AltCLIP on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use BAAI/AltCLIP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/AltCLIP with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="BAAI/AltCLIP") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("BAAI/AltCLIP") model = AutoModelForZeroShotImageClassification.from_pretrained("BAAI/AltCLIP", device_map="auto") - Notebooks
- Google Colab
- Kaggle
updated model desc
Browse filesSigned-off-by: Anhforth <yanzhaodong2021@163.com>
26 unmodified lines2728293031323334353626 unmodified lines# AltCLIPTextEncoder- Github: [FlaAI](https://github.com/FlagAI-Open/FlagAI)- Language(s): Chinese, English- Task: Text encoding- Size: 3.22G## 简介 Brief Introduction26 unmodified lines27282930313233343526 unmodified lines# AltCLIPTextEncoder| 名称 Name | 任务 Task | 语言 Language(s) | 模型 Model | Github ||:------------------:|:----------:|:-------------------:|:--------:|:------:|| AltCLIPTextENcoder | 自然语言处理 NLP | 中英文 Chinese&English | CLIP | [FlaAI](https://github.com/FlagAI-Open/FlagAI) |## 简介 Brief Introduction
README.md+3-4