azihsoyn / flutter_mlkit

A Flutter plugin to use the Firebase ML Kit.
MIT License
391 stars 90 forks source link

Remote Model not downloading. #80

Open Baileypollard opened 5 years ago

Baileypollard commented 5 years ago

Currently trying to run the interpreter with a custom model published on firebase called 'test'. I keep Getting these log statements and I can't figure out what is going on for the life of me.

Building input options Building output options Running detection Detection run Failed runWithInputs with error: Failed to load the custom model as no models currently exist on the device for the given model options: remoteModelName: test, localModelName: (null). However, a request has been made to download the remote model.

azihsoyn commented 5 years ago

Thanks reporting.

Does older version work correctly?

Baileypollard commented 5 years ago

Hi @azihsoyn, I seemed to fix it by uninstalling and reinstalling my application. I am now getting this error when trying to send the image bytes to the interpreter

Failed runWithInputs with error: Input 0 should have 921600 bytes, but found 1228800 bytes.

MichalMisiaszek commented 5 years ago

I have similar problem and I did not have it before. Looks like somethign changed between app and Firebase:


W/System.err(15942): com.google.android.gms.tasks.RuntimeExecutionException: 
com.google.firebase.ml.common.FirebaseMLException: Cannot load any model with the model 
options: Local model name: unspecified. Remote model name: insects.