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

Missing plt import in lpips/__init__.py line 83 #80

Closed
NicolasMICAUX opened this issue Oct 1, 2021 · 1 comment
Closed

Missing plt import in lpips/__init__.py line 83 #80

NicolasMICAUX opened this issue Oct 1, 2021 · 1 comment

Comments

@NicolasMICAUX
Copy link

Missing plt import in lpips/__init__.py line 83 resulting in error NameError: name 'plt' is not defined.
should be :

**import matplotlib.pyplot as plt**
img = (255*plt.imread(path)[:,:,:3]).astype('uint8')
@richzhang
Copy link
Owner

Yikes, added. Thanks!

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

2 participants