Created
June 4, 2019 20:59
-
-
Save frogermcs/3a36ac7d885927417890bc3801424b7e 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
# Load previously saved CoreML model of MobileNet v2 | |
mlmodel = coremltools.models.MLModel('mobilenet_v2_1.0_224.mlmodel') | |
# Get spec from the model | |
spec = mlmodel.get_spec() | |
print(spec.description) | |
# Output | |
# >> input { | |
# >> name: "input__0" | |
# >> type { | |
# >> imageType {...} | |
# >> } | |
# >> } | |
# >> output { | |
# >> name: "MobilenetV2__Predictions__Reshape_1__0" | |
# >> type { ... } | |
# >> } | |
# >> output { | |
# >> name: "classLabel" | |
# >> type { ... } | |
# >> } | |
# >> predictedFeatureName: "classLabel" | |
# >> predictedProbabilitiesName: "MobilenetV2__Predictions__Reshape_1__0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment