Balance Classes During Training - Yolov11

The callbacks would still not work with multi-GPU. Neither monkey-patching, nor callbacks work with multi-GPU training. You will have to modify the source code to make the modifications stick. By adding the YOLOWeightedDataset to this file:

And then changing YOLODataset in this line to YOLOWeightedDataset: