GithubHelp home page GithubHelp logo

Normalization about dmenet HOT 7 CLOSED

codeslake avatar codeslake commented on September 26, 2024
Normalization

from dmenet.

Comments (7)

ryanxingql avatar ryanxingql commented on September 26, 2024 1

Thank you so much ^ ^

from dmenet.

ryanxingql avatar ryanxingql commented on September 26, 2024 1

@codeslake Thank you!

from dmenet.

codeslake avatar codeslake commented on September 26, 2024

Hi, @ryanxingql.

The predicted defocus map is in the range [0, 1], so the scipy.misc.toimage() function does not normalize the defocus map as we provided the appropriate range. Note that the ground truth defocus maps are also in the same range between 0 and 1.

We've provided sigma_map to get the actual sigma value.

from dmenet.

ryanxingql avatar ryanxingql commented on September 26, 2024

Thank you!
And also, what is the use of the sigma map? Is it for deblurring?

from dmenet.

codeslake avatar codeslake commented on September 26, 2024

Thank you! And also, what is the use of the sigma map? Is it for deblurring?

Yes!

from dmenet.

ryanxingql avatar ryanxingql commented on September 26, 2024

Hi @codeslake, I would like to ask you a question.

My understanding:
Our gray-scale defocus maps are ranging from 0 to 255.
Therefore, pixels with 0-values are focused, while the maximal available defocus value is 255 since the maximal COC for training is 15.
If a object in test images reaches out of this COC, its defocus value is still 255. In this situation, the output is somehow incorrect.

Am I right? Thank you.

from dmenet.

codeslake avatar codeslake commented on September 26, 2024

Yes, you are right.
DMENet will not be able to accurately predict the COC values of a test image, if the COC values are larger than the maximum COC used to create the training set.

from dmenet.

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.