CoolFace
Modelpublic

STMicroelectronics/fdmobilenet_pt

sourceHugging Faceapache-2.0updated 8mo agoView on Hugging Face
0likes
Model Card

FDMobileNet

Use case : Image classification

Model description

Fast-Downsampling MobileNet (FDMobileNet) is an optimized variant of MobileNet designed for extremely fast inference. It achieves speed improvements through aggressive early spatial reduction while maintaining reasonable accuracy.

FDMobileNet employs a fast downsampling strategy that reduces spatial dimensions early in the network to minimize computation. It retains depthwise separable convolutions inherited from MobileNet for parameter efficiency, and uses a width multiplier (Alpha) to scale the number of channels (a025 = 0.25x, a050 = 0.5x, a075 = 0.75x).

Among the fastest models in the model zoo, FDMobileNet is ideal for ultra-low-latency real-time applications and battery-powered devices with strict power constraints.

(source: https://arxiv.org/abs/1802.03750)

The model is quantized to int8 using ONNX Runtime and exported for efficient deployment.

Network information

Network InformationValue
FrameworkTorch
MParams~0.37–1.77 M
QuantizationInt8
Provenancehttps://github.com/qinzheng93/FD-MobileNet
Paperhttps://arxiv.org/abs/1802.03750

Network inputs / outputs

For an image resolution of NxM and P classes

Input ShapeDescription
(1, N, M, 3)Single NxM RGB image with UINT8 values between 0 and 255
Output ShapeDescription
(1, P)Per-class confidence for P classes in FLOAT32

Recommended platforms

PlatformSupportedRecommended
STM32L0[][]
STM32L4[][]
STM32U5[][]
STM32H7[][]
STM32MP1[][]
STM32MP2[][]
STM32N6[x][x]

Performances

Metrics

  • Measures are done with default STEdgeAI Core configuration with enabled input / output allocated option.
  • All the models are trained from scratch on Imagenet dataset

Reference NPU memory footprint on Imagenet dataset (see Accuracy for details on dataset)

ModelDatasetFormatResolutionSeriesInternal RAM (KiB)External RAM (KiB)Weights Flash (KiB)STEdgeAI Core version
fdmobilenet_a025_pt_224ImagenetInt8224×224×3STM32N62940377.033.0.0
fdmobilenet_a050_pt_224ImagenetInt8224×224×3STM32N63430973.393.0.0
fdmobilenet_a075_pt_224ImagenetInt8224×224×3STM32N644101813.663.0.0

Reference NPU inference time on Imagenet dataset (see Accuracy for details on dataset)

ModelDatasetFormatResolutionBoardExecution EngineInference time (ms)Inf / secSTEdgeAI Core version
fdmobilenet_a025_pt_224ImagenetInt8224×224×3STM32N6570-DKNPU/MCU1.88531.913.0.0
fdmobilenet_a050_pt_224ImagenetInt8224×224×3STM32N6570-DKNPU/MCU4.07245.703.0.0
fdmobilenet_a075_pt_224ImagenetInt8224×224×3STM32N6570-DKNPU/MCU6.83146.413.0.0

Accuracy with Imagenet dataset

ModelFormatResolutionTop 1 Accuracy
fdmobilenet_a025_ptFloat224x224x345.37 %
fdmobilenet_a025_ptInt8224x224x329.73 %
fdmobilenet_a050_ptFloat224x224x358.04 %
fdmobilenet_a050_ptInt8224x224x341.58 %
fdmobilenet_a075_ptFloat224x224x362.10 %
fdmobilenet_a075_ptInt8224x224x360.29 %
ModelFormatResolutionTop 1 Accuracy
fdmobilenet_a025_ptFloat224x224x345.37 %
fdmobilenet_a025_ptInt8224x224x329.73 %
fdmobilenet_a050_ptFloat224x224x358.04 %
fdmobilenet_a050_ptInt8224x224x341.58 %
fdmobilenet_a075_ptFloat224x224x362.10 %
fdmobilenet_a075_ptInt8224x224x360.29 %

Retraining and Integration in a simple example:

Please refer to the stm32ai-modelzoo-services GitHub here

References

<a id="1">[1]</a> - Dataset: Imagenet (ILSVRC 2012) — https://www.image-net.org/

<a id="2">[2]</a> - Model: FD-MobileNet — https://arxiv.org/abs/1802.03750