keras-vis icon indicating copy to clipboard operation
keras-vis copied to clipboard

I am working on gray scale images, but visualize_saliency returns three channels. What does each channel mean?

Open hw449 opened this issue 7 years ago • 2 comments

Hi @raghakot ,

Sorry to bother you. I am using saliency map on some gray scale image that has only one channel, but visualize_saliency still returns saliency maps with three channels. So what's the meaning for each channel? Is it possible to generate a saliency map with only one channel?

Thank you for developing tools that are so cool for our community!

Regards, Hai

hw449 avatar Dec 17 '17 04:12 hw449

You are probably using the official keras-vis version (e.g. from pip): There the saliency values are mapped to an RGB heat color coding (thus 3 channels). This behavior was updated in the last months: Now the raw saliency values are returned. You can see the change (old vs updated code) in this diff. So if you build the current version from source, you should have the desired behavior where only the raw saliency value is returned.

Awerick avatar Jan 15 '18 15:01 Awerick

Still not work, gray scale image input and it outputs three channels features. @Awerick @hw449 any solution ? What is the meaning of each channel ?

a6225301 avatar Dec 11 '18 14:12 a6225301