I have a dataset for Object Detection with YOLO format labels, each imagine can have occurences of different classes and multiple occurences of the same class.
How can the dataset be divided into Training, Validation, and Test sets so that each contains about the same percentage of occurences per class?