CNN from Scratch

LeNet for Digit Recognition

Alex Punnen
Aug 1, 2022

DRAFT

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

--

--

Alex Punnen

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