Unable to initialize a Network with CoreML

Converted a CNN to be used in Vision and always getting the same error.



2017-07-17 22:47:20.085100-0700 Test [10066:2208848] [core] Error in adding network -1.
2017-07-17 22:47:20.094193-0700 Test [10066:2208852] [core] MLModelAsset: load failed with error Error Domain=com.apple.CoreML Code=0 "Error in declaring network." UserInfo={NSLocalizedDescription=Error in declaring network.}
2017-07-17 22:47:20.094258-0700 Test[10066:2208852] [core] MLModelAsset: modelWithError: load failed with error Error Domain=com.apple.CoreML Code=0 "Error in declaring network." UserInfo={NSLocalizedDescription=Error in declaring network

I opened and uploaded the coreml model and the prototxt file on this problemID=33342150

Help is appreciated.

Replies

I also received this error when loading a CNN I trained.


I hope the errors will be more detailed in the future so we know which parts of the model are causing trouble.

The ticket I opened reporting this issue (33342150) was recently closed by Apple Engineers stating that they found the cause of this problem which had been logged internally in a different ticket.


At least it's something!!!!