Smallest CNN possible

Smallest CNN taking 3x3 pictures as inputs and able to recognize 4 classes

You are now following this Submission

This very simple network shows an example of a CNN learning to distinguishv between 4 simple classes. The input image is only 3x3 pixels and the convolutional filter is 2x2 pixels. The network is composed of one convolutional layer and 1 fully connected layer. The small size of the network helps reducing computation time so as to confirm functionality. I've added comments to explain the basics of how it works, if that can help anyone.

Cite As

Lyes Demri (2026). Smallest CNN possible (https://www.mathworks.com/matlabcentral/fileexchange/121577-smallest-cnn-possible), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0