Skip to content

Commit

Permalink
feat: add debug flag for BirdNET processing
Browse files Browse the repository at this point in the history
- Introduced a new debug mode option in BirdNETConfig to enable detailed logging during analysis.
- Set default value for debug mode to false in the configuration settings.
  • Loading branch information
tphakala committed Jan 6, 2025
1 parent cb97201 commit 23bf096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ type InputConfig struct {
}

type BirdNETConfig struct {
Debug bool // true to enable debug mode
Sensitivity float64 // birdnet analysis sigmoid sensitivity
Threshold float64 // threshold for prediction confidence to report
Overlap float64 // birdnet analysis overlap between chunks
Expand Down
1 change: 1 addition & 0 deletions internal/conf/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func setDefaultConfig() {
viper.SetDefault("main.log.rotationday", "Sunday")

// BirdNET configuration
viper.SetDefault("birdnet.debug", false)
viper.SetDefault("birdnet.sensitivity", 1.0)
viper.SetDefault("birdnet.threshold", 0.8)
viper.SetDefault("birdnet.overlap", 0.0)
Expand Down

0 comments on commit 23bf096

Please sign in to comment.