convisualize_nb icon indicating copy to clipboard operation
convisualize_nb copied to clipboard

Visualisations for Convolutional Neural Networks in Pytorch

convisualize

Visualizations for Convolutional Neural Networks (CNNs) in Pytorch

The corresponding article can be found here!

Requirements:

  • Pytorch
  • Torchvision
  • Numpy
  • Matplotlib
  • Pillow

Note: In case you don't have a GPU, remove all instances of "cuda" and "cpu" from the notebook before running.

TODO

  • [X] Layer Outputs at all layers
  • [X] Filter outputs at a given layer
  • [X] Filter visualization at a given layer
  • [X] Image heatmap using Occlusion
  • [ ] Image heatmap using Grad Cam
  • [X] Class specific saliency maps
  • [X] SmoothGrad
  • [ ] Semantic segmentation using GrabCut
  • [X] Visualization of class models (Gradient Ascent)
  • [ ] Regularization techniques for class models (L2, Clip, Blur, etc.)
  • [ ] Guided Backprop
  • [ ] Filter visualization (Gradient Ascent)
  • [ ] Neural Texture Synthesis
  • [ ] Deep Dream
  • [ ] Neural Style Transfer

References