Skip to content

Commit aa6940e

Browse files
authored
Merge pull request #5 from ricdodds/fix/color-correction
Color correction
2 parents c4bf68f + 8334d72 commit aa6940e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

deepliif/util/util.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,8 @@ def tensor2im(input_image, imtype=np.uint8):
4444
return image_numpy.astype(imtype)
4545

4646

47-
def cv_to_pil(img):
48-
return Image.fromarray(
49-
cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
50-
).convert('RGB')
51-
52-
5347
def tensor_to_pil(t):
54-
return cv_to_pil(tensor2im(t))
48+
return Image.fromarray(tensor2im(t))
5549

5650

5751
def diagnose_network(net, name='network'):

0 commit comments

Comments
 (0)