Google Tutorial Link: https://developers.google.com/codelabs/tensorflow-4-cnns#0
This project explores how a Convolutional Neural Network processes images using the Fashion MNIST dataset.
The goal is not only to train a model, but also to understand what happens inside the CNN by visualizing feature maps from different convolution and pooling layers.
In this project, I built a CNN using TensorFlow and Keras to classify Fashion MNIST images. Fashion MNIST contains grayscale images of clothing items such as shirts, shoes, bags, and ankle boots.
The model uses:
Conv2Dlayers to learn visual patterns such as edges, curves, and texturesMaxPooling2Dlayers to reduce image size while keeping important featuresFlattento convert feature maps into a 1D vectorDenselayers to classify the image into one of 10 categories
model2 = tf.keras.models.Sequential([
tf.keras.layers.Conv2D(64, (3,3), activation='relu', input_shape=(28, 28, 1)),
tf.keras.layers.MaxPooling2D(2, 2),
tf.keras.layers.Conv2D(64, (3,3), activation='relu'),
tf.keras.layers.MaxPooling2D(2, 2),
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(128, activation='relu'),
tf.keras.layers.Dense(10, activation='softmax')
])https://colab.research.google.com/drive/1LZWxHkvVnvZE2ntAm3AeOH0pUoVn5jt9?usp=sharing
I have a lot of explanations written in my Google Colab, and most of them coming from the tutoring link, ChatGPT, and Google Search.
All rights and credits belong directly to the owner. No copyright infringement intended.
This project is intended strictly for educational and academic purposes. Please enjoy and try out the project yourself.