Skip to content

A browser-based application that leverages the power of machine learning models using Transformer.js. Explore a variety of text and image processing models directly in your browser, all running client-side without the need for a server.

License

Notifications You must be signed in to change notification settings

graphicstone/transformer-js-playground

Repository files navigation

Transformer.js Playground

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.

Table of Contents

Features

  • 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.

Installation

To get started with the Transformer.js Playground, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/transformer-js-playground.git
    cd transformer-js-playground
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

    This will launch the application in your default web browser.

Usage

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.

Running Models

  • 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.

Available Models

Text Models

  • Sentiment Analysis: Analyze the emotional tone of text.
  • Text Generation: Generate text based on a given prompt.

Image Models

  • 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.

Development

To contribute to the development of this project, follow these steps:

  1. Fork the repository.

  2. Create a new branch for your feature or bug fix:

    git checkout -b feature-name
  3. Make your changes and commit them:

    git commit -m "Description of changes"
  4. Push to your fork:

    git push origin feature-name
  5. Create a pull request to the main repository.

Contributing

Contributions are welcome! Please read the contributing guidelines for more information.

License

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!

About

A browser-based application that leverages the power of machine learning models using Transformer.js. Explore a variety of text and image processing models directly in your browser, all running client-side without the need for a server.

Topics

Resources

License

Stars

Watchers

Forks