flutter_mlkit icon indicating copy to clipboard operation
flutter_mlkit copied to clipboard

Remote Model not downloading.

Open Baileypollard opened this issue 4 years ago • 3 comments

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.

Baileypollard avatar Sep 19 '19 23:09 Baileypollard

Thanks reporting.

Does older version work correctly?

azihsoyn avatar Sep 20 '19 00:09 azihsoyn

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.

Baileypollard avatar Sep 20 '19 00:09 Baileypollard

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.

MichalMisiaszek avatar Oct 28 '19 22:10 MichalMisiaszek