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 got some wrong #2

Open
tengbing88 opened this issue Oct 28, 2020 · 14 comments
Open

I got some wrong #2

tengbing88 opened this issue Oct 28, 2020 · 14 comments

Comments

@tengbing88
Copy link

Hi Stefan,

When I run this code with tflite==2.3.0 or tensorflow-cpu==2.3.0
I got some wrong:

RuntimeError: Regular TensorFlow ops are not supported by this interpreter. Make sure you apply/link the Flex delegate before inference.Node number 29 (FlexRFFT) failed to prepare.

My question is:
What environment will make this code running right ?

Thanks 👍
(By the way, great work!)

@tengbing88
Copy link
Author

@tengbing88
Copy link
Author

I find this url and resolved this problem
Thanks again

@kahst
Copy link
Owner

kahst commented Oct 28, 2020

Thanks @tengbing88 for pointing that out.

BirdNET-Lite uses a non-standard TFLite function (RFFT) to compute spectrograms. This function is only available for certain platforms (Android, iOS, x86) and custom TFLite builds (which you can use e.g. on the Raspberry Pi) that also include the so-called "Special Ops".

@tengbing88
Copy link
Author

Thanks~~

@jsga
Copy link

jsga commented Nov 1, 2020

Hi @tengbing88,
could you be a bit more specific on how you solved this issue? I am also interested.

@tengbing88
Copy link
Author

Hi @tengbing88,
could you be a bit more specific on how you solved this issue? I am also interested.

I just installed tf-nightly,and this issue was solved.good luck for you.

@tengbing88
Copy link
Author

@jsga

@HGFestl
Copy link

HGFestl commented Feb 8, 2021

Hello, I got the same problem with my raspberry pi 4.
Obviously I could not find the correct nightly build. So, can I get some more specific hints for a beginner.

Best regards, Hans Guenter

@ekmalkova
Copy link

@HGFestl I've got it run on raspberry 4, python3.7 and the solution was installing tensorflow 2.4.0 which was more complicated than installing 1.4.7

and use this part of code
from tensorflow import lite as tflite

@HGFestl
Copy link

HGFestl commented Feb 8, 2021

Many thanks for your quick answer, akmalkova.
My python version is 3.7.3
The Tensorflow is 2.4.0rc2
And the part of code in the file "analyze.py" is the same as well.
Unfortunately, I still have the problem "Tensorflow ops are not supported by this interpreter"
Do you have another idea?

Best regards, Hans Guenter

@ekmalkova
Copy link

@HGFestl same here. python 3.7, tensorflow 2.4.0rc2. Another TF libraries: tensorflow-datasets 4.2.0, tensorflow-estimator 2.4.0, tensorflow-metadata 0.26.0, tflite 2.4.0, tflite-runtime 2.5.0

when i do it like in analyze.py with try: import tflite_runtime.interpreter as tflite it loads tflite and then i get this error. And i also was quite stuck with this (it did not even work on PC), but then i guess i reinstalled tensorflow and it worked.

@HGFestl
Copy link

HGFestl commented Feb 8, 2021

Thank you again. I re-installed TF, but I still have the same problem.
May be my fault, I am not a Linux specialist...

@krummrey
Copy link

I was able to get it running under Ubuntu 18.04.5 using pip install tf-nightly. Had to restart my environment from scratch due to some dependency issues.

@ghost
Copy link

ghost commented Sep 4, 2021

Anyone got a solution for Raspberry Pi 4?

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

6 participants