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

One class custom dataset #12

Open
Jobiis opened this issue Dec 25, 2024 · 4 comments
Open

One class custom dataset #12

Jobiis opened this issue Dec 25, 2024 · 4 comments

Comments

@Jobiis
Copy link

Jobiis commented Dec 25, 2024

Hello, I am using a dataset that has only one class. I have modified the .yml file and set num_classes to 1, but I get errors. When I set though num_classes to 2 the training begins as expected. Can you provide some info on what to do with datasets that have 1 class?

@faicaiwawa
Copy link

Hello, I am using a dataset that has only one class. I have modified the .yml file and set num_classes to 1, but I get errors. When I set though num_classes to 2 the training begins as expected. Can you provide some info on what to do with datasets that have 1 class?

an additional class might be background

@Jobiis
Copy link
Author

Jobiis commented Dec 26, 2024

Hello, I am using a dataset that has only one class. I have modified the .yml file and set num_classes to 1, but I get errors. When I set though num_classes to 2 the training begins as expected. Can you provide some info on what to do with datasets that have 1 class?

an additional class might be background

So you would suggest when dataset has 1 class to set num_classes to 2?

@faicaiwawa
Copy link

Hello, I am using a dataset that has only one class. I have modified the .yml file and set num_classes to 1, but I get errors. When I set though num_classes to 2 the training begins as expected. Can you provide some info on what to do with datasets that have 1 class?

an additional class might be background

So you would suggest when dataset has 1 class to set num_classes to 2?

yes

@Jobiis
Copy link
Author

Jobiis commented Dec 26, 2024

@ShihuaHuang95 could you confirm?

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

2 participants