Example #1
0
def build_base_anchor(cfg):
    return build_from_cfg(cfg, registry, 'base_anchor')
Example #2
0
 def __init__(self, pipeline):
     self.pipeline = [
         build_from_cfg(cfg, registry, 'postprocess') for cfg in pipeline
     ]
Example #3
0
def build_model(cfg):
    return build_from_cfg(cfg, registry, 'inference')
Example #4
0
def build_preprocess(cfg):
    return build_from_cfg(cfg, registry, 'preprocess')
Example #5
0
def build_meshgrid(cfg):
    return build_from_cfg(cfg, registry, 'meshgrid')
Example #6
0
def build_converter(cfg):
    return build_from_cfg(cfg, registry, 'converter')
Example #7
0
def build_bbox_coder(cfg, **default_args):
    bbox_coder = build_from_cfg(cfg, registry, 'bbox_coder', default_args)
    return bbox_coder
Example #8
0
def build_assigner(cfg, **default_args):
    """Builder of box assigner."""
    return build_from_cfg(cfg, registry, 'bbox_assigner', default_args)
Example #9
0
def build_iou_calculator(cfg, default_args=None):
    """Builder of IoU calculator."""
    return build_from_cfg(cfg, registry, 'iou_calculator', default_args)