Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.13] - 2026-04-06

### Changed

- Changed sigmoid function to match birdnet_analyzer by @Josef-Haupt

### Bugfixes

- Fixed issue #29

## [0.2.12] - 2026-02-22

### Added
Expand Down Expand Up @@ -242,7 +252,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial release

[Unreleased]: https://github.com/birdnet-team/birdnet/compare/v0.2.12...HEAD
[Unreleased]: https://github.com/birdnet-team/birdnet/compare/v0.2.13...HEAD
[0.2.13]: https://github.com/birdnet-team/birdnet/compare/v0.2.12...v0.2.13
[0.2.12]: https://github.com/birdnet-team/birdnet/compare/v0.2.11...v0.2.12
[0.2.11]: https://github.com/birdnet-team/birdnet/compare/v0.2.10...v0.2.11
[0.2.10]: https://github.com/birdnet-team/birdnet/compare/v0.2.9...v0.2.10
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = "birdnet"
copyright = "2026, Stefan Taubert"
author = "Stefan Taubert"
release = "0.2.12"
release = "0.2.13"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "birdnet"
version = "0.2.12"
version = "0.2.13"
description = "A Python library for identifying bird species by their sounds."
readme = "README.md"
requires-python = ">=3.11, <3.14"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def _get_block(
assert self._sigmoid_sensitivity is not None
infer_result = flat_sigmoid_logaddexp_fast(
infer_result,
sensitivity=-self._sigmoid_sensitivity,
sensitivity=-1.0,
bias=self._sigmoid_sensitivity,
)

invalid_mask = (infer_result < self._thresholds) | self._blacklist
Expand Down
1 change: 1 addition & 0 deletions src/birdnet/acoustic/inference/process_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ def join(self) -> None:
self._perf_tracker_process = None
logger.debug("Performance tracker finished.")

if self._res.stats_resources.use_callback:
logger.debug("Joining dispatcher thread...")
assert self._progress_dispatcher_thread is not None
self._progress_dispatcher_thread.join()
Expand Down
Empty file.
45 changes: 45 additions & 0 deletions src/birdnet_tests/issues/test_issue29.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import birdnet


def test_issue_29() -> None:
target = "example/soundscape.wav"
top_k = None
batch_size = 1
prefetch_ratio = 3
overlap_duration_s = 0.0
bandpass_fmin = 0
bandpass_fmax = 15000
sigmoid_sensitivity = 1.0
speed = 1.0
default_confidence_threshold = 0.25
custom_species_list = None
progress_callback = None
show_stats = "progress"
n_workers = None
n_producers = 1
apply_sigmoid = True

model = birdnet.load(
"acoustic",
"2.4",
"tf",
)

model.predict(
target,
top_k=top_k,
batch_size=batch_size,
prefetch_ratio=prefetch_ratio,
overlap_duration_s=overlap_duration_s,
bandpass_fmin=bandpass_fmin,
bandpass_fmax=bandpass_fmax,
sigmoid_sensitivity=sigmoid_sensitivity,
speed=speed,
default_confidence_threshold=default_confidence_threshold,
custom_species_list=custom_species_list,
progress_callback=progress_callback,
show_stats=show_stats,
n_workers=n_workers,
n_producers=n_producers,
apply_sigmoid=apply_sigmoid,
)
Loading