Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Machine Learning Error when loading mlmodel "No known class for loading model type > MLModelType_pipelineClassifier"

Ask Question

I have created a mlmodel with Playground and imported into my Xcode project though when it runs I'm getting this error.

The error is also flagged here in the code of the mlmodel.

ObjectClassifier[24610:8307770] [coreml] MLModelAsset: modelWithError: load failed with error Error Domain=com.apple.CoreML Code=3 "No known class for loading model type MLModelType_pipelineClassifier" UserInfo={NSLocalizedDescription=No known class for loading model type MLModelType_pipelineClassifier}

Why would the code that is automatically created when making the mlmodel in the playground be causing this error?

It has something to do with the type of model that is created by the playground as I can get my code to run no problem with a "Custom Vision" model. The "Custom Vision" model is of type : Neural Network Classifier and the playground model is of type : Image Classifier uplearned.com Jul 18, 2018 at 21:27 I was trying to do some coin classification using CoreML, but it turns out to work no good. Peter Guan Jul 23, 2018 at 6:06 @uplearnedu.com I'm using about 1800 images and I shifted to turicreate. Now it seems to work better. Peter Guan Jul 25, 2018 at 3:39 @Magoo Yeah it should but I'm not sure if it really works now for iOS 11, I think you can try a demo. Peter Guan Aug 23, 2018 at 3:39

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .