Skip to content

2.17.2

Latest
Compare
Choose a tag to compare
@xenova xenova released this 29 May 14:36

馃殌 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

  • Auto rotate image by @KTibow in #737

  • Support reading data from blob URI by @hans00 in #645

  • Add sequence post processor in #771

  • Add model file name by @NawarA in #594

  • Update pipelines.js to allow for token_embeddings as well by @NikhilVerma in #770

  • Remove old import from stream/web for ReadableStream in #752

  • Update tokenizer playground by @xenova in #717

  • Use ungated version of mistral tokenizer by @xenova in #718

  • 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

Full Changelog: 2.17.1...2.17.2