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

skimage error #90

Open semel1 opened 3 years ago

semel1 commented 3 years ago

Any Jupyter notebook throws an error: ImportError: cannot import name 'compare_psnr' from 'skimage.measure' (C:\ProgramData\Miniconda3\lib\site-packages\skimage\measure__init__.py). Tried two versions scikit-image 0.18.2 and scikit-image 0.16.2 (installed from PIP), Windows 10, Python 3.7.10 PyTorch 1.9.0 Great appreciation for suggestion.

mvpalheta commented 2 years ago

From de skimage doc: the function was renamed from 'skimage.measure.compare_psnr' to 'skimage.metrics.peak_signal_noise_ratio'. Then, the import must be like this:

from skimage.metrics import peak_signal_noise_ratio as compare_psnr

PooyanRezaeipour commented 1 year ago

Any Jupyter notebook throws an error: ImportError: cannot import name 'compare_psnr' from 'skimage.measure' (C:\ProgramData\Miniconda3\lib\site-packages\skimage\measureinit.py). Tried two versions scikit-image 0.18.2 and scikit-image 0.16.2 (installed from PIP), Windows 10, Python 3.7.10 PyTorch 1.9.0 Great appreciation for suggestion.

check this out: https://stackoverflow.com/a/74935682/15327155

zcy5417 commented 1 year ago

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