tldrafael / CNNVisualizations

Plain implementation of Grad-CAM, gradient ascent, and adversarial examples for semantic segmentation and classification.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

See the repo tutorial on .

The topics approached on this repo are:

  • Region importance at any layer using Grad-CAM.
    • With or without guided-backpropagation.
  • Optimize an input to maximize a neuron or an output with gradient ascent.
    • Deep dream, optimization starting from an existing image.
  • Generate adversarial examples.

The results are presented for classification and semantic segmentation.

Semantic Segmentation

The images bellow illustrate the RTK Dataset.

GradCAM

Input Synthesis

Adversarial Examples

The rows follows the respective order: the adversarial example, the isolated noised (scaled 3x for better visualization), and the prediction results.

Classification

The images bellow illustrate the ImageNet.

GradCAM

Input Synthesis

Adversarial Examples

  • The noise was scaled 10x for better visualization. The adversarial predictions were: 'malinois', 'screw', 'matchstick', 'dial telephone', and 'briard'.

References

About

Plain implementation of Grad-CAM, gradient ascent, and adversarial examples for semantic segmentation and classification.

License:MIT License


Languages

Language:Python 100.0%