raghakot / keras-vis

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

[question] seed_input for CAM methods #168

Open ltetrel opened 5 years ago

ltetrel commented 5 years ago

Hi everyone,

And thanks for this wonderfull tool. I am using it to better understand the different ways to interpret a CNN :)

So I was wondering, for Class Activation Maps, could we seed a random noise and let it converge until it maximizes the activation for one specific class ? Using an input image (like in visualize_cam) helps him to converge then ? I really see this problem as a generative model, so we could also use a regularizer on the loss (from a trained GAN for example, or other generative model).

Thanks,