Git Product home page Git Product logo

Comments (4)

angeloskath avatar angeloskath commented on July 28, 2024 1

Hi,

It means that the patch starts outside the original image which is assumed to be padded with zeros. So starting at a large negative offset for instance would guarantee a black output image. Similarly very large positive offsets also guarantee a black output image.

You can see the C++ code for extract_patches in ats/ops/extract_patches/extract_patches.cc. You can see in lines 108 and 109 that we check if a certain pixel is inside and then in line 119 we copy 0 if it is not inside.

Cheers,
Angelos

from attention-sampling.

angeloskath avatar angeloskath commented on July 28, 2024 1

Hm I am not sure I understand. What would the bounding box enforce? That the indices do not go out of the bbox? Then what does it mean to extract a patch centered at 0,0 with patch size 50,50? 0 to 50 or -25 to 25?

from attention-sampling.

darleybarreto avatar darleybarreto commented on July 28, 2024

Are these off-image indices bounded? Suppose I want to make a bounding box from each offset, a value may be outside the padded ones So the best thing to do would be clipping them to the range [0, MAXSIZE], right?

from attention-sampling.

darleybarreto avatar darleybarreto commented on July 28, 2024

The bounding box wouldn't enforce the offsets value range, I want them to be used on the original high dimensional images to perform cropping (for visualization purposes) and be able to compute some metrics (like IoU)

from attention-sampling.

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.