Instructions to use Xenova/mobilevit-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/mobilevit-small with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'Xenova/mobilevit-small');
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,7 +18,7 @@ import { pipeline } from '@huggingface/transformers';
|
|
| 18 |
|
| 19 |
// Create an image classification pipeline
|
| 20 |
const classifier = await pipeline('image-classification', 'Xenova/mobilevit-small', {
|
| 21 |
-
|
| 22 |
});
|
| 23 |
|
| 24 |
// Classify an image
|
|
|
|
| 18 |
|
| 19 |
// Create an image classification pipeline
|
| 20 |
const classifier = await pipeline('image-classification', 'Xenova/mobilevit-small', {
|
| 21 |
+
dtype: "fp32",
|
| 22 |
});
|
| 23 |
|
| 24 |
// Classify an image
|