Skip to content
This repository has been archived by the owner on Feb 15, 2020. It is now read-only.

[coreml] MLModelAsset: load failed with error #1

Open
aloveric opened this issue Jan 21, 2018 · 13 comments
Open

[coreml] MLModelAsset: load failed with error #1

aloveric opened this issue Jan 21, 2018 · 13 comments

Comments

@aloveric
Copy link

Import your CoreML and run iOS code, it has this issue:

screen shot 2018-01-21 at 10 38 18 pm

@aloveric
Copy link
Author

BTW, Simulation works fine, error on real iPhone

@backnotprop
Copy link
Owner

backnotprop commented Jan 21, 2018 via email

@aloveric
Copy link
Author

aloveric commented Jan 22, 2018

@mdramos Thanks for your quick feedback. It is iPhone 6 and iOS 11.1.2. Also check with iPad Air 2 on iOS 11.1.2 with same issue.

@backnotprop
Copy link
Owner

@aloveric
Copy link
Author

Also found this but there is no solution to fix it ...

@jst000000
Copy link

i run the code on my iphoneX but its not work well but good with iphone7P and Simulation

@backnotprop
Copy link
Owner

I'm getting better results with lazy loading the models separately, still experiencing some memory issues, so I will continue to look for a better solution.

The first step in the right direction definitely seems to be lazy loading.

@backnotprop
Copy link
Owner

backnotprop commented Jan 30, 2018

actually, a single model in memory seems to work best without issues. Just nil-ing out old models and keeping one in memory.

Ill push this fix in a bit, but will hopefully find a better solution for having multiple models loaded in memory.

@jst000000
Copy link

yes, most of phone work well with two models but break with three

@aloveric
Copy link
Author

aloveric commented Feb 1, 2018

screen shot 2018-02-01 at 5 42 15 pm

Guys, I left only one model and it will get whole black screen with loading then show the lock screen via iPhone 6 and iOS 11.1.2

@mithileshggn
Copy link

mithileshggn commented Nov 28, 2018

Running on simulator only but not in real device? please suggest why? Even though device is running with iOS 11.0

@bbthitenp
Copy link

Screenshot 2020-02-13 at 2 59 38 PM

Way not run in Real Device?

@backnotprop
Copy link
Owner

Hey all, I see folks stay actively commenting here.

The models this produce are most likely too large for devices. A new architecture needs to be slimmed down and there have been many advancements/examples to do this.

Im going to archive the repo, as I can not maintain and this should be used as experimentation only.

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

No branches or pull requests

5 participants