Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. # Load previously saved CoreML model of MobileNet v2
  2. mlmodel = coremltools.models.MLModel('mobilenet_v2_1.0_224.mlmodel')
  3.  
  4. # Get spec from the model
  5. spec = mlmodel.get_spec()
  6. print(spec.description)
  7.  
  8. # Output
  9. # >> input {
  10. # >> name: "input__0"
  11. # >> type {
  12. # >> imageType {...}
  13. # >> }
  14. # >> }
  15. # >> output {
  16. # >> name: "MobilenetV2__Predictions__Reshape_1__0"
  17. # >> type { ... }
  18. # >> }
  19. # >> output {
  20. # >> name: "classLabel"
  21. # >> type { ... }
  22. # >> }
  23. # >> predictedFeatureName: "classLabel"
  24. # >> predictedProbabilitiesName: "MobilenetV2__Predictions__Reshape_1__0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement