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

Error #559

Open
GrunCrow opened this issue Jan 29, 2025 · 0 comments
Open

Error #559

GrunCrow opened this issue Jan 29, 2025 · 0 comments

Comments

@GrunCrow
Copy link
Contributor

GrunCrow commented Jan 29, 2025

Describe the bug
During training from the GUI it gives me an error, the log says folder of a class is empty, but I checked and it has audio segments.

To Reproduce
Steps to reproduce the behavior:
For the GUI:

  1. Go to Train
  2. Click on Select training data, select folder
  • Classifier output: tflite
  • Epochs, batch size and learning rate, default
  • Upsampling mode: SMOTE
  • Upsampling ratio: 0.25
  • Use mixup
  • Crop mde: segments
  • Model save: replace
  1. See error:
    `Log:
    [2025-01-29 14:13:34]
    Traceback (most recent call last):
    File "birdnet_analyzer\utils.py", line 411, in upsample_core
    File "numpy\random\mtrand.pyx", line 951, in numpy.random.mtrand.RandomState.choice
    ValueError: 'a' cannot be empty unless no samples are taken

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "birdnet_analyzer\train.py", line 393, in trainModel
File "birdnet_analyzer\model.py", line 244, in trainLinearClassifier
File "birdnet_analyzer\utils.py", line 504, in upsampling
File "birdnet_analyzer\utils.py", line 413, in upsample_core
birdnet_analyzer.utils.EmptyClassException: Class with label Lanius is empty. Please remove it from the training data.`

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Image

Lanius Folder:

Image

Desktop (please complete the following information):

  • OS: Win11
  • Version 1.5.1
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

1 participant