Find and label objects in your image
Apply style to an image
Modifies the render of your image, at any resolution, freely
Upload an image to find and label objects
Flexible Photo Recrafting While Preserving Your Identity
Generate a kawaii logo with your photo and name
Identify car logos in images..
Upload an image to detect and label objects
Inpainting images
This space is used to cartoonize the input image.
Generate a stylized image from an input image
Upload an image to detect objects
Modify an image's background using text description
Transformers.js is a JavaScript library designed to find and label objects in your image. It leverages the power of modern machine learning models to enable object detection and annotation within web applications. The library provides an easy-to-use interface for developers to integrate state-of-the-art transformer-based models into their projects.
• Object Detection: Identify and label objects within images.
• Transformer-based Models: Utilizes advanced transformer architectures for accurate detection.
• Browser Compatibility: Works seamlessly across modern web browsers.
• Node.js Integration: Can be used in both client-side and server-side environments.
• Real-time Processing: Supports real-time object detection for dynamic applications.
• Customizable: Allows developers to fine-tune models and adjust detection parameters.
npm install transformers.js
const { TransformerDetector } = require('transformers.js');
const detector = new TransformerDetector('object-detection-model');
await detector.loadModel();
const result = await detector.detect(imageElement);
What models does Transformers.js support?
Transformers.js supports a variety of pre-trained transformer-based models for object detection, including popular architectures like DETR and YOLO.
Can I use Transformers.js in a Node.js environment?
Yes, Transformers.js is compatible with both browser and Node.js environments, making it versatile for different use cases.
How accurate is the object detection?
The accuracy depends on the model used. Transformers.js leverages state-of-the-art models, ensuring high accuracy for most object detection tasks.