How many calculations a network does
ResNet-50, a famous network from 2015, has about 25 million parameters, and for each photo it does about 4 billion multiplications, each followed by an addition. MobileNet v2, built for phones, has 3.5 million parameters and does about 300 million. That's more than ten times fewer, with only slightly lower accuracy.
With the weights stored as 32-bit numbers with a decimal point, 4 bytes each, MobileNet v2 takes up about 14 MB. With 8-bit quantization it drops below 4 MB.
- 3.5 Mparameters in MobileNet v2
- 300 Mmultiplications for each photo
- 14 MBits weights at 32 bits