DmitryUlyanov / deep-image-prior

Image restoration with neural networks but without learning.
https://dmitryulyanov.github.io/deep_image_prior
Other
7.9k stars 1.43k forks source link

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

Open malonec3 opened 2 years ago

malonec3 commented 2 years ago

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

zcy5417 commented 2 years ago

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

zalteck commented 12 months ago

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

zcy5417 commented 12 months ago

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