Skip to content

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

License

Notifications You must be signed in to change notification settings

tldrafael/CNNVisualizations

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages