Welcome to the Transformer.js Playground! This project is a browser-based application that leverages the power of machine learning models directly in your browser using Transformer.js. It provides a variety of models for text and image processing tasks, all running client-side without the need for a server.
- Text Classification: Analyze and classify text with state-of-the-art models.
- Text Generation: Generate human-like text for various applications.
- Image Segmentation: Advanced image processing and segmentation tools.
- Background Removal: Remove backgrounds from images using WebGPU.
- Smart Eraser: Erase objects from images with precision.
To get started with the Transformer.js Playground, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/transformer-js-playground.git cd transformer-js-playground
-
Install dependencies:
npm install
-
Start the development server:
npm start
This will launch the application in your default web browser.
Once the application is running, you can explore different models and their capabilities. Navigate through the app using the provided links to access various models for text and image processing.
- Text Models: Enter your text input and run the model to see the results.
- Image Models: Upload an image and apply the model to see the output.
- Sentiment Analysis: Analyze the emotional tone of text.
- Text Generation: Generate text based on a given prompt.
- Face Parsing: Parse facial features from images.
- Segment Anything: Segment objects from images.
- Remove Background: Remove backgrounds from images.
- Smart Eraser: Erase objects from images.
To contribute to the development of this project, follow these steps:
-
Fork the repository.
-
Create a new branch for your feature or bug fix:
git checkout -b feature-name
-
Make your changes and commit them:
git commit -m "Description of changes"
-
Push to your fork:
git push origin feature-name
-
Create a pull request to the main repository.
Contributions are welcome! Please read the contributing guidelines for more information.
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
Enjoy exploring the capabilities of Transformer.js directly in your browser!