What is the parameter to use class weights to balance two or more classes in nvidia tao segformer (5.5.0 and 5.3.0) specs?
Per-class weighting isn’t natively supported in the TAO SegFormer config, the most practical workaround is to address the imbalance at the data preparation stage:
- Oversample the minority classes so they appear more frequently during training.
- Duplicate samples from underrepresented classes to increase their effective count in the dataset.
- Increase the data augmentation probability specifically for minority-class samples (e.g., applying for more resolution to those images, and may also try flips, rotations, blur, or color jitter to those images) so the model sees more variation for the classes it’s struggling to learn.
There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks.