akarazniewicz / cocosplit

Simple tool to split COCO annotations into train/test datasets.
242 stars 94 forks source link

Cross Validation #5

Open MiguelAngeloMartinsRibeiro opened 3 years ago

MiguelAngeloMartinsRibeiro commented 3 years ago

It is possible to do cross validation with this?

My first question is if the split is random?

My second question is: Say, I have 1000 annotations in ONE json file, I would like to use the 1-800 annotations for training and the 801-1000 annotations for validating for the 1st train session, then for the next train session I would like to use the 210-1000 annotations for training and 1-200 annotations for validating. Is this possible?

Thank you

michaelmohamed commented 2 years ago

@MiguelAngeloMartinsRibeiro , please see my https://github.com/e1-io/echo1-coco-split library, based on this library. I've added support for train, valid, test, and a seed parameter for generation.