Closed bartmch closed 4 years ago
TF.adjust_brightness(img.convert('L'), bright)
seems to work. Can you confirm this doesn't break the image?
@bartmch Sorry for the late reply. Please check the shape of img, it should be in HxWxC and the datatype of it should be 'uint8', otherwise the error will prompt. I think maybe you input a 16bit image into this function.
Hi, while train.py from deCoVnet I'm getting an error from dataset_ops.py at line 108
# Color Transforms def colorop(img, bright, contrast): _img = TF.adjust_brightness(img, bright) _img = TF.adjust_contrast(_img, contrast) return _img
the error is sayingImage is a PIL image and bright is a float