DeblurGAN icon indicating copy to clipboard operation
DeblurGAN copied to clipboard

ImportError: cannot import name 'SSIM' from 'ssim'

Open f1am3d opened this issue 5 years ago • 10 comments

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)

f1am3d avatar May 06 '19 09:05 f1am3d

The class SSIM is in ssimlib.py

kongkong000111 avatar May 06 '19 11:05 kongkong000111

I encountered the same error and it was easily solved by changing all the "SSIM" to lowercase.

Yang-J-LIN avatar May 12 '19 03:05 Yang-J-LIN

@kongkong000111

Requirement already satisfied: ssim in c:\users\***\appdata\local\programs\python\python37\lib\site-packages (0.2.2)

f1am3d avatar May 12 '19 16:05 f1am3d

@FlamesoFF That's it ,if install the ssim package recommended by the author.

kongkong000111 avatar May 13 '19 01:05 kongkong000111

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?

kongkong000111 avatar May 13 '19 01:05 kongkong000111

pip install ssim, you can solve the problem

furuit avatar May 30 '19 07:05 furuit

pip install ssim, you can solve the problem

then change it , import ssim ,will be ok

furuit avatar May 30 '19 07:05 furuit

@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)

f1am3d avatar May 30 '19 11:05 f1am3d

from ssim import ssim as SSIM

jtlz2 avatar Jul 03 '19 12:07 jtlz2

You have to install pyssim: pip install pyssim

mardukbp avatar Dec 15 '20 22:12 mardukbp