Git Product home page Git Product logo

battybirdnet-analyzer's People

Contributors

afairbairn avatar arky avatar bartman081523 avatar emoritzx avatar fegue avatar haroldmills avatar jimmyknowles avatar josef-haupt avatar jrcoding avatar kahst avatar limitlessgreen avatar mcguirepr89 avatar mikkohei13 avatar mzakharo avatar olipayne avatar pete-the-geek avatar rdz-oss avatar tommy4st avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

battybirdnet-analyzer's Issues

"Tensor data is null. Run allocate_tensors() first" when running on Arch Linux

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

cfg.ERROR_LOG_FILE = os.path.join(script_dir, cfg.ERROR_LOG_FILE)
to /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)?

Increase robustness to environmental noise

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).

Problem when I use my own species list

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

Add live listening freature at less than 7kHz

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.