mirror of
https://github.com/alibaba/EasyCV.git
synced 2025-06-03 14:49:00 +08:00
9 lines
235 B
Python
9 lines
235 B
Python
# Copyright (c) Alibaba, Inc. and its affiliates.
|
|
from easycv.utils.registry import Registry, build_from_cfg
|
|
|
|
PREDICTORS = Registry('predictor')
|
|
|
|
|
|
def build_predictor(cfg):
|
|
return build_from_cfg(cfg, PREDICTORS, default_args=None)
|