resnet18prediction
fun resnet18prediction()
Content copied to clipboard
This examples demonstrates the inference concept on ResNet'18 model:
Model configuration, model weights and labels are obtained from ONNXModelHub.
Model predicts on a few images located in resources.
Special preprocessing (used in ResNet'18 during training on ImageNet dataset) is applied to images before prediction.