mirror of
https://github.com/alibaba/EasyCV.git
synced 2025-06-03 14:49:00 +08:00
Link: https://code.alibaba-inc.com/pai-vision/EasyCV/codereview/9828601 * add predict pipeline
9 lines
262 B
Python
9 lines
262 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, default_args=None):
|
|
return build_from_cfg(cfg, PREDICTORS, default_args=default_args)
|