Joker316701882 / Salient-Object-Detection

This is tensorflow implementation for cvpr2017 paper "Deeply Supervised Salient Object Detection with Short Connections"
443 stars 139 forks source link

`rgba2rgb(img)` is not working as wanted #10

Open shiquanwang opened 5 years ago

shiquanwang commented 5 years ago
def rgba2rgb(img):
    return img[:,:,:3]*np.expand_dims(img[:,:,3],2)

This function does not remove the alpha channel but multiplies RGB channel with the alpha channel in np.uint8 range. This seems a bug.