resnet50copyModelPrediction

fun resnet50copyModelPrediction()

This examples demonstrates the inference concept on ResNet'50 model:

  • Model configuration, model weights and labels are obtained from TFModelHub.

  • Weights are loaded from .h5 file, configuration is loaded from .json file.

  • Model predicts on a few images located in resources.

  • No additional training.

  • No new layers are added.

  • Special preprocessing (used in ResNet'50 during training on ImageNet dataset) is applied to images before prediction.

  • Model copied and used for prediction.