argument 'alpha' must be Number, not NoneType
Yxt1212 opened this issue · 2 comments
Yxt1212 commented
Hello, thanks for your work.
I met a bug:
d_p = d_p.add(param, alpha=weight_decay)
TypeError: add(): argument 'alpha' must be Number, not NoneType
The detectron2 version is 0.6.Please tell me how could I solve this problem.
frostinassiky commented
@Yxt1212 I met the same issue. It is solved by _CC.SOLVER.WEIGHT_DECAY_BIAS = 0.0 # None
in defrcn/config/defaults.py