Skip to content

Commit

Permalink
remove unused lab functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Zhang authored and Richard Zhang committed Aug 26, 2021
1 parent 6c5877c commit ecfae6f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lpips/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ def load_image(path):

return img

# def rgb2lab(input):
# from skimage import color
# return color.rgb2lab(input / 255.)

# def rgb2lab(in_img,mean_cent=False):
# from skimage import color
# img_lab = color.rgb2lab(in_img)
# if(mean_cent):
# img_lab[:,:,0] = img_lab[:,:,0]-50
# return img_lab

def tensor2im(image_tensor, imtype=np.uint8, cent=1., factor=255./2.):
image_numpy = image_tensor[0].cpu().float().numpy()
image_numpy = (np.transpose(image_numpy, (1, 2, 0)) + cent) * factor
Expand Down

0 comments on commit ecfae6f

Please sign in to comment.