Instructions to use Xenova/convnext-tiny-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/convnext-tiny-224 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'Xenova/convnext-tiny-224');
Add/update the quantized ONNX model files and README.md for Transformers.js v3
Browse files## Applied Quantizations
### ✅ Based on `model.onnx` *without* slimming
README.md
CHANGED
|
@@ -25,7 +25,7 @@ const classifier = await pipeline('image-classification', 'Xenova/convnext-tiny-
|
|
| 25 |
// Classify an image
|
| 26 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/tiger.jpg';
|
| 27 |
const output = await classifier(url);
|
| 28 |
-
console.log(output)
|
| 29 |
// [{ label: 'tiger, Panthera tigris', score: 0.6153212785720825 }]
|
| 30 |
```
|
| 31 |
|
|
|
|
| 25 |
// Classify an image
|
| 26 |
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/tiger.jpg';
|
| 27 |
const output = await classifier(url);
|
| 28 |
+
console.log(output);
|
| 29 |
// [{ label: 'tiger, Panthera tigris', score: 0.6153212785720825 }]
|
| 30 |
```
|
| 31 |
|