You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am so grateful for your excellent work! However, the program collapses when I tried to correct an image with alpha channel.
Solution:
Alpha channel should be ignored when reading an image.
classUtils:
""" Couple of utils for loading the images. """@staticmethoddefload_rgb(path):
img_rgb=np.array(Image.open(path)) /255returnimg_rgb# Here should be img_rgb[:,:,:3] like in load_lms()@staticmethoddefload_lms(path):
img_rgb=np.array(Image.open(path)) /255img_lms=np.dot(img_rgb[:,:,:3], Transforms.rgb_to_lms())
returnimg_lms
The text was updated successfully, but these errors were encountered:
I am so grateful for your excellent work! However, the program collapses when I tried to correct an image with alpha channel.
Solution:
Alpha channel should be ignored when reading an image.
The text was updated successfully, but these errors were encountered: