Пример #1
0
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)
Пример #2
0
def build(config):
    return _build(config, TARGET_ASSIGNERS)
Пример #3
0
def build(config):
    return _build(config, SAMPLERS)
Пример #4
0
def build(config, optimizer):
    return _build(config, SCHEDULERS, optimizer)
Пример #5
0
def build(config):
    return _build(config, ANCHOR_GENERATORS)
Пример #6
0
def build(config, transform, training):

    return _build(config, DATASETS, transform, training)
Пример #7
0
def build(config):
    return _build(config, BBOX_CODERS)
Пример #8
0
def build(config):
    return _build(config, FEATURE_EXTRACTORS)
Пример #9
0
def build(config):
    return _build(config, MATCHERS)
Пример #10
0
def build(config, model, logger=None):
    return _build(config, OPTIMIZERS, model, logger)
Пример #11
0
def build(config):
    return _build(config, DETECTORS)
Пример #12
0
def build(config):
    return _build(config, SIMILARITY_CALCS)