Giter Site home page Giter Site logo

Comments (4)

plemeri avatar plemeri commented on June 12, 2024 1

Hi @babyta and @xkaple00, if threshold is specified, images with shorter side length (either width or height) below the threshold value will not deploy pyramid blending. On the other hand, if threshold value is not specified (None), then it will not deploy pyramid blending what so ever.

Also, because pyramid blending is a post-processing method combining LR and HR predictions into single mask, there could be some drawbacks like 1~2 pixel shift.

Please notice that pyramid blending will produce meaningful results only when the given image is high resolution, because pyramid blending is proposed to produce high resolution prediction when without high resolution dataset available. It is obvious when high resolution dataset is available, we definitely need to use them for high quality prediction. One of our contributions was, even without costly high resolution dataset, we were able to generate competitive high quality saliency map with pyramid blending technique.

Also, if you want to use our method in real-world scenario, please use Plus_Ultra configuration, or our python API / cli tool transparent-background.

Lastly, if you have an idea to solve the problem, please contact me or you can create a pull request.
Thank you for letting me know such problem. 😄

from inspyrenet.

babyta avatar babyta commented on June 12, 2024

512
The picture above shows the result of threshold 512
None
The picture above shows the result of threshold None
Please ignore the quality of the mask images itself,focusing on the edges of the two images, you can see that they are not aligned

from inspyrenet.

xkaple00 avatar xkaple00 commented on June 12, 2024

I also noticed such behavior. In my experiments if I do inference on images larger than 512 px with --threshold parameter = 512, the produced mask is shifted a few pixels up and left in comparison with --threshold=None

from inspyrenet.

babyta avatar babyta commented on June 12, 2024

Thank you for your reply, your sharing is very useful!

from inspyrenet.

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.