-
Notifications
You must be signed in to change notification settings - Fork 139
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
Error when trying to use 5 second Sig_Length #288
Comments
update: Here are my config settings that I changed from default: # We're using 3-second chunks
SIG_LENGTH: float = 5.0
# Define overlap between consecutive chunks <3.0; 0 = no overlap
SIG_OVERLAP: float = 2.0
# Define minimum length of audio chunk for prediction,
# chunks shorter than 3 seconds will be padded with zeros
SIG_MINLEN: float = 5.0 and when I run the model using v2.4 this is the error_log traceback (repeated many times)
still not sure how to resolve the issue. |
BirdNET currently has no variable input size, so changing the sig_length will lead to an error. |
@Josef-Haupt is this a new change to v2.4? v2.1, v2.2, and v2.3 were all able to take 5 second Sig_lengths. |
This is because of the second spectrogram we introduced in V2.4 - both spectrograms use different parameters to arrive at the same resolution, and there are only very few input sizes that lead to the same spectrogram size for both. Unfortunately, 5s is none of them. I believe 3.5s and 2.5s should work, though. |
@kahst Thanks for the update and explanation. |
Hello,
I am using the python script to run BirdNET and would like to extend the segment length (
cfg.SIG_LENGTH
) to 5 seconds. This seems easy enough in theconfig.py
file by adjusting the variable and thecfg.SIG_MINLEN
variable to5.0
however when I run the analyzer I get an error that just says:my first guess was this might be might be a model input size since there is a comment in the
config.py
file that says:and with a 5 second segment length this would be
(batch size, 48000 kHz * 5 seconds) = (1, 240000)
but I don't know how or if I need to adjust this.Thanks!
The text was updated successfully, but these errors were encountered: