0

The Machine Learning Model I download from Apple's website, can be used to recognise lots of different object through image.

I want to know, say I need to detect all different kinds of trees. Some can be recognised by the model whereas some cannot. Then how would I know how many trees are being trained in this model? in another word, How would I know all the possible tree recognition in this model? How would I find out? Can I decode the model? or parse it or something?

Tony Lin
  • 922
  • 6
  • 25
  • you can not decode the model. apple provide coremltools to create your own ML model with the framework: https://github.com/apple/coremltools – Ujesh Dec 08 '17 at 08:42

1 Answers1

2

These models are trained on the ImageNet dataset. Here is a list of classes that these models can detect: https://github.com/HoldenCaulfieldRye/caffe/blob/master/data/ilsvrc12/synset_words.txt

Matthijs Hollemans
  • 7,706
  • 2
  • 16
  • 23
  • So does it mean there's no way to find this list from the model itself, other than finding it in a separate file the author may or may not offer. – Tony Lin Dec 10 '17 at 05:21
  • If the Core ML model is a classifier then it will contain that list of class names. But I'm not sure if / how you can obtain that list from the MLModel object. – Matthijs Hollemans Dec 10 '17 at 11:55