Skip to content

Commit

Permalink
Merge pull request #5 from ricdodds/fix/color-correction
Browse files Browse the repository at this point in the history
Color correction
  • Loading branch information
jommarin authored Oct 6, 2021
2 parents c4bf68f + 8334d72 commit aa6940e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions deepliif/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,8 @@ def tensor2im(input_image, imtype=np.uint8):
return image_numpy.astype(imtype)


def cv_to_pil(img):
return Image.fromarray(
cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
).convert('RGB')


def tensor_to_pil(t):
return cv_to_pil(tensor2im(t))
return Image.fromarray(tensor2im(t))


def diagnose_network(net, name='network'):
Expand Down

0 comments on commit aa6940e

Please sign in to comment.