Hi, I got some errors in the class RIDELoss() in loss.py.
It seems that if I set the "reweight" flag of loss to be false in the configuration file, there would be an AttributeError which says 'RIDELoss' object has no attribute 'per_cls_weights_base'. I think you may set self.per_cls_weights_base to be None when self.reweight_epoch == -1 in the function _hook_before_epoch() to solve this problem.
Hi, I got some errors in the class
RIDELoss()
inloss.py
. It seems that if I set the "reweight" flag of loss to be false in the configuration file, there would be an AttributeError which says 'RIDELoss' object has no attribute 'per_cls_weights_base'. I think you may setself.per_cls_weights_base
to beNone
whenself.reweight_epoch == -1
in the function_hook_before_epoch()
to solve this problem.