GithubHelp home page GithubHelp logo

Comments (3)

gui-miotto avatar gui-miotto commented on July 4, 2024

If this is not possible, a workaround could be achieved if albumentation returns me the "perceived" visibility after the transformation. In that way I could calculate the "real" visibility as the multiplication of the initial and the perceived visibilities.

from albumentations.

ternaus avatar ternaus commented on July 4, 2024

I do not understand the question yet.

As I understand, you crop parts from the image and bounding boxes that are not 100% contained in the image get truncated, right? And this becomes an issue.

Or not?

Could you provide some code?

from albumentations.

gui-miotto avatar gui-miotto commented on July 4, 2024

Hi @ternaus , thanks for the reply.

Yes, you are correct. They get truncated. Therefore their visibility is not 100% to start with.

Unfortunately I don't think providing code will make things any clearer, because this is more of an workflow problem. So let me give an hypothetical situation:

1 - Imagine my dataset have images 2000x2000 px.
2 - My model just works with images of 500x500.
3 - Since I need the full resolution to identify the objects, I should not shrink the images. What I do instead is to slice the full res image (2000x2000) into 16 non-overlapping 500x500 patches.
4 - Now, imagine that there is a 2000x2000 image with two objects. During the slicing process, one object gets cut in half. The other stays fully visible in a single patch.

Everything up to this point happens before training the model. Its dataset pre-processing and has nothing to do with Albumentations.

5 - Now I'll start training a model and use albumentations. Then comes the question: Given that I want to work with minimal visibility of 40%, which value of min_visibility should I give to albumentations?

  • If I use 40%, the object that was cut in half may end up being only 20% visible (40% of 50%)
  • If I use a higher value, that would be too conservative for the object that stayed fully visible.

from albumentations.

Related Issues (20)

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.