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

Model Initialization Error #318

Closed
Gerzer opened this Issue Jan 25, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@Gerzer
Copy link

Gerzer commented Jan 25, 2019

I've added a Core ML model to my macOS app in Xcode that I converted from Keras 2.1.6. However, whenever I try to initialize the generated model class in Swift with let model = MyModel(), I get a runtime error:

MLModelAsset: modelWithError: load failed with error Error Domain=com.apple.CoreML Code=0 "Error in re-declaring input input1." UserInfo={NSLocalizedDescription=Error in re-declaring input input1.}

I think that the issue lies with the conversion process. I used my own fork of this repository to overcome some other bugs in coremltools, but I believe that this issue is unrelated (i.e., my own modifications in my fork didn't cause this problem). Does anyone know why this might be happening and how to fix it? Thanks!

@Gerzer Gerzer closed this Jan 27, 2019

@Gerzer Gerzer reopened this Jan 27, 2019

@Gerzer Gerzer closed this Feb 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment