uclaopt / Provable_Plug_and_Play

[ICML 2019] Plug-and-Play Methods Provably Converge with Properly Trained Denoisers
66 stars 18 forks source link

PSNR Modification #6

Open Sane-viola opened 4 months ago

Sane-viola commented 4 months ago

hello,

I view we haven't the same PSNR. the deep learning algorithm use the false PSNR. I propose to delete psnr in utils and put :

from skimage.metrics import peak_signal_noise_ratio

peak_signal_noise_ratio(img1,img2, data_range=255) and for x_init, because it doesn't work if it's not modified : `x_init = np.fft.ifft2(y).real # .real modification