Skip to content

Commit

Permalink
chore: enable XNNPACK delegate for inference acceleration
Browse files Browse the repository at this point in the history
- Updated configuration to set 'usexnnpack' to true in both config.yaml and defaults.go files.
- This change enhances the inference performance by utilizing the XNNPACK delegate, improving overall efficiency in processing.
  • Loading branch information
tphakala committed Jan 19, 2025
1 parent 569ad42 commit 3c420a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/conf/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ birdnet:
threshold: 0.01 # rangefilter species occurrence threshold
modelpath: "" # path to external model file (empty for embedded)
labelpath: "" # path to external label file (empty for embedded)
usexnnpack: false # true to use XNNPACK delegate for inference acceleration
usexnnpack: true # true to use XNNPACK delegate for inference acceleration

# Realtime processing settings
realtime:
Expand Down
2 changes: 1 addition & 1 deletion internal/conf/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func setDefaultConfig() {
viper.SetDefault("birdnet.longitude", 0.000)
viper.SetDefault("birdnet.modelpath", "")
viper.SetDefault("birdnet.labelpath", "")
viper.SetDefault("birdnet.usexnnpack", false)
viper.SetDefault("birdnet.usexnnpack", true)

// Range filter configuration
viper.SetDefault("birdnet.rangefilter.debug", false)
Expand Down

0 comments on commit 3c420a4

Please sign in to comment.