sharif-apu / BJDD_CVPR21

This is the official implementation of Beyond Joint Demosaicking and Denoising from CVPRW21.
69 stars 20 forks source link

test on McM #10

Open xingwz opened 2 years ago

xingwz commented 2 years ago

Hi, this work is fantastic and interesting. I have some questions when I using your code to test Bayer mode on McM. I would like to reproduce the results of Table.2 in your paper. I used your code and pertained bayer model and got the resulting images are in size of 512x512. However, the ground truth of McM is smaller (500x500). How do you evaluate the metrics (psnr/ssim)? There are two main questions:

  1. Line 26 of inferenceUtils.py, sigma = self.noiseLevel/100. maybe should be sigma = self.noiseLevel/255.?
  2. Line 64-75 of inferenceUtils.py, resizeDimension = (512, 512) img = img.resize(resizeDimension) Why the image should be resized to 512, 512 before testing?

BR, Wenzhu