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 config.json
Browse files- config.json +13 -1
config.json
CHANGED
|
@@ -1,3 +1,15 @@
|
|
| 1 |
{
|
| 2 |
-
"model_type": "clip"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_type": "clip",
|
| 3 |
+
"transformers.js_config": {
|
| 4 |
+
"dtype": {
|
| 5 |
+
"vision_model": "fp32"
|
| 6 |
+
},
|
| 7 |
+
"device_config": {
|
| 8 |
+
"webnn": {
|
| 9 |
+
"free_dimension_overrides": {
|
| 10 |
+
"batch_size": 1
|
| 11 |
+
}
|
| 12 |
+
}
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
}
|