AttributeError: module 'skimage.measure' has no attribute 'compare_ssim'
时间: 2023-09-15 19:17:54 浏览: 184
AttributeError: module 'tensorflow.compat.v1' has no attribute '
This error occurs when you try to use the compare_ssim function from the skimage.measure module, but it is not present in the module. This can happen if you are using an older version of scikit-image or if the function has been removed or renamed in a newer version.
To fix this error, you can try updating scikit-image to the latest version using the command:
```
pip install -U scikit-image
```
If the issue persists, you can try using an alternative function or library for image comparison, such as OpenCV or Pillow.
阅读全文