opendet2
opendet2 copied to clipboard
对bias参数weight_decay的处理
opendet2/solver/build.py line 39: 注释和代码不符,注释中bias的weight_decay为默认值,实际代码中被设为None,导致以下错误: TypeError: add(): argument 'alpha' must be Number, not NoneType
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.
那可能是torch版本的原因,我用的是torch1.10.0+cuda11.3+detectron2v0.6,稍微改一下就能跑了