Image Classification
FBAGSTM commited on
Commit
de0f3a9
·
verified ·
1 Parent(s): af3ac39

Release AI-ModelZoo-4.0.0

Browse files
Files changed (1) hide show
  1. README.md +147 -6
README.md CHANGED
@@ -1,6 +1,147 @@
1
- ---
2
- license: other
3
- license_name: sla0044
4
- license_link: >-
5
- https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/LICENSE.md
6
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: sla0044
4
+ license_link: >-
5
+ https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/LICENSE.md
6
+ pipeline_tag: image-classification
7
+ ---
8
+ # ST ResNet
9
+
10
+ ## **Use case** : `Image classification`
11
+
12
+ # Model description
13
+
14
+
15
+ ST ResNet is STMicroelectronics' custom ResNet family **specifically designed and optimized for STM32 deployment**. It offers a range of sizes from "pico" to "tiny" with ReLU activations, providing a progressive accuracy-efficiency trade-off tailored for embedded vision applications.
16
+
17
+ The architecture is **STM32-optimized** and designed specifically for STM32 NPU deployment, with **progressive sizing** from Pico → Nano → Micro → Milli → Tiny (increasing capacity). It uses **ReLU activation** for quantization friendliness and a **balanced design** optimized for both accuracy and inference speed on target hardware.
18
+
19
+ ST ResNet models are the **recommended choice** for production STM32 deployments, with all variants running on internal RAM only and well-characterized performance on STM32 hardware.
20
+
21
+ (source: https://arxiv.org/abs/2601.05364, https://arxiv.org/abs/2511.11716)
22
+
23
+ The model is quantized to **int8** using **ONNX Runtime** and exported for efficient deployment.
24
+
25
+ ## Network information
26
+
27
+
28
+ | Network Information | Value |
29
+ |--------------------|-------|
30
+ | Framework | Torch |
31
+ | MParams | ~0.59–3.97 M |
32
+ | Quantization | Int8 |
33
+ | Provenance | https://github.com/STMicroelectronics/stm32ai-modelzoo |
34
+ | Paper | https://arxiv.org/abs/2601.05364 |
35
+
36
+ ## Network inputs / outputs
37
+
38
+
39
+ For an image resolution of NxM and P classes
40
+
41
+ | Input Shape | Description |
42
+ | ----- | ----------- |
43
+ | (1, N, M, 3) | Single NxM RGB image with UINT8 values between 0 and 255 |
44
+
45
+ | Output Shape | Description |
46
+ | ----- | ----------- |
47
+ | (1, P) | Per-class confidence for P classes in FLOAT32|
48
+
49
+
50
+ ## Recommended platforms
51
+
52
+
53
+ | Platform | Supported | Recommended |
54
+ |----------|-----------|-----------|
55
+ | STM32L0 |[]|[]|
56
+ | STM32L4 |[]|[]|
57
+ | STM32U5 |[]|[]|
58
+ | STM32H7 |[]|[]|
59
+ | STM32MP1 |[]|[]|
60
+ | STM32MP2 |[]|[]|
61
+ | STM32N6 |[x]|[x]|
62
+
63
+ # Performances
64
+
65
+ ## Metrics
66
+
67
+ - Measures are done with default STEdgeAI Core configuration with enabled input / output allocated option.
68
+ - All the models are trained from scratch on Imagenet dataset
69
+
70
+ ### Reference **NPU** memory footprint on Imagenet dataset (see Accuracy for details on dataset)
71
+ | Model | Dataset | Format | Resolution | Series | Internal RAM (KiB) | External RAM (KiB) | Weights Flash (KiB) | STEdgeAI Core version |
72
+ |-------|---------|--------|------------|--------|--------------|--------------|---------------|----------------------|
73
+ | [st_resnetpico_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetpico_actrelu_pt_224/st_resnetpico_actrelu_pt_224_qdq_int8.onnx) | Imagenet | Int8 | 224×224×3 | STM32N6 | 784 | 0 | 607.27 | 3.0.0 |
74
+ | [st_resnetnano_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetnano_actrelu_pt_224/st_resnetnano_actrelu_pt_224_qdq_int8.onnx) | Imagenet | Int8 | 224×224×3 | STM32N6 | 759.5 | 0 | 992.04 | 3.0.0 |
75
+ | [st_resnetmicro_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmicro_actrelu_pt_224/st_resnetmicro_actrelu_pt_224_qdq_int8.onnx) | Imagenet | Int8 | 224×224×3 | STM32N6 | 882 | 0 | 1534.12 | 3.0.0 |
76
+ | [st_resnetmilli_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmilli_actrelu_pt_224/st_resnetmilli_actrelu_pt_224_qdq_int8.onnx) | Imagenet | Int8 | 224×224×3 | STM32N6 | 1421 | 0 | 3059.81 | 3.0.0 |
77
+ | [st_resnettiny_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnettiny_actrelu_pt_224/st_resnettiny_actrelu_pt_224_qdq_int8.onnx) | Imagenet | Int8 | 224×224×3 | STM32N6 | 2205 | 0 | 4060.57 | 3.0.0 |
78
+
79
+
80
+ ### Reference **NPU** inference time on imagenet dataset (see Accuracy for details on dataset)
81
+
82
+ | Model | Dataset | Format | Resolution | Board | Execution Engine | Inference time (ms) | Inf / sec | STEdgeAI Core version |
83
+ |--------|---------|--------|--------|-------------|------------------|------------------|---------------------|-------------------------|
84
+ | [st_resnetpico_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetpico_actrelu_pt_224/st_resnetpico_actrelu_pt_224_qdq_int8.onnx) | Imagenet | Int8 | 224×224×3 | STM32N6570-DK | NPU/MCU | 7.54 | 132.63 | 3.0.0 |
85
+ | [st_resnetnano_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetnano_actrelu_pt_224/st_resnetnano_actrelu_pt_224_qdq_int8.onnx) | Imagenet | Int8 | 224×224×3 | STM32N6570-DK | NPU/MCU | 9.46 | 105.71 | 3.0.0 |
86
+ | [st_resnetmicro_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmicro_actrelu_pt_224/st_resnetmicro_actrelu_pt_224_qdq_int8.onnx) | Imagenet | Int8 | 224×224×3 | STM32N6570-DK | NPU/MCU | 13.83 | 72.31 | 3.0.0 |
87
+ | [st_resnetmilli_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmilli_actrelu_pt_224/st_resnetmilli_actrelu_pt_224_qdq_int8.onnx) | Imagenet | Int8 | 224×224×3 | STM32N6570-DK | NPU/MCU | 17.59 | 56.85 | 3.0.0 |
88
+ | [st_resnettiny_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnettiny_actrelu_pt_224/st_resnettiny_actrelu_pt_224_qdq_int8.onnx) | Imagenet | Int8 | 224×224×3 | STM32N6570-DK | NPU/MCU | 24.10 | 41.49 | 3.0.0 |
89
+
90
+ | Model | Format | Resolution | Board | Execution Engine | Inference time (ms) | Inf / sec | STM32Cube.AI version | STEdgeAI Core version |
91
+ |--------|--------|-------------|------------------|------------------|---------------------|-----------|----------------------|-------------------------|
92
+ | [st_resnetpico_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetpico_actrelu_pt_224/st_resnetpico_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | STM32N6570-DK | NPU/MCU | 7.54 | 132.63 | 10.2.0 | 2.2.0 |
93
+ | [st_resnetnano_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetnano_actrelu_pt_224/st_resnetnano_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | STM32N6570-DK | NPU/MCU | 9.46 | 105.71 | 10.2.0 | 2.2.0 |
94
+ | [st_resnetmicro_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmicro_actrelu_pt_224/st_resnetmicro_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | STM32N6570-DK | NPU/MCU | 13.83 | 72.31 | 10.2.0 | 2.2.0 |
95
+ | [st_resnetmilli_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmilli_actrelu_pt_224/st_resnetmilli_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | STM32N6570-DK | NPU/MCU | 17.59 | 56.85 | 10.2.0 | 2.2.0 |
96
+ | [st_resnettiny_actrelu_pt_224](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnettiny_actrelu_pt_224/st_resnettiny_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | STM32N6570-DK | NPU/MCU | 24.10 | 41.49 | 10.2.0 | 2.2.0 |
97
+
98
+
99
+ ### Accuracy with Imagenet dataset
100
+
101
+ | Model | Format | Resolution | Top 1 Accuracy |
102
+ |-------|--------|------------|----------------|
103
+ | [st_resnetmicro_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmicro_actrelu_pt_224/st_resnetmicro_actrelu_pt_224.onnx) | Float | 224×224×3 | 66.43 % |
104
+ | [st_resnetmicro_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmicro_actrelu_pt_224/st_resnetmicro_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | 65.62 % |
105
+ | [st_resnetmilli_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmilli_actrelu_pt_224/st_resnetmilli_actrelu_pt_224.onnx) | Float | 224×224×3 | 71.10 % |
106
+ | [st_resnetmilli_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmilli_actrelu_pt_224/st_resnetmilli_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | 70.45 % |
107
+ | [st_resnetnano_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetnano_actrelu_pt_224/st_resnetnano_actrelu_pt_224.onnx) | Float | 224×224��3 | 59.32 % |
108
+ | [st_resnetnano_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetnano_actrelu_pt_224/st_resnetnano_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | 58.25 % |
109
+ | [st_resnetpico_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetpico_actrelu_pt_224/st_resnetpico_actrelu_pt_224.onnx) | Float | 224×224×3 | 49.42 % |
110
+ | [st_resnetpico_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetpico_actrelu_pt_224/st_resnetpico_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | 46.98 % |
111
+ | [st_resnettiny_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnettiny_actrelu_pt_224/st_resnettiny_actrelu_pt_224.onnx) | Float | 224×224×3 | 72.07 % |
112
+ | [st_resnettiny_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnettiny_actrelu_pt_224/st_resnettiny_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | 71.40 % |
113
+
114
+
115
+ Dataset details: [link](https://www.image-net.org)
116
+ Number of classes: 1000.
117
+ To perform the quantization, we calibrated the activations with a random subset of the training set.
118
+ For the sake of simplicity, the accuracy reported here was estimated on the 50000 labelled images of the validation set.
119
+
120
+ | Model | Format | Resolution | Top 1 Accuracy |
121
+ |-------|--------|------------|----------------|
122
+ | [st_resnetmicro_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmicro_actrelu_pt_224/st_resnetmicro_actrelu_pt_224.onnx) | Float | 224×224×3 | 66.43 % |
123
+ | [st_resnetmicro_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmicro_actrelu_pt_224/st_resnetmicro_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | 65.62 % |
124
+ | [st_resnetmilli_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmilli_actrelu_pt_224/st_resnetmilli_actrelu_pt_224.onnx) | Float | 224×224×3 | 71.10 % |
125
+ | [st_resnetmilli_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetmilli_actrelu_pt_224/st_resnetmilli_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | 70.45 % |
126
+ | [st_resnetnano_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetnano_actrelu_pt_224/st_resnetnano_actrelu_pt_224.onnx) | Float | 224×224×3 | 59.32 % |
127
+ | [st_resnetnano_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetnano_actrelu_pt_224/st_resnetnano_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | 58.25 % |
128
+ | [st_resnetpico_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetpico_actrelu_pt_224/st_resnetpico_actrelu_pt_224.onnx) | Float | 224×224×3 | 49.42 % |
129
+ | [st_resnetpico_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnetpico_actrelu_pt_224/st_resnetpico_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | 46.98 % |
130
+ | [st_resnettiny_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnettiny_actrelu_pt_224/st_resnettiny_actrelu_pt_224.onnx) | Float | 224×224×3 | 72.07 % |
131
+ | [st_resnettiny_actrelu_pt](https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/image_classification/st_resnet_pt/ST_pretrainedmodel_public_dataset/Imagenet/st_resnettiny_actrelu_pt_224/st_resnettiny_actrelu_pt_224_qdq_int8.onnx) | Int8 | 224×224×3 | 71.40 % |
132
+
133
+
134
+
135
+ ## Retraining and Integration in a simple example:
136
+
137
+ Please refer to the stm32ai-modelzoo-services GitHub [here](https://github.com/STMicroelectronics/stm32ai-modelzoo-services)
138
+
139
+
140
+
141
+ # References
142
+
143
+ <a id="1">[1]</a> - **Dataset**: Imagenet (ILSVRC 2012) — https://www.image-net.org/
144
+
145
+ <a id="2">[2]</a> - **Model**: STRESNET & STYOLO — https://arxiv.org/abs/2601.05364
146
+
147
+ <a id="3">[3]</a> - **Model**: CompressNAS — https://arxiv.org/abs/2511.11716