Giter Club home page Giter Club logo

autolabeler's Introduction

AutoLabel

See Animated Demo

img

Description:

Autolabel is a simple GUI tool to easily assign and verify action labels to individual frames of your self driving dataset.

Many open online datasets (Sully Chen's, Udacity's, etc to name a few) didn't had action labels like:

  • Stay in lane
  • Turn Right
  • Switch to left lane
  • And any other you can think of

This tool can be used to easily group frames into these categories. Lack of these labels may make machine learning model very inflexible.

Adding these labels to existing dataset would increase the flexibility and control over your model.

Installation:

Install the dependencies using pip install -r requirements.txt

Usage:

Creating datafile:

You first need to create a datafile that contains all the filenames of your individual frames under a single base directory. An example of datafile.csv is provided below. The column name must be filename. Additionally, an already existing datafile with an additional column action may be used to load your progress. You do not need to provide the action column in your first run. All action labels would be initialized to 'undefined'.

filename action
0.jpg stay_in_lane
1.jpg stay_in_lane
2.jpg stay_in_lane
3.jpg change_lane_left

Running AutoLabel:

Once the datafile has been created, run the following command to start the GUI:

  • python autolabeler.py --basedir "./data" --datafile "./data/datafile.csv" --savefile "./output.csv"

Note: Use double quotes for providing filepaths if they contain spaces.

Assigning Labels to frame:

Choose the label name from the drop down on bottom right and click on play button. The selected label would be assigned to the displayed frames. Here are some tips:

  • If drop down is set to 'disabled', no label would be overwritten. Always set drop down to 'disabled' while 'seeking' to avoid any overwriting of previously assigned labels
  • Do not seek to other frames without pausing or setting the drop down to 'disabled'
  • Seeking while in pause state doesn't overwrite labels.

Saving progress:

You may specify a savefile location to save your progress to. Click on save button before exiting. Do not close the command prompt window directly or else you won't be able to save progress.

Loading Progress:

You can reuse the savefile to load your progress of assigning labels to the frames. Just pass your savefile as the datafile when you next start the session.

Additional Command Line Arguements:

-b      --basedir        <Directory where all image frames are located>      |   Default = ./
-d      --datafile       <Location of datafile>`                             |   Default = None
-s      --savefile       <Location to store the generated labels>            |   Default = ./output.csv
-h      --height         <Adjust height of the window>`                      |   Default = None
-w      --width          <Adjust width of the window>`                       |   Default = Non

GUI Widgets:

  • Play Button
  • Pause Button
  • Seek
  • Fast Forward
  • Slow Mo
  • Label Selector Dropdown
  • Current label display

autolabeler's People

Contributors

mankaransingh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.