Zero-Shot Image Classification
Transformers.js
ONNX
clip
mobileclip
image-feature-extraction
feature-extraction
Instructions to use Xenova/mobileclip_s0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/mobileclip_s0 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('zero-shot-image-classification', 'Xenova/mobileclip_s0');
| { | |
| "model_type": "clip", | |
| "transformers.js_config": { | |
| "dtype": { | |
| "vision_model": "fp32" | |
| }, | |
| "device_config": { | |
| "webnn": { | |
| "free_dimension_overrides": { | |
| "batch_size": 1 | |
| } | |
| }, | |
| "webnn-gpu": { | |
| "free_dimension_overrides": { | |
| "batch_size": 1 | |
| } | |
| } | |
| } | |
| } | |
| } |