er-muyue/DeFRCN

argument 'alpha' must be Number, not NoneType

Yxt1212 opened this issue · 2 comments

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.

@Yxt1212 I met the same issue. It is solved by _CC.SOLVER.WEIGHT_DECAY_BIAS = 0.0 # None in defrcn/config/defaults.py

@Yxt1212 I met the same issue. It is solved by _CC.SOLVER.WEIGHT_DECAY_BIAS = 0.0 # None in defrcn/config/defaults.py

Do I have to add this line, or replace it with any other line?