Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skimage error #90

Open
semel1 opened this issue Jul 26, 2021 · 3 comments
Open

skimage error #90

semel1 opened this issue Jul 26, 2021 · 3 comments

Comments

@semel1
Copy link

semel1 commented Jul 26, 2021

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
Copy link

mvpalheta commented Dec 31, 2021

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
Copy link

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.

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

@zcy5417
Copy link

zcy5417 commented Aug 2, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants