STMicroelectronics/resnet50v2
ResNet50 v2
Use case : Image classification
Model description
ResNets family is a well known architecture that uses skip connections to enable stronger gradients in much deeper networks. This variant has 50 layers.
The model is quantized in int8 using tensorflow lite converter. A mixed precision version is also provided using onnx-runtime and our own quantization scripts.
Network information
The models are quantized using tensorflow lite converter.
Network inputs / outputs
For an image resolution of NxM and P classes
Recommended platforms
Performances
Metrics
- Measures are done with default STM32Cube.AI configuration with enabled input / output allocated option.
tfsstands for "training from scratch", meaning that the model weights were randomly initialized before training.tlstands for "transfer learning", meaning that the model backbone weights were initialized from a pre-trained model, then only the last layer was unfrozen during the training.fftstands for "full fine-tuning", meaning that the full model weights were initialized from a transfer learning pre-trained model, and all the layers were unfrozen during the training.
Reference NPU memory footprint on food101 and imagenet dataset (see Accuracy for details on dataset)
Reference NPU inference time on food101 and imagenet dataset (see Accuracy for details on dataset)
Reference MCU memory footprint based on Food-101 and imagenet dataset (see Accuracy for details on dataset)
Reference MCU inference time based on Food-101 and imagenet dataset (see Accuracy for details on dataset)
Accuracy with Food-101 dataset
Dataset details: link, Quotation[[1]](#1) , Number of classes: 101 , Number of images: 101 000
Accuracy with imagenet dataset
Dataset details: link, Quotation[[4]](#4). Number of classes: 1000. To perform the quantization, we calibrated the activations with a random subset of the training set. For the sake of simplicity, the accuracy reported here was estimated on the 50000 labelled images of the validation set.
Retraining and Integration in a simple example:
Please refer to the stm32ai-modelzoo-services GitHub here
References
<a id="1">[1]</a> L. Bossard, M. Guillaumin, and L. Van Gool, "Food-101 -- Mining Discriminative Components with Random Forests." European Conference on Computer Vision, 2014.
