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

Split many categories #2

Open
AndreAbade opened this issue Jul 8, 2020 · 1 comment
Open

Split many categories #2

AndreAbade opened this issue Jul 8, 2020 · 1 comment

Comments

@AndreAbade
Copy link

When training and testing sets are generated in an 80/20 ratio, if there is more than one category they are balanced, that is, would each category in the json file have 80/20?

@ahmad-ra
Copy link
Contributor

This repo doesn't preserve class distributions to be split in the same ratio, it does a random split on the images and then includes annotations that belong to those images in the train/test sets.

I have updated this code base to include functionality of splitting while preserving balanced class distributions, you can try it from here: https://github.com/ahmad-ra/cocosplit

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