SpawnDev.BlazorJS.TransformersJS 1.0.0-preview.1

This is a prerelease version of SpawnDev.BlazorJS.TransformersJS.
dotnet add package SpawnDev.BlazorJS.TransformersJS --version 1.0.0-preview.1                
NuGet\Install-Package SpawnDev.BlazorJS.TransformersJS -Version 1.0.0-preview.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SpawnDev.BlazorJS.TransformersJS" Version="1.0.0-preview.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SpawnDev.BlazorJS.TransformersJS --version 1.0.0-preview.1                
#r "nuget: SpawnDev.BlazorJS.TransformersJS, 1.0.0-preview.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SpawnDev.BlazorJS.TransformersJS as a Cake Addin
#addin nuget:?package=SpawnDev.BlazorJS.TransformersJS&version=1.0.0-preview.1&prerelease

// Install SpawnDev.BlazorJS.TransformersJS as a Cake Tool
#tool nuget:?package=SpawnDev.BlazorJS.TransformersJS&version=1.0.0-preview.1&prerelease                

SpawnDev.BlazorJS.TransformersJS

NuGet

WIP

This project is a "Work In Progress" and is currently limited. If you are interested in this project, please start an issue to suggest features or areas of interest.

State-of-the-art Machine Learning for the Web in Blazor WebAssembly

SpawnDev.BlazorJS.TransformersJS brings the awesome Transformers.js library into Blazor WebAssembly apps.

Transformers.js is designed to be functionally equivalent to Hugging Face’s transformers python library, meaning you can run the same pretrained models using a very similar API. These models support common tasks in different modalities, such as:

  • 📝 Natural Language Processing: text classification, named entity recognition, question answering, language modeling, summarization, translation, multiple choice, and text generation.
  • 🖼️ Computer Vision: image classification, object detection, segmentation, and depth estimation.
  • 🗣️ Audio: automatic speech recognition, audio classification, and text-to-speech.
  • 🐙 Multimodal: embeddings, zero-shot audio classification, zero-shot image classification, and zero-shot object detection.

Transformers.js uses ONNX Runtime to run models in the browser. The best part about it, is that you can easily convert your pretrained PyTorch, TensorFlow, or JAX models to ONNX using 🤗 Optimum.

Demo

The current demo app uses Transformers.js, Blazor, and WebGL.

NOTE: The models used can be large. A fast connection is recommended.

Live Demo
2D to 2D+Z
2D to Anaglyph

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0-preview.1 35 1/15/2025
1.0.0-preview.0 58 1/4/2025