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

Inception3 not supported ? #70

Open
MichalMisiaszek opened this issue Jul 2, 2019 · 13 comments
Open

Inception3 not supported ? #70

MichalMisiaszek opened this issue Jul 2, 2019 · 13 comments
Labels
under investigation under investigation

Comments

@MichalMisiaszek
Copy link

I uploaded custom tensorflowlite model which is based on InceptionV3,
plugin shows error:
The model is INCOMPATIBLE. It may contain unrecognized custom ops, or not FlatBuffer format: java.lang.IllegalArgumentException: Internal error: Cannot create interpreter: Didn't find op for builtin opcode 'CONV_2D' version '2'

@azihsoyn azihsoyn added the under investigation under investigation label Jul 2, 2019
@MichalMisiaszek
Copy link
Author

It was my mistake, the options were invalid. But I fixed options and now I get error:
E/ModelDownloadManager( 4245): The model is incompatible with TFLite and the app is not upgraded, do not download
The model is 100% TFLLite I just uploaded it and used successfully on my computer.
My options are:
FirebaseModelInputOutputOptions options = FirebaseModelInputOutputOptions([ FirebaseModelIOOption(FirebaseModelDataType.BYTE, [1, 800, 800, 3]) ], [ FirebaseModelIOOption(FirebaseModelDataType.BYTE, [1, 8142]) ]);
Maybe I am missing something ?

@MichalMisiaszek
Copy link
Author

I dowloaded model from Firebase to be sure it was not broken on the way and it is working in Python script on my Mac but not in plugin.

@azihsoyn
Copy link
Owner

azihsoyn commented Jul 2, 2019

Thank you for reporting the detailed issue!

@MichalMisiaszek
Copy link
Author

I am trying to dig into that but I don't see where this exception is coming from.

@azihsoyn
Copy link
Owner

azihsoyn commented Jul 2, 2019

I'll check this issue within a week. But it may take time.

@MichalMisiaszek
Copy link
Author

Sad to hear it. Your plugin is the only I found for custom models, I will try to find the issue and fork in in worse case.

@MichalMisiaszek
Copy link
Author

Did you run your example recently ? Gradle fails for me without explanation.

@MichalMisiaszek
Copy link
Author

I corrected another input/output format config and I am getting.

E/CustomCompatChecker(20300): The model is INCOMPATIBLE. It may contain unrecognized custom ops, or not FlatBuffer format: java.lang.IllegalArgumentException: Internal error: Cannot create interpreter: Didn't find op for builtin opcode 'CONV_2D' version '2'
E/CustomCompatChecker(20300): Registration failed.
E/ModelResourceManager(20300): Error preloading model resource
E/ModelResourceManager(20300): com.google.firebase.ml.common.FirebaseMLException: Remote model load failed with the model options: Local model name: unspecified. Remote model name: detector.
E/ModelResourceManager(20300): 	at com.google.android.gms.internal.firebase_ml.zzon.zza(Unknown Source:33)
E/ModelResourceManager(20300): 	at com.google.android.gms.internal.firebase_ml.zzpr.zza(Unknown Source:109)```

@MichalMisiaszek
Copy link
Author

Hi,
I dig deeper and it seems a lot of people have problems with TF converted to TFLite and then used on Android. I have not seen a solution to the problem yet :(.

@MichalMisiaszek
Copy link
Author

So it seems your example works fine, the issue is with more complex optimized models.
I will try complex but not optimized and see what will happen. I wish the exceptions would be more informative.

@azihsoyn
Copy link
Owner

azihsoyn commented Jul 3, 2019

I'll resolve #54 in next release.

Thanks.

@MichalMisiaszek
Copy link
Author

Do you know what is the problem ?

@MichalMisiaszek
Copy link
Author

Hi did you managed to solve it ? The same problem directly on Android it suppose to be solved by upgrading to newer Tensorflow Lite recently released.
tensorflow/tensorflow#28163

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

No branches or pull requests

2 participants