Coder Social home page Coder Social logo

Comments (8)

shepnerd avatar shepnerd commented on July 21, 2024

No, there is not currently. The PSRN and SSIM values are measured by the built-in functions in matlab 2018. For the tensorflow version of psnr and ssim, you may refer to https://www.tensorflow.org/api_docs/python/tf/image/psnr and https://www.tensorflow.org/api_docs/python/tf/image/ssim.
If you just wanna compute the psnr and ssim using python, you can refer to the following codes
from skimage import measure
Then,
psnr = measure.compare_psnr(im1, im2)
ssim = measure.compare_ssim(im1, im2, multichannel=True).

from inpainting_gmcnn.

godchengzhihang avatar godchengzhihang commented on July 21, 2024

Thank you very much!

from inpainting_gmcnn.

godchengzhihang avatar godchengzhihang commented on July 21, 2024

First of all, thank you very much for your help. I still have a problem and I don't see the code for quantitative analysis in your code. How do you implement the code for quantitative analysis?

from inpainting_gmcnn.

shepnerd avatar shepnerd commented on July 21, 2024

For imagenet and place2, we randomly pick n (200 for imagenet since msnps takes minutes to complete one image, and 2k for places2) images from the validation set and conduct inpainting on these images with the central rectangle mask. The psnr and ssim values are evaluated on the inpainting output and their corresponding ground truth. For paris streetview and celeba-hq, all validation/test images are used. The evaluations are also with central rectangle mask.

from inpainting_gmcnn.

godchengzhihang avatar godchengzhihang commented on July 21, 2024

thank you for your help!

from inpainting_gmcnn.

godchengzhihang avatar godchengzhihang commented on July 21, 2024

I am sorry to bother you again. Can you send me a reference for this part of the code? Because I really need this part of the code. @shepnerd

from inpainting_gmcnn.

shepnerd avatar shepnerd commented on July 21, 2024

You can refer to this.

If you cannot access to that file, you can email me for it.

from inpainting_gmcnn.

godchengzhihang avatar godchengzhihang commented on July 21, 2024

thank you very much!

from inpainting_gmcnn.

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.