Giter Site home page Giter Site logo

autolabel's Introduction

AutoLabel

This project is developed using PyQt and is inspired by SAM, creating an automatic annotation system based on the concept of LabelImg.

Features

Similar functionalities to LabelImg (although very basic).

Annotate the rect box

Annotate

Automated annotations with SAM

  1. Right mouse on the object you're interested in.

Automated annotations

Automated annotations

  1. Left mouse to exclude the objects you're not interested in.

Automated annotations

Saving

You can choose from three formats: YOLO, Pascal VOC and COCO, the default is YOLO.
Notice:

  • If you choose the COCO format, it must be consistent from the beginning, otherwise, you will only obtain annotations for a single image.

Visualization

You can place the annotations in the same directory as the images, and the labels file name must be same with image file name.
If it is in COCO format, put annotations.json in the directory. Visualization

Hotkeys

Hotkey Description
D Next image
A Previous image
Space Automatically predict rectangle box
del Delete the selected rectangle box
Ctrl + S Save annotations
↑→↓← Move the selected rectangle box

Environment

Model

Name Checkpoint
vit_h ViT-H SAM model
vit_l ViT-L SAM model
vit_b ViT-B SAM model

Then modify the name and path here:

self.sam = SA(model_name="vit_b", model_path="sam_vit_b_01ec64.pth")

Usage

  1. Your directory must include classes.txt and you can edit the classes on your own.
    dog
    person
    cat
    ...
  2. Run
    python autoLabel.py

Reference

autolabel's People

Contributors

qpal147147 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

189859319

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.