def build(config): """ building transform is different from all above, it needs combine components of transforms """ transforms = [] for trans_config in config: transforms.append(_build(trans_config, TRANSFORMS)) return trans.Compose(transforms)
def build(config): return _build(config, TARGET_ASSIGNERS)
def build(config): return _build(config, SAMPLERS)
def build(config, optimizer): return _build(config, SCHEDULERS, optimizer)
def build(config): return _build(config, ANCHOR_GENERATORS)
def build(config, transform, training): return _build(config, DATASETS, transform, training)
def build(config): return _build(config, BBOX_CODERS)
def build(config): return _build(config, FEATURE_EXTRACTORS)
def build(config): return _build(config, MATCHERS)
def build(config, model, logger=None): return _build(config, OPTIMIZERS, model, logger)
def build(config): return _build(config, DETECTORS)
def build(config): return _build(config, SIMILARITY_CALCS)