Comments (4)
Well, I noticed a comment on the main git page:
"Install TFLite runtime (recommended) or Tensorflow (has to be 2.5 or later):"
Since it's saying tflite-runtime is "recommended", I edited the "Dockerfile" file and changed it to:
Install tflite-runtime
RUN pip3 install tflite-runtime
The build succeeded (see below).
[+] Building 7.5s (11/11) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 499B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/python:3.8-slim 0.8s
=> [auth] library/python:pull token for registry-1.docker.io 0.0s
=> [1/5] FROM docker.io/library/python:3.8-slim@sha256:92331358d341594de3857397796335d6e1e26fca1230709e439a415624792c87 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 8.49kB 0.0s
=> CACHED [2/5] RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/* 0.0s
=> CACHED [3/5] RUN pip3 install numpy scipy librosa 0.0s
=> [4/5] RUN pip3 install tflite-runtime 1.2s
=> [5/5] COPY . ./ 3.1s
=> exporting to image 2.2s
=> => exporting layers 2.2s
=> => writing image sha256:4e3e123797bd2eaf23c097b7aeecb3e163482c10f6907ed64fbc73c55f9c538a 0.0s
=> => naming to docker.io/library/birdnet
from birdnet-analyzer.
Thanks! Not sure why it wouldn't work with TF, seems like it is expecting a certain Python environment, but the container should typically provide the correct one. However, like you said, since pip install tflite-runtime
also works, I'll update the docker file to use the runtime instead.
from birdnet-analyzer.
I run into this problem a lot because I'm using an Mac Mini M1 which is NOT Intel. However, I'm just guessing that's the issue here. On a lot of Docker builds, I run into issues of packages NOT working because it's arm64 (Apple Silicon).
from birdnet-analyzer.
I'm closing this ticket because the mentioned changes were made.
Just as a note, maybe it's also worth to incorporate this in the Dockerfile.
from birdnet-analyzer.
Related Issues (20)
- Creating a custom python script to use tflite model files : newby HOT 1
- Slow performance for analyze.py and embeddings.py HOT 1
- Add real-time detection HOT 1
- Adding BirdWeather integration to allow for PUC data processing HOT 5
- Issue with `segments.py` Not Saving Extracted Segments HOT 1
- Species list of the custom classifier has ANSI encoding and has to be converted to UTF-8 HOT 2
- Cannot utilize PBMODEL HOT 1
- Support different sampling modes in segments.py
- Link for Windows install leads to 404 error HOT 2
- Add internationalization HOT 1
- Segments not extracting to output directory (BirdNET GUI) HOT 1
- analyze.py seems to skip many files if it encounters a corrupt file HOT 4
- v1.1.0 Windows packaged version error from command line -- No such file or directory: 'labels\\label_names.csv' HOT 2
- Question on quality of Training Files
- Missing tensorflow - MacOS M1 HOT 5
- ModuleNotFoundError: No module named 'tflite_runtime' [Windows] HOT 2
- Raven list file not sorted
- [Information request] Are the android app and the website open-source ? HOT 1
- Utilize GPU when training
- Birdnet not responding after update HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from birdnet-analyzer.