resnet50CustomPrediction
fun resnet50CustomPrediction()
Content copied to clipboard
This examples demonstrates the inference concept on ResNet'50 (exported from Keras to ONNX) 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'50 during training on ImageNet dataset) is applied to images before prediction.