Coder Social home page Coder Social logo

Comments (6)

wangruixing avatar wangruixing commented on July 23, 2024

Did you mean L2 loss is around 1000? tv loss is around 10^6? In tv loss(local smooth loss) function, the input is origin image, the output is the illumination map. Actually, during my training process, the loss is around 0.033. I suggest you can only use the input image pixel divide illumination map at first, then calculate the l2 loss between the predicted image and ground truth. Only use l2 loss and make sure the loss is right at first.

from deepupe.

timemao avatar timemao commented on July 23, 2024

Could you make sure metrics.py tv-loss code?

from deepupe.

wangruixing avatar wangruixing commented on July 23, 2024

It is the local smoothness code, not standard tv loss.

from deepupe.

wangruixing avatar wangruixing commented on July 23, 2024

The second parameter is not a predicted image, it is the illumination map.

from deepupe.

timemao avatar timemao commented on July 23, 2024

Actually I calculate illumination map with


S=min(1.0,max(im1d,im1d./(im2d+0.0001)));


You mean the second parameter not like this? In metrics.py, you use tf.image.rbg_to_grayscale, this function get 1-channal output

from deepupe.

wangruixing avatar wangruixing commented on July 23, 2024

You forgot to calculate the mean. tf.reduce_mean. and during processing image, the scale is 0-1.

from deepupe.

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.