This repository is an attempt to code up a few visualization techniques in Tensorflow 2 mentioned by Andrej Karpathy in his Lecture (Slides). The notebooks will directly run on Google Colab. You just need to upload the example images present in the images folder to Colab while running these notebooks. I have also given links to the corresponding papers and sources within each notebook.
It is recommended that you see the notebooks in the order given below as it builds up from intuition based visualization techniques to optimization based techniques.
- occlusion_experiment.ipynb
- filter_visualization.ipynb
- activation_maximization.ipynb
- saliency_map.ipynb
- grad_cam.ipynb
I have tried my best to reproduce the techniques presented in those papers. Please feel free to provide any improvements and suggestions.