github huggingface/transformers.js 3.7.2

latest releases: 3.8.1, 3.8.0, 3.7.6...
6 months ago

What's new?

  • Add support for DINOv3 in #1390

    See here for the full list of supported models.

    Example: Compute image embeddings

    import { pipeline } from '@huggingface/transformers';
    
    const image_feature_extractor = await pipeline(
        'image-feature-extraction',
        'onnx-community/dinov3-vits16-pretrain-lvd1689m-ONNX',
    );
    const url = 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png';
    const features = await image_feature_extractor(url);
    console.log(features);

    Try it out using our online demo:

    dinov3.mp4

Full Changelog: 3.7.1...3.7.2

Don't miss a new transformers.js release

NewReleases is sending notifications on new releases.