rdz-oss / battybirdnet-analyzer Goto Github PK
View Code? Open in Web Editor NEWThis project forked from kahst/birdnet-analyzer
BattyBirdNET analyzer for scientific audio data processing.
License: Other
This project forked from kahst/birdnet-analyzer
BattyBirdNET analyzer for scientific audio data processing.
License: Other
Hi, I am trying to run the bat_ident.py on Arch Linux. I did the following:
git clone https://github.com/rdz-oss/BattyBirdNET-Analyze
cd BattyBirdNET-Analyze
docker build . -t batty
docker run -v ~/bats:/home/bats -it batty bat_ident.py --area USA --i /home/bats/ --o /home/bats/out/ --rtype csv
But it printed e.g. Error: Cannot analyze audio file /home/bats/NoID_20240726_211812.wav.
. After patching
BattyBirdNET-Analyzer/bat_ident.py
Line 473 in 0412be3
/home/bats/error.log
I could see the full error:
Traceback (most recent call last):
File "//bat_ident.py", line 281, in analyze_file
prediction = predict(samples)
File "//bat_ident.py", line 217, in predict
prediction = model.predict(data)
File "/model.py", line 308, in predict
return predictWithCustomClassifier(sample)
File "/model.py", line 351, in predictWithCustomClassifier
feature_vector = embeddings(sample)
File "/model.py", line 387, in embeddings
features = INTERPRETER.get_tensor(OUTPUT_LAYER_INDEX)
File "/usr/local/lib/python3.9/site-packages/tensorflow/lite/python/interpreter.py", line 888, in get_tensor
return self._interpreter.GetTensor(tensor_index, subgraph_index)
ValueError: Tensor data is null. Run allocate_tensors() first
I can see in the code that allocate_tensors()
is always run after tflite.Interpreter()
calls so I'm not sure whats going on, maybe a version mismatch from the known working version (since the dockerfile installs the latest of everything)?
The classifier should be able to run 24/7 with a minimum of false alarms by environmental noise.
This requires samples of noise from different environments (say 10 of each type).
Hi,
I'm using a species list that fits the best the regions where I usually record bats. To to that I'm adding the flag --slist put-your-files-here/ where there's is my own species_list.txt. It works well but I noticed that at least one species (Pipistrellus nathusii) never appears anymore in the output. When I run the API with default species list, ie. no --slist flag, the species appears...
Can it be a bug somewhere or am I missing something in the spelling? To be sure I spelled correctly, I copied the english species list where I removed unwanted species.
Any hint?
Here is the content of my species_list.txt :
Barbastella barbastellus_Western barbastelle
Eptesicus nilssonii_Northern bat
Eptesicus serotinus_Serotine bat
Myotis alcathoe_Alcathoe bat
Myotis bechsteinii_Bechsteins bat
Myotis brandtii_Brandt bat
Myotis daubentonii_Daubentons bat
Myotis emarginatus_Geoffroys bat
Myotis myotis_Greater mouse-eared bat
Myotis mystacinus_Whiskered bat
Myotis nattereri_Natterers bat
Nyctalus leisleri_Lesser noctule
Nyctalus noctula_Common noctule
Pipistrellus kuhlii_Kuhls pipistrelle
Pipistrellus nathusii_Nathusius pipistrelle
Pipistrellus pipistrellus_Common pipistrelle
Pipistrellus pygmaeus_Soprano pipistrelle
Plecotus spec._Long eared bat
Rhinolophus ferrumequinum_Greater horseshoe bat
Rhinolophus hipposideros_Lesser horseshoe bat
Vespertilio murinus_Parti-coloured bat
See discussion here: #3
Bat sounds are mostly out of reach of human hearing. Add a possibility to make human audible data. As not all humans are alike, aim for customizability and enable also low frequwncies, i.e. less than 7kHz versions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.