An open API service indexing awesome lists of open source software.

https://github.com/lostbeard/spawndev.blazorjs.transformersjs

Use Transformers.js from Blazor WebAssembly to run pretrained models with the ONNX Runtime in the browser.
https://github.com/lostbeard/spawndev.blazorjs.transformersjs

blazor blazor-webassembly browser deep-learning depth-estimation huggingface huggingface-transformers javascript machine-learning neural-networks onnx pretrained-models tensorflow text-to-speech transformers

Last synced: 3 months ago
JSON representation

Use Transformers.js from Blazor WebAssembly to run pretrained models with the ONNX Runtime in the browser.

Awesome Lists containing this project

README

          

# SpawnDev.BlazorJS.TransformersJS
[![NuGet](https://img.shields.io/nuget/dt/SpawnDev.BlazorJS.TransformersJS.svg?label=SpawnDev.BlazorJS.TransformersJS)](https://www.nuget.org/packages/SpawnDev.BlazorJS.TransformersJS)

## State-of-the-art Machine Learning for the Web in Blazor WebAssembly
`SpawnDev.BlazorJS.TrasnformersJS` brings the awesome [Transformers.js](https://github.com/huggingface/transformers.js/) library from [Hugging Face]() to Blazor WebAssembly.

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](https://lostbeard.github.io/SpawnDev.BlazorJS.TransformersJS)
- [2D to 2D+Z](https://lostbeard.github.io/SpawnDev.BlazorJS.TransformersJS)
- [2D to Anaglyph](https://lostbeard.github.io/SpawnDev.BlazorJS.TransformersJS/AnaglyphImageDemo)
- [Image Enhancement](https://lostbeard.github.io/SpawnDev.BlazorJS.TransformersJS/ImageToImage)
- [Text To Speech](https://lostbeard.github.io/SpawnDev.BlazorJS.TransformersJS/TextToSpeechClient)
- [Keypoint Detection](https://lostbeard.github.io/SpawnDev.BlazorJS.TransformersJS/KeypointDetectionDemo)
- [Realtime 2D to 2DZ](https://lostbeard.github.io/SpawnDev.BlazorJS.TransformersJS/RealTime2DZ)
- [Webcam 2D to 3D](https://lostbeard.github.io/SpawnDev.BlazorJS.TransformersJS/RealTime2Dto3D)
- [Video 2D to 3D](https://lostbeard.github.io/SpawnDev.BlazorJS.TransformersJS/RealTimeVideo2Dto3D)
- [Speech Recognition](https://lostbeard.github.io/SpawnDev.BlazorJS.TransformersJS/SpeechRecognition)

#### WIP
If you are interested in this project, please start an issue to suggest features or areas of interest.