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

I have error when I build object detection desktop app #233

Open
leduytuanvu opened this issue Apr 25, 2023 · 2 comments
Open

I have error when I build object detection desktop app #233

leduytuanvu opened this issue Apr 25, 2023 · 2 comments

Comments

@leduytuanvu
Copy link

ERROR: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding "org.tensorflow:tensorflow-lite-select-tf-ops" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select
ERROR: Node number 5 (FlexTensorArrayV3) failed to prepare.

@Alexi-Zemcov
Copy link

Alexi-Zemcov commented Apr 26, 2023

@leduytuanvu there is a similar issue here.

As I understand it, there are two solutions to this problem.

The first solution is to rebuild the binaries (for android) and framework (for IOS) from the tensorflow source code, adding support for flex. (Or you can try the binaries from this answer).

The second solution is to change the model and remove all flex functions from it. In my case, it didn't work until I replaced these binaries with different ones. Or, again, you can create new binaries from the tensorflow source code. But I didn't understand how to do it.

update:
I just saw that your question is related to desktop. My answer is more about mobile devices. But I hope it will still be useful to you.

@leduytuanvu
Copy link
Author

Anyway, thank you @Alexi-Zemcov

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

No branches or pull requests

2 participants