Giter VIP home page Giter VIP logo

auglib's Introduction

Auglib

Software Project.

Folders:

src : contains all the major files modules: contains all the operational modules (flip, randomcrop etc) utils: contains all the utility files. Primarily the wrapper class

Case for AugImage (the wrapper class)

Dataset raw images may or may not have corresponding ground truth images in different directories like masks in segmentation tasks. Plus there may be other params regarding image manipulation like keeping a track of number of ops performed on an image. It just makes things easier

Proposed rough structure of modules:


class <module name>:
  def __init__():
    probability: xxx     
    /// Plan is to assign higher weights to more relvant augmentations. 
    /// For instance, Flipping the image is more valuable augmentation over let's say, random erase.
    /// Now, If for instance W1(x1) + W2(x2) is the weight dependence, even for random probabilities x1,x2, W1 has to ensure it leads to higher number.
    /// We will have to think how to implement this.
    #other module specific init
  
  ...module specific functions that you may need...
  
  def operate(augimage obj, idx):
      #obj is the augimage type object
      #idx is the index provided by the driver file(?) to append to image name to signify augmentation iteration
      
      #do shit here
      

some other stuff

Images can exist in two forms: cv2 (np array) and PIL (Image format). Save operations are performed with cv because ease of use. Incase of Image items, they are converted to cv format and then saved.

Can check flip.py for reference.

Todo:

  1. Readme having modules to be implemented
  2. TESTS (WEEK 3)

auglib's People

Contributors

pranjaldatta avatar aniketkishore100 avatar aayush1205 avatar intmanear avatar

Watchers

 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.