#3450·turicreate

Kernel Died when export_coreml

Author: shihemimiCreated Jun 23, 2022Updated Dec 10, 2023

I have trouble exporting the simple model I created for classifying images of my and my cats, the code runs well through saving the model, but every time I try to export the model by "model.export_coreml('me-mimi.mlmodel')" it fails and the kernel stop (error message screenshot below). Does anyone knows why and what I can do to fix it? thanks!

image

import turicreate as tc import os

data = tc.image_analysis.load_images('mimi_me', with_path = True) data['label'] = data['path'].apply(lambda path:'me' if '/me' in path else 'mimi') data.save('me-mimi.sframe') data = tc.SFrame('me-mimi.sframe/') train_set, test_set = data.random_split(0.8) model = tc.image_classifier.create(train_set, target='label') predictions = model.evaluate(test_set) model.save('me-mimi.model') model.export_coreml('me-mimi.mlmodel')