← All projects

2026

MobileNet & FPN from Scratch

Paper-to-code reimplementations of MobileNetV1/V2 and a Feature Pyramid Network in Keras, trained on CIFAR-10/100. These became the backbone of my 3D detector.

  • TensorFlow
  • Keras
  • CIFAR-10
  • CIFAR-100
  • Paper implementation
  • Depthwise-separable convolutions
  • Inverted residuals (V2)
  • Top-down FPN pathway

Why

Before building a detector that has to run on a phone, I wanted to understand every layer in its backbone. So I read the papers and implemented the networks myself instead of importing them.

What’s inside

  • MobileNetV1: depthwise-separable convolutions with the width multiplier, built layer by layer and checked against the paper’s architecture table.
  • MobileNetV2: inverted residual blocks with linear bottlenecks.
  • Classification on CIFAR-10 and CIFAR-100: a full training notebook, from data loading to evaluation.
  • Feature Pyramid Network: the top-down pathway with lateral connections, built on top of the MobileNet features. It is reused as the backbone in Monocular 3D Vehicle Detection.

The MobileNet code and CIFAR notebook are in the linked repo.