er-muyue / DeFRCN

MIT License
181 stars 43 forks source link

argument 'alpha' must be Number, not NoneType #56

Closed Yxt1212 closed 1 year ago

Yxt1212 commented 1 year ago

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 1 year ago

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

Nahian36 commented 1 year ago

@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?