Overview

https://huggingface.co/docs/transformers.js/en/index

Functional equivalent of Hugging Face Python Transformers.

Uses https://onnxruntime.ai/

Example

Modified from https://huggingface.co/docs/transformers.js/main/en/tutorials/vanilla-js

Screenshot 2024-02-04 at 6.32.17 PM.png

Analyzes an image and attempts to label it using Xenova/detr-resnet-50.

Code is here

https://github.com/dsteele101/imageDetect

Next Steps: