resnet152v2prediction
fun resnet152v2prediction()
Content copied to clipboard
This examples demonstrates the inference concept on ResNet'152v2 model:
Model configuration, model weights and labels are obtained from ModelZoo.
Weights are loaded from .h5 file, configuration is loaded from .json file.
Model predicts on a few images located in resources.
Special preprocessing (used in ResNet'152v2 during training on ImageNet dataset) is applied to images before prediction.
No additional training.
No new layers are added.