Chen Jiayu 0b472bacf1
refactor detection, support detr and dab-detr (#104)
refactor detection, support detr and dab-detr
2022-07-11 14:52:49 +08:00

8 lines
202 B
Python

from easycv.utils.registry import Registry, build_from_cfg
OPTIMIZER_BUILDERS = Registry('optimizer builder')
def build_optimizer_constructor(cfg):
return build_from_cfg(cfg, OPTIMIZER_BUILDERS)