Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created December 18, 2017 21:02
Show Gist options
  • Save azamsharp/bf275cba81128ecf26b7cd75b2c30c8e to your computer and use it in GitHub Desktop.
Save azamsharp/bf275cba81128ecf26b7cd75b2c30c8e to your computer and use it in GitHub Desktop.
converting file
import tfcoreml as tf_converter
tf_converter.convert(tf_model_path = 'inception_v1_2016_08_28_frozen.pb',
mlmodel_path = 'InceptionV1.mlmodel',
output_feature_names = ['InceptionV1/Logits/Predictions/Softmax:0'],
image_input_names = 'input:0',
class_labels = 'imagenet_slim_labels.txt'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment