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

Model provided has invalid model identifier #15

Open
haimat opened this issue Mar 10, 2022 · 0 comments
Open

Model provided has invalid model identifier #15

haimat opened this issue Mar 10, 2022 · 0 comments

Comments

@haimat
Copy link

haimat commented Mar 10, 2022

I tried to run your model on an Ubuntu 20.04 machine. However, following your readme leads to this error:

$ python analyze.py --i a5_20190712_050100_moench.WAV --lat 49.516859 --lon 9.787153
LOADING TF LITE MODEL... Traceback (most recent call last):
  File "analyze.py", line 224, in <module>
    main()
  File "analyze.py", line 201, in main
    interpreter = loadModel()
  File "analyze.py", line 28, in loadModel
    interpreter = tflite.Interpreter(model_path='model/BirdNET_6K_GLOBAL_MODEL.tflite')
  File "/home/mfb/.local/lib/python3.8/site-packages/tensorflow/lite/python/interpreter.py", line 463, in __init__
    _interpreter_wrapper.CreateWrapperFromFile(
ValueError: Model provided has model identifier '

<!', should be 'TFL3'

I have installed TF 2.7.0 via pip.
Note: Using tflite-runtime 2.7.0 leads to the very same error message.

Any ideas what could be the problem here?

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

1 participant