AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.68k stars 7.96k forks source link

Guided Backpropagation ("deconvolution") #3539

Open sealedtx opened 5 years ago

sealedtx commented 5 years ago

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 commented 5 years ago

@sealedtx Hi,

I will think about it.

Can you get URL to paper, source code or detailed explanation?

sealedtx commented 5 years ago

@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