Skip to content

Replace core with birdnet library#867

Draft
Josef-Haupt wants to merge 59 commits intomainfrom
birdnet-lib
Draft

Replace core with birdnet library#867
Josef-Haupt wants to merge 59 commits intomainfrom
birdnet-lib

Conversation

@Josef-Haupt
Copy link
Member

No description provided.

Josef-Haupt and others added 9 commits February 17, 2026 13:54
Migrate from deprecated perch-hoplite API (EmbeddingSource model) to the new Deployment → Recording → Window data model introduced in v1.0.0. Changes: - embeddings/core.py: Rewrite embedding pipeline to use insert_deployment/insert_recording/insert_window instead of insert_embedding+EmbeddingSource. Add ghost segment filtering for birdnet's padded AcousticFileEncodingResult. Use handle_duplicates="skip" for resume support. - model_utils.py: Replace removed encode_array() with encode_session()+run_arrays() API. - search/utils.py: Fix SQLiteUsearchDB → SQLiteUSearchDB casing, replace embedding_id with window_id in SearchResult. - search/core.py: Use get_window()+get_recording() instead of removed get_embedding_source(). - gui/search.py: Same get_window()+get_recording() migration. - gui/embeddings.py: Fix SQLiteUSearchDB casing. - tests/embeddings/test_embeddings.py: Update mock to match new AcousticFileEncodingResult structure.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Josef-Haupt and others added 30 commits February 26, 2026 14:11
…-compat fix: update to perch-hoplite 1.0.0 API (Deployment → Recording → Window)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants