Code Monkey home page Code Monkey logo

Comments (6)

kahst avatar kahst commented on July 26, 2024

Hmmm, weird, do you have a sample file that I can use to try to replicate this behavior?

from birdnet-analyzer.

fegue avatar fegue commented on July 26, 2024

Well ok, so its not always double the time but it always takes significantly longer.
The audio files were recorded in stereo and then converted to mono using ffmpeg (10min & Sample rate 48 kHz).
1 File (10 min): Mono 70s ; Stereo 90s
2 Files (à 10 min): Mono 110s; Stereo 260s
3 Files: Mono 190s; Stereo 460s

CPU_THREADS = 1
TFLITE_THREADS = 4

Example files are here
https://oekofor.ddns.net/index.php/s/7mMXFWGNTeCTYkp

from birdnet-analyzer.

kahst avatar kahst commented on July 26, 2024

I wasn't able to reproduce the issue, which machine and model did you use to run the test?

This is the log from my workstation PC using only one CPU thread:

Analyzing example/mono/SN99_2022-04-07T084531+0000.wav
Finished example/mono/SN99_2022-04-07T084531+0000.wav in 18.88 seconds
Analyzing example/mono/SN99_2022-04-07T084531+0000_2.wav
Finished example/mono/SN99_2022-04-07T084531+0000_2.wav in 18.30 seconds
Analyzing example/mono/SN99_2022-04-07T084531+0000_2_mono.wav
Finished example/mono/SN99_2022-04-07T084531+0000_2_mono.wav in 17.58 seconds
Analyzing example/mono/SN99_2022-04-07T084531+0000_3.wav
Finished example/mono/SN99_2022-04-07T084531+0000_3.wav in 18.23 seconds
Analyzing example/mono/SN99_2022-04-07T084531+0000_3_mono.wav
Finished example/mono/SN99_2022-04-07T084531+0000_3_mono.wav in 17.43 seconds
Analyzing example/mono/SN99_2022-04-07T084531+0000_mono.wav
Finished example/mono/SN99_2022-04-07T084531+0000_mono.wav in 17.43 seconds

from birdnet-analyzer.

fegue avatar fegue commented on July 26, 2024

I ran the tests on a Raspberry Pi 3A+, 512mb Ram and a 2Gb Swapfile which fills up quite a bit.
The model version is 1.4 and it runs on tflite-runtime without the full tensorflow installation.

from birdnet-analyzer.

kahst avatar kahst commented on July 26, 2024

Did you find a solution or workaround for that issue? Haven't been able to reproduce the behavior so far.

from birdnet-analyzer.

mzakharo avatar mzakharo commented on July 26, 2024

@fegue -> try placing the audio files into /tmp ramdisk, and analyzing from there, trying to rule out the SD card reads. Also, if you are using client/server.py, then server saves temporary file to local folder, again, you can edit the file to move it to /tmp.

from birdnet-analyzer.

Related Issues (20)

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.