Hello, Alexey!
Do you have plans to implement such feature, so it will be possible to visualise what the network has learnt, or which parts of an input image are most characteristic of certain class? It would be great for understanding training results.
Guided Backpropagation consists of performing a backward pass through the network and computing the gradient w.r.t. an input image. In order to visualise which parts of an image are characteristic of an certain class, the activations of the softmax class posterior layer are all set to zero, except the activation for the class of interest, and subsequently the gradient w.r.t. an input image will activate strongest in the areas characteristic of that class.
@AlexeyAB I haven't found exact paper about Guided Backpropagation(GB), but this paper has another approach to visualize CNN compared to GB and lot of interesting references to similar methods
May be this pytorch implementation could be useful
Hello, Alexey! Do you have plans to implement such feature, so it will be possible to visualise what the network has learnt, or which parts of an input image are most characteristic of certain class? It would be great for understanding training results.
Guided Backpropagation consists of performing a backward pass through the network and computing the gradient w.r.t. an input image. In order to visualise which parts of an image are characteristic of an certain class, the activations of the softmax class posterior layer are all set to zero, except the activation for the class of interest, and subsequently the gradient w.r.t. an input image will activate strongest in the areas characteristic of that class.