DmitryUlyanov / deep-image-prior

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

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

Open malonec3 opened 1 year ago

malonec3 commented 1 year 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 1 year ago

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

zalteck commented 11 months ago

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

zcy5417 commented 11 months ago

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