Skip to content
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

Transfer Learning #274

Open
safahafiz opened this issue Feb 28, 2024 · 5 comments
Open

Transfer Learning #274

safahafiz opened this issue Feb 28, 2024 · 5 comments

Comments

@safahafiz
Copy link

Can I build a classifier on top of the existing one for all the species using new data. In other words, I want to add new species to the list that BirdNET already has. However, the custom classifier only tests the input with the species in the custom classifier.

Is it possible to do transfer learning to train BirdNET?

@Josef-Haupt
Copy link
Collaborator

Hey, you can indeed extend BirdNET with your own classes. If you're using the GUI check the "append" option under Model Save Mode. In the CLI the option is called --model_save_mode in train.py.
This mode outputs the BirdNET classification and concats them to your custom classifier, so you get one long vector, with your new classes at the end.
Does that answer your question?

@nishantnnb
Copy link

Hi @Josef-Haupt ,

Tried to create a custom model with "Append" option in the GUI installed in windows with exe file.
Observations:

  1. Firstly, while training the model, error is received while saving. Only tflite model gets saved but the labels file not saved.
  2. After may attempts, it saved the tflite model along with labels file. In the labels file, newly added birds are listed at the end of the file.
  3. But while using this custom model (by choosing customer classifier), it always gives error.
  4. Tried all above things after reinstalling Birdnet Analyzer with freshly downloaded exe file as well. Same issues.
  5. If I use "replace", I can use the custom model successfully hence seems that there is no issue with input files/folders. But of course then it gives me results for the only the birds I trained for.

Regards,
Nishant.

@Josef-Haupt
Copy link
Collaborator

Thanks, I can reproduce the error.

@Josef-Haupt
Copy link
Collaborator

Is what I thought, but turns out, I forgot to select a file in the "Single file" tab.
Training works for me, as well as selecting the custom classifier (both replace and append).
If this error still occurs for you, could you please detail all your steps?

@nishantnnb
Copy link

Is what I thought, but turns out, I forgot to select a file in the "Single file" tab. Training works for me, as well as selecting the custom classifier (both replace and append). If this error still occurs for you, could you please detail all your steps?

Hello @Josef-Haupt , recorded a quick video of the screen to demonstrate the issue I am facing while using a model trained with 'Append' option. Kindly have a look. Thank you.

Training.with.Append.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants