Skip to content

Commit a05cffe

Browse files
committed
fix: update birdnet-onnx to 2.0.0-rc.11 for Perch v2 confidence fix (#167)
Fixes incorrect confidence values (all >0.99) when using Perch v2 model, caused by using sigmoid instead of softmax for output activation.
1 parent cb5dd43 commit a05cffe

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

Cargo.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "birda"
3-
version = "1.7.0"
3+
version = "1.7.1"
44
edition = "2024"
55
rust-version = "1.92"
66
description = "CLI tool for bird species detection using BirdNET and Perch models"
@@ -16,7 +16,7 @@ cuda = ["birdnet-onnx/cuda"]
1616
load-dynamic = ["birdnet-onnx/load-dynamic"]
1717

1818
[dependencies]
19-
birdnet-onnx = { version = "2.0.0-rc.8", features = ["load-dynamic"] }
19+
birdnet-onnx = { version = "2.0.0-rc.11", features = ["load-dynamic"] }
2020
symphonia = { git = "https://github.com/tphakala/Symphonia", branch = "feature/rf64-support", features = ["aac", "mp3", "flac", "wav", "pcm"] }
2121
rubato = "1.0"
2222
audioadapter-buffers = "2.0"

src/inference/classifier.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ fn add_execution_provider(
873873
builder: ClassifierBuilder,
874874
provider_info: ExecutionProviderInfo,
875875
) -> ClassifierBuilder {
876+
#[allow(deprecated)]
876877
use ort_execution_providers::{
877878
ACLExecutionProvider, ArmNNExecutionProvider, CoreMLExecutionProvider,
878879
DirectMLExecutionProvider, OneDNNExecutionProvider, OpenVINOExecutionProvider,
@@ -913,6 +914,7 @@ fn add_execution_provider(
913914
}
914915
ExecutionProviderInfo::Qnn => builder.execution_provider(QNNExecutionProvider::default()),
915916
ExecutionProviderInfo::Acl => builder.execution_provider(ACLExecutionProvider::default()),
917+
#[allow(deprecated)]
916918
ExecutionProviderInfo::ArmNn => {
917919
builder.execution_provider(ArmNNExecutionProvider::default())
918920
}

0 commit comments

Comments
 (0)