r/BirdNET_Analyzer • u/Simple-Resort5077 • Mar 16 '24
Train my own dataset in python
Hi,
How can I incorporate train.py as part of my Python script (but not in Ubuntu, and not in CLI)?
Do I need to install any dependencies first? I've just downloaded the entire repository to a directory, and I want to conduct transfer learning for local birds.
Thanks in advance!
2
Upvotes
View all comments
Show parent comment
1
u/GrunCr0w Apr 03 '24
I've texted a friend whose lab is focused on computer vision on audio and he told me that with BirdNET, it is possible to train a single fully connected layer on top of the birdnet feature extractor backbone - single target training data, no augmentation during training. It is not possible to fine tune the entire network.
Following the readme of the github repo (https://github.com/kahst/BirdNET-Analyzer?tab=readme-ov-file#training) it seems that it would be calling the script from the terminal:
python train.py --i <path to training data folder> --o <path to trained classifier model output>
There is a birdnetlib but it seems to just work for analyzing data
I hope this helps you!