Giter Site home page Giter Site logo

Washed-out colors about ahdrnet HOT 4 CLOSED

Anna-Szal avatar Anna-Szal commented on August 19, 2024 1
Washed-out colors

from ahdrnet.

Comments (4)

Anna-Szal avatar Anna-Szal commented on August 19, 2024 1

Well, sort of.. The AHDRNet and all similar models merge 3 photos into one, where pixel values have range far greater than 256 (the HDR), which also means you cannot visualize it easily - your image viewer will probably just trim the values and you'll get a very dark image. So you need some kind of tone mapping (from high range to 256 values) - either do it manually in a Photoshop-like editor, or develop an algorithm (or another neural model). The authors here use a very primitive tone mapping operator, this one:
output = torch.log(1 + 5000 * output.cpu()) / torch.log(Variable(torch.from_numpy(np.array([1+5000])).float()))

Every other paper that used this operator with this dataset reported similar washed-out colored pictures, except for one - it had vivid colors, but the authors explicitly stated that they used image editor afterwards, so I guess it's safe to say that the authors of the AHDRNet did the same thing.

from ahdrnet.

Zasion avatar Zasion commented on August 19, 2024 1

Sincerely appreciate your answer : ) , I have solved this problem on MATLAB with tonemap function[tonemap(data,'AdjustLightness',[0,1],'AdjustSaturation',6)]. And I got a similar effect to the author's. My supervisor reminded me to read the paper carefully, I should have realized this problem earlier. Thank you again! Love from CN ❤️

from ahdrnet.

Zasion avatar Zasion commented on August 19, 2024

I encountered the same situation as you, did you solve it?

from ahdrnet.

Anna-Szal avatar Anna-Szal commented on August 19, 2024

Huh, well that makes at least two of us, can't believe i missed this :D
I remember i used some openCV functions instead, but maybe this one is better :)

from ahdrnet.

Related Issues (19)

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.