Git Product home page Git Product logo

imagecomposer's Introduction

ImageComposer

  • Approach this by creating a bounding box around a single png (e.g. just around the object), apply position based augmentations, then stick it on a background. This is the way to get as much help as possible from Albumentations.

image

Docs

Made the mistake of trying to find my own way to shift annotations and foreground images at once. Augmentation packages will definitely already have better methods to support this https://albumentations.ai/docs/getting_started/mask_augmentation/

Still trying to see if anyone else has done this and tidied it up to be useable, https://www.kaggle.com/code/mayukh18/stitch-boxes-augmentation/notebook this notebook seems to do similar if I interpret it rightly. They call it stitch-boxes. Not sure if they get the details right for how you combine overlapping annotations / if it supports segmentations.

https://github.blog/2016-08-22-publish-your-project-documentation-with-github-pages/

NB: Possible that BlenderProc offers all this in a much more powerful way. I just couldn't get it going on my laptop and wanted to start experimenting.

You specify the background and foreground objects, range of feasible positions, and the package does the rest.

A great way to deal with correlated components (my made up name for when a visual property distracts a computer vision model from what it's meant to learn). What I mean by this is metadata (like a watermark) which correlates with the true classes, but not always.

image

Pasting Rules

  • Define all the reasonable positions for an object to be with a function e.g. x2 + y2 < 3 or similar
  • Would be great if you could freehand / poly draw a region of an image, upon which the items can be placed, with something like label-studio.

Want to then be able to repaste the below elsewhere from the polygon label.

Resources

https://www.youtube.com/watch?v=voRFbl-GKGY

image

ML integrations

Augmentations

Just integrate imgaug or albumentations. Aim to leave the choice to the user. This package can be augmentation agnostic.

  • Rotate
  • Add noise
  • Flip
  • Resize
  • Rotate
  • Change brightness

imagecomposer's People

Contributors

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