2.17.2
🚀 What's new?
-
Add support for MobileViTv2 in #721
import { pipeline } from '@xenova/transformers'; // Create an image classification pipeline const classifier = await pipeline('image-classification', 'Xenova/mobilevitv2-1.0-imagenet1k-256', { quantized: false, }); // Classify an image const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/tiger.jpg'; const output = await classifier(url); // [{ label: 'tiger, Panthera tigris', score: 0.6491137742996216 }]
See here for the full list of supported models.
-
Add support for FastViT in #749
import { pipeline } from '@xenova/transformers'; // Create an image classification pipeline const classifier = await pipeline('image-classification', 'Xenova/fastvit_t12.apple_in1k', { quantized: false }); // Classify an image const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/tiger.jpg'; const output = await classifier(url, { topk: 5 }); // [ // { label: 'tiger, Panthera tigris', score: 0.6649345755577087 }, // { label: 'tiger cat', score: 0.12454754114151001 }, // { label: 'lynx, catamount', score: 0.0010689536575227976 }, // { label: 'dhole, Cuon alpinus', score: 0.0010422508930787444 }, // { label: 'silky terrier, Sydney silky', score: 0.0009548701345920563 } // ]
See here for the full list of supported models.
-
Optimize FFT in #766
-
Add sequence post processor in #771
-
Update pipelines.js to allow for
token_embeddings
as well by @NikhilVerma in #770 -
Remove old import from
stream/web
forReadableStream
in #752 -
docs: update vanilla-js.md by @eltociear in #738
-
Fix CI by in #768
-
Update Next.js demos to 14.2.3 in #772
🤗 New contributors
- @eltociear made their first contribution in #738
- @KTibow made their first contribution in #737
- @NawarA made their first contribution in #594
- @NikhilVerma made their first contribution in #770
Full Changelog: 2.17.1...2.17.2