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