Small two-convolution CNN classifying 28x28 greyscale Fashion-MNIST images into 10 clothing classes. Both convolutions are strided (no pooling), keeping feature maps at 12x12 and 6x6, followed by a single Linear classifier. Zero-mean (weight-standardized) weights, BatchNorm folded, ReLU only. Validated on the ECS-DoT EVB with ECS-Studio 1.140.0.
Compiled with ECS-Compiler in ECS-Studio 1.140.0 and verified on a physical ECS-DoT EVB.
This repository is a ready-to-use model folder for ECS-Compiler, the AI pipeline of ECS-Studio. It holds the ONNX model and its calibration and evaluation data. The verified result was built with the default ECS-Compiler settings; keep them unchanged to reproduce it.
Download the model folder, either from the Files tab of this page or with the Hugging Face CLI:
hf download emass-ai/fashion_mnist_lenet --local-dir fashion_mnist_lenet
In ECS-Studio (1.140.0 or later), open a project for the ECS-DoT EVB, open the ECS-Compiler panel and
choose fashion_mnist_lenet.onnx as the model file. The panel loads fashion_mnist_lenet_train.npz (calibration) and fashion_mnist_lenet_test.npz
(evaluation) from the same folder automatically.
Click Start Pipeline, then Build and Upload to run the model on the board. The ECS-Compiler User Guide describes each step.
| Model type | image_classification |
| Architecture | Conv5x5 s2 1->24 (28->12) + BN + ReLU; Conv3x3 s2 p1 24->48 (12->6) + BN + ReLU; Flatten(1728); Linear 1728->10; Softmax |
| Input | input [1, 1, 28, 28] float32 (greyscale image, 1x28x28 (NCHW)) |
| Preprocessing | x = (pixel/255 - 0.2860) / 0.3530 on the 28x28 uint8 image; layout NCHW [1,1,28,28] |
| Output | output [1, 10] float32 |
| Labels | T-shirt/top, Trouser, Pullover, Dress, Coat, Sandal, Shirt, Sneaker, Bag, Ankle boot |
| Model size (float) | 111.6 KB |
| Parameters | 28,330 |
| Model | Precision | Board | Inference Time | Library Size | Compute Unit |
|---|---|---|---|---|---|
| fashion_mnist_lenet | int8 | ECS-DoT EVB | 4.29 ms | 52.2 KB | DLA + CPU |
Inference time is the measured time of one dla_infer() call on the board (median of 204 runs, ECS-DoT at 50 MHz). Library size is the compiled model library libdla.a (5 layers on the DLA, 1 on the CPU).
On-board verification: Run on 3 real samples. The board's output matched the compiler's expected output exactly, and its prediction matched ONNX Runtime on every sample (cosine similarity 0.9998 or higher). On the 200-sample evaluation set the board (int8) scored 92.50% against 93.50% for the float model on the same samples, and agreed with ONNX Runtime on 198 of 200 samples.
90.92% top-1 accuracy on Fashion-MNIST, official 60,000 train / 10,000 test; float accuracy on full 10,000 test (10,000 samples, MIT), measured with ONNX Runtime on the float model.
| File | Contents | Download |
|---|---|---|
fashion_mnist_lenet.onnx |
The ONNX model | Download |
fashion_mnist_lenet_train.npz |
Calibration set the board build quantizes with | Download |
fashion_mnist_lenet_test.npz |
Evaluation set | Download |
sample_input.npz |
The real samples run on the board (x, with labels y) |
Download |
LICENSE |
License | Download |
README.md |
This model card | Download |
apache-2.0; see LICENSE. The training data keeps its own licence (see Training Data).2d655690e063.fashion_mnist_lenet_test.npz 629.3 kBfashion_mnist_lenet_train.npz 402.9 kBfashion_mnist_lenet.onnx 114.2 kBsample_input.npz 9.9 kB