Is there any built-in method to oversample minority classes?

Hi, Thanks for your links.
I tried to use your method for oversampling Multicategory image segmentation but it is not working. Is there any update?
this is the error:
TypeError: ‘ImageSegment’ object is not iterable
when I use:
sampler = ImbalancedDatasetSampler(src.train).

Wow this is old, I would suggest to move to fastai>2.0
Anyway, a sampler is just a function that return indexes on the dataset so you would need to adapt to your use case.