raghakot / keras-vis

Neural network visualization toolkit for keras
https://raghakot.github.io/keras-vis
MIT License
2.97k stars 664 forks source link

Finding the strongest activation map in a layer #134

Open abhigoku10 opened 5 years ago

abhigoku10 commented 5 years ago

@keisen @bradykieffer @fredrikluo @ahmedhosny Hi thanks for the code just wanted know , in a given layer for number of filters how to extract / visualize the filter which has the maximum magnitude or strongest activation map in the given filter layer . Can you pls point at code level too

keisen commented 5 years ago

Do you mean you need to find and visualize the filter outputing max values from all layers?

raghakot commented 5 years ago

you will need to forward the image through the network and get raw filter values yourself using K.function. once you know which filter you want, use ActivationMax visualization to see what that filter is looking for.

Does that help?

abhigoku10 commented 5 years ago

@keisen Not entirely from all the layer Ex: if with the first layer i am having 64 filters , i need to have maximum output for the first layer from 64 filters

@raghakot will check this method once