Visualizing Convolutions
I’m currently learning about Convolutional Neural Nets from deeplearning.ai, and boy are they really powerful. Some of them even have cool names like Inception Network and make use of algorithms like You Only Look Once (YOLO). That is hilarious and awesome. This notebook/post is an exercise in trying to visualize the outputs of the various layers in a CNN. Let’s get to it. Setup import numpy as np import pandas as pd from math import ceil import matplotlib.pyplot as plt import matplotlib.image as mpimg from sklearn.model_selection import train_test_split from keras import layers from keras.layers import Input, Dense, Activation, ZeroPadding2D, Flatten, Conv2D from keras.layers import AveragePooling2D, MaxPooling2D from keras.models import Model from keras.datasets import fashion_mnist from keras.optimizers import Adam from keras.models import load_model To begin with, I’ll use the Fashion-MNIST dataset. ...