RF-DETR Hyperparameters for Class Imbalance

Hey y’all,

I am using RF-DETR on a dataset that has two classes with a decent class imbalance. This imbalance isn’t hurting mAP50, but I am seeing a 10% difference in mAP. I know that some sort of per-class augmentation could help, but I am hoping to fix this with my training parameters instead. I’ve already played with gamma values, alpha values, varifocal and ia bce loss, class loss coefficient, class cost, and tried implementing per-class weights for loss. Does anyone know any other parameters that I may be able to try?

Best,
Rhys

Hi @RhysDeLoach!
Have you attempted to train on the Roboflow app? Our models team has done an incredible job optimizing training to handle this situation.

Hey @Ford,

Yes, I have. The app model performed the same as some of my tuned models.

Best,
Rhys

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.