You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Paul might share this too: a pipeline produces multiple kwcoco datasets for the same set of videos, with frame-wise activity classification ground truth, pose detection, and some object detections, respectively.
FWIW, we want to kwcoco split each of those by the same random split. I thought kwcoco split --rng 12345 might create the same split on each file but it doesn't.
And that's really no big deal for us! Obviously a ~5-line splitter script that seeds a random split of the video id list will do.
Just thought the use case might be interesting to consider. If so, maybe I could take a stab at a re-implementation of split that would work for this case?
The text was updated successfully, but these errors were encountered:
When balance_categories is True the current behavior is correct because the splits depend on the annotations. If you have two datasets with the same video AND annotation distribution you would expect they have the same split, but otherwise it may vary.
However, when balance_categories is False, then a consistent split over video-ids would make much more sense. The problem logic is here:
if not config['balance_categories'], then we should not need to duplicate image-ids for the sklearn splitter. I think you can just take the len(cids) == 0 path in this case, and it should work.
Of course, we should also write a test for this as well.
Even though most development of kwcoco is on gitlab, I think it makes sense to start using github more, as it should encourage more community contributions. Towards this end, I should enable CI on github for this package. So, please submit a PR here if you can help fix this.
Hey! Paul might share this too: a pipeline produces multiple kwcoco datasets for the same set of videos, with frame-wise activity classification ground truth, pose detection, and some object detections, respectively.
FWIW, we want to
kwcoco split
each of those by the same random split. I thoughtkwcoco split --rng 12345
might create the same split on each file but it doesn't.And that's really no big deal for us! Obviously a ~5-line splitter script that seeds a random split of the video id list will do.
Just thought the use case might be interesting to consider. If so, maybe I could take a stab at a re-implementation of
split
that would work for this case?The text was updated successfully, but these errors were encountered: