-
Notifications
You must be signed in to change notification settings - Fork 137
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
Conditional import of Keras/TFLite in model.py #6
Comments
Just pushed the conditional import, can you give it a go and see if it works? Seems to work fine on my machine, yet, I'm not using the TFLite runtime. I'll update the documentation accordingly. |
The TFLite runtime is working great for me -- thanks! |
I realized that TFLite-runtime 2.5.0 won't work, it has to be 2.7.0. Yet, this version doesn't seem to be available for all Python distros, e.g. the one I use on Windows. Therefore, I only recommend installing it on Ubuntu in the setup tutorial. Still closing this issue since it seems to work aside from that. |
I'll test it as soon as I have a RPi near me. |
When running BirdNET on a Raspberry Pi it is sufficient to install
tflite-runtime
without the need to installtensorflow
.Not having to install tensorflow/keras keeps the installation smaller and the process simpler.
It would be great if the import could be conditional so that the script does not throw an error when there is no installation of
tensorflow
.It could be something like
The text was updated successfully, but these errors were encountered: