mirror of https://github.com/alibaba/EasyCV.git
9 lines
226 B
Python
9 lines
226 B
Python
|
# Copyright (c) Alibaba, Inc. and its affiliates.
|
||
|
from easycv.utils import Registry, build_from_cfg
|
||
|
|
||
|
PREDICTORS = Registry('predictor')
|
||
|
|
||
|
|
||
|
def build_predictor(cfg):
|
||
|
return build_from_cfg(cfg, PREDICTORS, default_args=None)
|