Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
richzhang authored Oct 1, 2021
1 parent c82f1ed commit 31bc127
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lpips/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def load_image(path):
import cv2
return cv2.imread(path)[:,:,::-1]
else:
import matplotlib.pyplot as plt
img = (255*plt.imread(path)[:,:,:3]).astype('uint8')

return img
Expand Down

0 comments on commit 31bc127

Please sign in to comment.