opendet2 icon indicating copy to clipboard operation
opendet2 copied to clipboard

对bias参数weight_decay的处理

Open sunxuhao opened this issue 3 years ago • 3 comments

opendet2/solver/build.py line 39: 注释和代码不符,注释中bias的weight_decay为默认值,实际代码中被设为None,导致以下错误: TypeError: add(): argument 'alpha' must be Number, not NoneType

sunxuhao avatar Aug 12 '22 08:08 sunxuhao

Sorry. Most code of opendet2/solver/build.py is copied from Detectron2 (including line 39). Can you check the version of your detectron2? We tested v0.5 and it works well.

csuhan avatar Aug 18 '22 16:08 csuhan

那可能是torch版本的原因,我用的是torch1.10.0+cuda11.3+detectron2v0.6,稍微改一下就能跑了

sunxuhao avatar Aug 19 '22 06:08 sunxuhao