-
Notifications
You must be signed in to change notification settings - Fork 258
Replace core with birdnet library
#867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Josef-Haupt
wants to merge
71
commits into
main
Choose a base branch
from
birdnet-lib
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
2e6f590
Replace legacy code with birdnet library
Josef-Haupt 92cbf95
Merge remote-tracking branch 'origin/main' into birdnet-lib
Josef-Haupt c127299
.
Josef-Haupt db99412
.
Josef-Haupt b07a519
.
Josef-Haupt 939e920
initial umbau
Josef-Haupt ba6f03f
initial working
Josef-Haupt a7f85c0
...
Josef-Haupt f6659ec
initial single file tab
Josef-Haupt 31ed4e4
.
Josef-Haupt a2e1e66
.
Josef-Haupt 143b773
merge
Josef-Haupt 7d570dc
.
Josef-Haupt 96d586b
.
Josef-Haupt bb062c2
.
Josef-Haupt 440e789
removing config p1
Josef-Haupt 9a8ee54
removing config p2
Josef-Haupt 9b34a17
removing config p3
Josef-Haupt dc3b31d
modifying tests
Josef-Haupt e288f25
.
Josef-Haupt 78db614
lint
Josef-Haupt c51df93
.
Josef-Haupt c5f46d5
fix: update to perch-hoplite 1.0.0 API
LimitlessGreen b535912
fix: address review feedback — add missing input_durations to mock, g…
LimitlessGreen 911cbb1
Apply suggestions from code review
LimitlessGreen 289c346
fix: remove duplicate input_durations line
LimitlessGreen 772b3e2
embeddings: batch window inserts per file
LimitlessGreen 1c7bd7c
search: use ANN for dot/IP with brute fallback
LimitlessGreen 2268068
update lib
Josef-Haupt 0326f34
-
Josef-Haupt 5cb7939
Merge pull request #871 from LimitlessGreen/fix/perch-hoplite-1.0-api…
max-mauermann 4e5ec13
small fix due to lib update and updated hoplite dependency in pyproject
max-mauermann 42c690b
added additional parameter to specify root directory for audio files
max-mauermann fdeee57
removed audio root param for embedding extraction. implemented audio …
max-mauermann 9284055
lib 0.2.12 is buggy -> rollback for now
Josef-Haupt eddb025
more rollback
Josef-Haupt 55cf096
translations
max-mauermann 69bf9b9
Merge branch 'birdnet-lib' into embeddings-audio-root
max-mauermann c6c72c0
Merge pull request #878 from birdnet-team/embeddings-audio-root
max-mauermann b23f030
remove unused fct
Josef-Haupt f4c877a
Merge branch 'birdnet-lib' of https://github.com/kahst/BirdNET-Analyz…
Josef-Haupt 9874364
sigmoid is applied, confidence is set to 0 when using top n (workarou…
max-mauermann f928e64
ruff line-length=88
Josef-Haupt a0e5eb0
Merge branch 'birdnet-lib' of https://github.com/kahst/BirdNET-Analyz…
Josef-Haupt 7459631
update train cli
Josef-Haupt 078942d
fixed header in single analysis when result is empty
max-mauermann 855554f
Merge branch 'birdnet-lib' of https://github.com/kahst/BirdNET-Analyz…
max-mauermann 17c02a0
perch can be used (always defaults to cpu device), raven export fixed…
max-mauermann 6b51055
fix for segments with multithreaded processing
max-mauermann 47c287b
.
Josef-Haupt a043fa4
update gradio
Josef-Haupt 976b906
pyproject update
Josef-Haupt 75f2793
fixed species list tab and cli. removed sorting, added locale
max-mauermann e84fd3d
revert to single core data loading for training
Josef-Haupt 4b7e1de
Merge branch 'birdnet-lib' of https://github.com/kahst/BirdNET-Analyz…
Josef-Haupt d69f13f
switch from keras-tuner to optuna
Josef-Haupt 4448aaa
.
Josef-Haupt 0807be0
sample counts get saved correctly
max-mauermann 4d92e82
.
Josef-Haupt 7324a23
Merge branch 'birdnet-lib' of https://github.com/kahst/BirdNET-Analyz…
Josef-Haupt ada1826
fixed custom classifier output for single analysis
max-mauermann 796d165
birdnet 0.2.13
Josef-Haupt cbd8ef4
.
Josef-Haupt be35dda
.
Josef-Haupt cb927d2
output files are now created with copies of the result dataframe to a…
max-mauermann 8539ed5
Merge pull request #892 from birdnet-team/result-file-fix
max-mauermann 6c45952
.
Josef-Haupt 57933ff
revert to gradio 5.46.1
Josef-Haupt dd5a17b
canceling file selection no longer removes previous selection
Josef-Haupt c1ac803
more translation
Josef-Haupt 9845559
Merge branch 'birdnet-lib' of https://github.com/kahst/BirdNET-Analyz…
Josef-Haupt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| // See https://go.microsoft.com/fwlink/?LinkId=827846 | ||
| { | ||
| "recommendations": [ | ||
| "charliermarsh.ruff" | ||
| "charliermarsh.ruff", | ||
| "astral-sh.ty" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,26 @@ | ||
| import os | ||
| from birdnet_analyzer.analyze.core import ( | ||
| analyze, | ||
| save_as_audacity, | ||
| save_as_csv, | ||
| save_as_kaleidoscope, | ||
| save_as_rtable, | ||
| ) | ||
|
|
||
| import birdnet_analyzer.config as cfg | ||
| from birdnet_analyzer.analyze.core import analyze | ||
|
|
||
| POSSIBLE_ADDITIONAL_COLUMNS_MAP = { | ||
| "lat": lambda: cfg.LATITUDE, | ||
| "lon": lambda: cfg.LONGITUDE, | ||
| "week": lambda: cfg.WEEK, | ||
| "overlap": lambda: cfg.SIG_OVERLAP, | ||
| "sensitivity": lambda: cfg.SIGMOID_SENSITIVITY, | ||
| "min_conf": lambda: cfg.MIN_CONFIDENCE, | ||
| "species_list": lambda: cfg.SPECIES_LIST_FILE or "", | ||
| "model": lambda: os.path.basename(cfg.MODEL_PATH), | ||
| } | ||
| POSSIBLE_ADDITIONAL_COLUMNS = [ | ||
| "lat", | ||
| "lon", | ||
| "week", | ||
| "overlap", | ||
| "sensitivity", | ||
| "min_conf", | ||
| "species_list", | ||
| "model", | ||
| ] | ||
|
|
||
| __all__ = [ | ||
| "analyze", | ||
| "save_as_audacity", | ||
| "save_as_csv", | ||
| "save_as_kaleidoscope", | ||
| "save_as_rtable", | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CLI drops
use_perchbut does not translate it into themodelargument (despite the comment). This makes--use_perchineffective. Before popping the flag, setanalyze_args['model'] = 'perch'whenargs.use_perchis true (and default to'birdnet'otherwise), matching how the GUI callsanalyze().