Instantly share code, notes, and snippets.

Embed
What would you like to do?
import coremltools
age_net = coremltools.converters.caffe.convert(('models/age_net.caffemodel', 'models/deploy_age.prototxt'),
image_input_names='data',
class_labels='models/age_labels.txt')
gender_net = coremltools.converters.caffe.convert(('models/gender_net.caffemodel', 'models/deploy_gender.prototxt'),
image_input_names='data',
class_labels='models/gender_labels.txt')
age_net.save('AgeNet.mlmodel')
gender_net.save('GenderNet.mlmodel')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment