AttributeError: module 'skimage.measure' has no attribute 'compare_psnr'
时间: 2023-09-13 12:04:49 浏览: 160
AttributeError: module 'tensorflow.compat.v1' has no attribute '
This error occurs when you try to use the function `compare_psnr()` from the `skimage.measure` module in Scikit-Image, but it is not available or has been removed from the module.
It is possible that the function has been deprecated or replaced by another function in a newer version of Scikit-Image. You can check the Scikit-Image documentation to see if there is an alternative function or a different way to achieve the same result.
Alternatively, you can try reinstalling or updating Scikit-Image to see if the function becomes available again. You can do this using the following command in your terminal or command prompt:
```
pip install -U scikit-image
```
This will update Scikit-Image to the latest version available on PyPI (Python Package Index).
阅读全文