DeblurGAN
DeblurGAN copied to clipboard
ImportError: cannot import name 'SSIM' from 'ssim'
As usual with Python projects something is not working as it should:
ImportError: cannot import name 'SSIM' from 'ssim' (C:\Users\flamesoff\AppData\Local\Programs\Python\Python37\lib\site-packages\ssim\__init__.py)
The class SSIM is in ssimlib.py
I encountered the same error and it was easily solved by changing all the "SSIM" to lowercase.
@kongkong000111
Requirement already satisfied: ssim in c:\users\***\appdata\local\programs\python\python37\lib\site-packages (0.2.2)
@FlamesoFF That's it ,if install the ssim package recommended by the author.
Unfortunately, I gave up when I met the question of #130 . The parameters published by the author cannot be imported into the model~~Have you ever encountered this problem?
pip install ssim, you can solve the problem
pip install ssim, you can solve the problem
then change it , import ssim ,will be ok
@furuit already was told that it doesn't work:
Requirement already satisfied: ssim in c:\users***\appdata\local\programs\python\python37\lib\site-packages (0.2.2)
from ssim import ssim as SSIM
You have to install pyssim: pip install pyssim