Closed tphakala closed 2 weeks ago
The changes introduce a new TensorFlow Lite model and refactor the configuration for range filtering in the BirdNET system. Specifically, a new meta model data is added, and the configuration now uses a nested structure for range filtering instead of a single threshold value. The updates also include renaming and restructuring various configuration settings and their default values to enhance clarity and functionality.
Files | Change Summary |
---|---|
internal/birdnet/birdnet.go |
Added metaModelDataV1 , renamed metaModelData to metaModelDataV2 , and updated initialization logic. |
internal/birdnet/rangefilter.go |
Refactored LocationFilterThreshold to RangeFilter.Threshold and updated related logic. |
internal/conf/config.go |
Replaced LocationFilterThreshold with a nested RangeFilter struct in Settings . |
internal/conf/config.yaml |
Updated configuration structure to include rangefilter with model and threshold . |
internal/conf/defaults.go |
Modified default settings to use the new rangefilter structure. |
sequenceDiagram
participant User
participant Settings
participant BirdNET
participant MetaModel
User->>Settings: Load Configuration
Settings->>BirdNET: Provide RangeFilter settings
BirdNET->>MetaModel: Initialize with selected meta model data
MetaModel-->>BirdNET: Return initialized model
BirdNET-->>User: Ready to process with new model
In the code, a change so bright,
New models take their flight.
Filters now with range and grace,
Configurations find their place.
BirdNET sings a clearer tune,
In the software's sunny noon.
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Thanks a lot @tphakala !
…"legacy" version.
Also introduces a sliglty changed birdnet config layout with new config node birdnet.rangefilter with mode and threshold (renamed from birdnet.locationfilterthreshold) settings