deep-image-prior icon indicating copy to clipboard operation
deep-image-prior copied to clipboard

ImportError: cannot import name 'compare_psnr' from 'skimage.measure'

Open malonec3 opened this issue 2 years ago • 3 comments

For superresolution.py and denoising.py

I believe this function was renamed in release 0.16 and the older compare_psnr name was removed in 0.18. You should be able to import under the new name with: from skimage.metrics import peak_signal_noise_ratio

malonec3 avatar Nov 21 '22 10:11 malonec3

已收到!祝每天开开心心!!

zcy5417 avatar Nov 21 '22 10:11 zcy5417

I am having issues as well to import the function with the new name "peak_signal_noise_ratio"

zalteck avatar Nov 28 '23 10:11 zalteck

已收到!祝每天开开心心!!

zcy5417 avatar Nov 28 '23 10:11 zcy5417