1
0
mirror of https://github.com/alibaba/EasyCV.git synced 2025-06-03 14:49:00 +08:00

9 lines
235 B
Python
Raw Normal View History

2022-04-02 20:01:06 +08:00
# Copyright (c) Alibaba, Inc. and its affiliates.
from easycv.utils.registry import Registry, build_from_cfg
2022-04-02 20:01:06 +08:00
PREDICTORS = Registry('predictor')
def build_predictor(cfg):
return build_from_cfg(cfg, PREDICTORS, default_args=None)