CNN from Scratch
LeNet5 to Others
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
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