Open semel1 opened 3 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
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
已收到!祝每天开开心心!!
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.