2 Replies
      Latest reply on Sep 19, 2019 10:59 AM by Alice1988
      Alice1988 Level 1 Level 1 (0 points)

        I created a simple ImageClassifier.mlmodel with MLImageClassifierBuilder (import CreateMLUI). My question is: Is there a way to know how many layers have my model and which kind of layers they are (conv,pool,etc.)?

         

        Thanks in advance,

        Alice

        • Re: How many layers in a .mlmodel?
          kerfuffle Level 3 Level 3 (120 points)

          For many mlmodel files you can count the number of layers using coremltools or something like Netron.

           

          But a model built with MLImageClassifierBuilder is really a pipeline consisting of two other models: 1. Vision FeaturePrint, 2. a logistic regression. The Vision FeaturePrint model is the actual neural network but this is kept secret by Apple. It is built into the OS and you cannot look inside it.