Comments (8)
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.
Thank you very much!
from inpainting_gmcnn.
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.
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.
thank you for your help!
from inpainting_gmcnn.
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.
You can refer to this.
If you cannot access to that file, you can email me for it.
from inpainting_gmcnn.
thank you very much!
from inpainting_gmcnn.
Related Issues (20)
- The results not good as showed in the paper HOT 3
- Bug with pretrained model celebahq_512x512_rect/ HOT 5
- data_file when training own images HOT 9
- Question: Training the model with a set of images already containing white parts. HOT 3
- Can't to do equal result
- My computer's gpu doesn't seem to support me HOT 2
- VGG19_weights?
- The loss,.py
- Possible bug in conv3 branch
- Using of ConfidenceDrivenMaskLayer
- Wrong results after Tensorflow 2x model conversion
- AttributeError: module 'tensorflow' has no attribute 'layers' HOT 1
- Performance issue in the definition of free_form_mask_tf, tensorflow/net/ops.py(P1) HOT 1
- TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
- AttributeError: 'list' object has no attribute 'argmax'
- MY question
- Which folder is mask_shape in?
- Why won't the error be updated?
- WGAN-GP not cal in pytorch's version?
- New easy to use inpainting method with transformers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inpainting_gmcnn.