Hi there,
I train an object detection model in CreateML and want to deploy in Python.
Then I can get coordination from the following codes but how to get the labels of prediction?
import coremltools as ct from PIL import Image path = '/sample.jpeg' example_image = Image.open(path).resize((960, 128)) model_path = '/sample.mlmodel' model = ct.models.MLModel(model_path) out_dict = model.predict({'imagePath': example_image,}) out_dict