Skip to content

Instantly share code, notes, and snippets.

@gali8
Last active September 15, 2017 08:13
Show Gist options
  • Save gali8/cd72455f23f0326fba6571e53d18a644 to your computer and use it in GitHub Desktop.
Save gali8/cd72455f23f0326fba6571e53d18a644 to your computer and use it in GitHub Desktop.
import coremltools
coreml_modelGender = coremltools.converters.caffe.convert(('gender_net.caffemodel', 'deploy_gender.prototxt', 'mean.binaryproto'), image_input_names='data')
coreml_modelGender.save('Gender.mlmodel')
coreml_modelAge = coremltools.converters.caffe.convert(('age_net.caffemodel', 'deploy_age.prototxt', 'mean.binaryproto'), image_input_names='data')
coreml_modelAge.save('Age.mlmodel')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment