Coder Social home page Coder Social logo

Comments (3)

abhijithpunnappurath avatar abhijithpunnappurath commented on August 23, 2024

The output images are being saved as 16-bit images. See this line of testing code. In this case above, the 8 LSB bits hold the result, and the 8 MSB bits are zeros. This is why you are seeing black images.

Can you please try the following:

  1. Try a 16-bit image instead of 8-bit. You should not be seeing a black image now as output.
    python test.py --set_names Sintel_sample --type_8_or_16 1 --quant 6 --quant_end 16 --dep 4 --save_result 1

  2. For your 8-bit recovery test case above, convert the output 16-bit images to 8-bit as
    img = cv2.imread('kodim01_output.png',-1).astype(np.uint8)
    cv2.imwrite('kodim01_output_8bit.png',img)
    The images should be correctly visualized now.

  3. I am not sure why the PSNR and SSIM are not being calculated correctly. Can you confirm that your conda environment is using scikit-image=0.15.0?

from a-little-bit-more.

xunmeibuyue avatar xunmeibuyue commented on August 23, 2024

@abhijithpunnappurath Thanks very much for the anwser!

I find it works well on Google colab, as well as when I just use a single GPU.

This is really a beautiful work, simple but effective. I would like to learn from it!

from a-little-bit-more.

abhijithpunnappurath avatar abhijithpunnappurath commented on August 23, 2024

I see, thanks for letting me know.

Very happy to hear that you found our work interesting!
Thank you.

from a-little-bit-more.

Related Issues (2)

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.