Zero-Shot Image Classification
Transformers.js
ONNX
clip
mobileclip
image-feature-extraction
feature-extraction
Instructions to use Xenova/mobileclip_b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/mobileclip_b with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('zero-shot-image-classification', 'Xenova/mobileclip_b');
Update README.md
Browse files
README.md
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
| 29 |
softmax,
|
| 30 |
} from '@xenova/transformers';
|
| 31 |
|
| 32 |
-
const model_id = 'Xenova/
|
| 33 |
|
| 34 |
// Load tokenizer and text model
|
| 35 |
const tokenizer = await AutoTokenizer.from_pretrained(model_id);
|
|
|
|
| 29 |
softmax,
|
| 30 |
} from '@xenova/transformers';
|
| 31 |
|
| 32 |
+
const model_id = 'Xenova/mobileclip_b';
|
| 33 |
|
| 34 |
// Load tokenizer and text model
|
| 35 |
const tokenizer = await AutoTokenizer.from_pretrained(model_id);
|