GitHub repository: kousu/imbalanced-dataset-sampler
Description: A (PyTorch) imbalanced dataset sampler for oversampling low frequent classes and undersampling high frequent ones.