CoreML Model Upload

Hi.

I'm attempting to add the YOLOv3 MLModel from the main apple.com domain to my project. I downloaded the .mlmodel file and added it to my project, but whenever I go to make an MLModel object of it, it keeps coming back with the following error

Code Block
Error Domain=com.apple.CoreML Code=3 "Error reading protobuf spec. validator error: Model specification version field missing or corrupt." UserInfo={NSLocalizedDescription=Error reading protobuf spec. validator error: Model specification version field missing or corrupt.}


This is just by calling try MLModel.compileModel(at: url), where url is determined by Bundle.main.url(forResource: "YOLOv3", withExtension: "mlmodelc")

I don't understand why this is happening.

Replies

Hey Seth,

Did you get past this? I have a model I've converted via coremltools... seemingly correctly... it loads into xcode and netron and looks valid, yet I am running into this same issue.

Would be grateful if you did get past if you could let me know what your resolution was :)

Cheers,