Last active
September 15, 2017 08:13
-
-
Save gali8/cd72455f23f0326fba6571e53d18a644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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