CNN from Scratch

LeNet5 to Others

Alex Punnen
Aug 1, 2022

Code: https://github.com/alexcpn/cnn_in_python

Building a CNN from scratch from old lecture pdf. Similar to LeNet5

Pdf source: http://cs231n.stanford.edu/slides/2017/cs231n_2017_lecture5.pdf

http://yann.lecun.com/exdb/publis/pdf/lecun-01a.pdf

The NetWork

Input (R,G,B)= [32.32.3] *(5.5.3)*6 == [28.28.6] * (5.5.6)*1 = [24.24.1] * (5.5.1)*16 = [20.20.16] * FC layer 1 (20, 120, 16) * FC layer 2 (120, 1) * FC layer 3 (20, 10) * Softmax (10,) =(10,1) = Output

Formula connecting Input Shape and Output shape for a CNN

Formula Excel https://docs.google.com/spreadsheets/d/1tsi4Yl2TwrPg5Ter8P_G30tFLSGQ1i29jqFagxNFa4A/edit?usp=sharing

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Alex Punnen
Alex Punnen

Written by Alex Punnen

SW Architect/programmer- in various languages and technologies from 2001 to now. https://www.linkedin.com/in/alexpunnen/

No responses yet

What are your thoughts?