Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command CoreMLModelCompile failed with a nonzero exit code #18

Open
Elwin-zhao opened this issue Apr 22, 2020 · 7 comments
Open

Command CoreMLModelCompile failed with a nonzero exit code #18

Elwin-zhao opened this issue Apr 22, 2020 · 7 comments

Comments

@Elwin-zhao
Copy link

Command CoreMLModelCompile failed with a nonzero exit code

@hollance
Copy link
Contributor

You'll need to provide more info, @ITBackkom.

Usually there is an additional error message that explains why CoreMLModelCompile failed (you can see this in the build log pane in Xcode). What does this error message say?

Which model does it fail on?

What is the file size of that model file when you look at it with Finder?

@mredig
Copy link

mredig commented May 28, 2020

I'm also running into this. I think this is the error you're looking for:

coremlc: Error: Error reading protobuf spec. validator error: unable to deserialize object

image

Using Xcode 11.5 on macOS 10.15.3. Simply downloaded the zip and tried to build project/run tests/run project.

@hollance
Copy link
Contributor

What is the file size of that model file when you look at it with Finder?

This repo uses git-lfs to store the large model files. Most likely, your model file is only a few bytes in size and is a placeholder for the actual thing.

@mredig
Copy link

mredig commented May 28, 2020

What is the file size of that model file when you look at it with Finder?

This repo uses git-lfs to store the large model files. Most likely, your model file is only a few bytes in size and is a placeholder for the actual thing.

I’m pretty sure this is correct. Did I miss any getting started instructions anywhere? I downloaded the zip instead of cloning, if that makes a difference at all.

@julien-c
Copy link
Member

Yes that's definitely the reason then. Thanks @hollance for helping.

You need to install git-lfs following https://github.com/huggingface/swift-coreml-transformers#notes

@mredig
Copy link

mredig commented May 28, 2020

Does that mean that downloading the zip is useless? (might warrant a readme update)

@jeffxtang
Copy link

Apple has sample code and model that runs without requiring lfs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants