Giter VIP home page Giter VIP logo

pixelsam's Introduction

PixelSAM

PixelSAM is a is a graphical image annotation tool powered by the Segment Anything Model

The tool allows users to segment the images automatically making the labelling process more smooth.

It is based on Python and uses Tkinter for the UI.

Getting started

Install Segment Anything:

pip install git+https://github.com/facebookresearch/segment-anything.git

Clone the PixelSAM Repository:

git clone [email protected]:Rahul-Pi/PixelSAM.git

Download the Model Checkpoints:

cd PixelSAM
wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth

Note: If the link does not work or you want to choose a different model go the segment anything repository and download.

To Run:

python3 PixelSAM.py

Click on the load button and select the folder containing the images.

Keys and actions

Key/button Actions
โ†’ Go to next image
โ† Go to previous image
Left mouse click Add areas to segment
Right mouse click Exclude areas from segment
n Label new object
Ctrl+s Save annotation
Ctrl+z Undo annotation
Ctrl+Shift+z Undo latest object (Note: Ensure caps lock is off)

Command line arguments

  --model_path: path to model if not in the same folder as the script
    (default='sam_vit_h_4b8939.pth')
  --model_type: type of the model checkpoint used
    (default='vit_h')

How to contribute

Send a pull request

TODO

  • Save the labels
  • Save the segmentation
  • Label multiple objects
  • Improve the polygon detection
  • Possibility to zoom
  • Drawing bounding box
  • Pre-process batch

pixelsam's People

Contributors

4ndre avatar rahul-pi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

biovbreed

pixelsam's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.