mirror of
https://github.com/open-mmlab/mmselfsup.git
synced 2025-06-03 14:59:38 +08:00
8 lines
168 B
Python
8 lines
168 B
Python
from openselfsup.utils import build_from_cfg
|
|
|
|
from .registry import HOOKS
|
|
|
|
|
|
def build_hook(cfg, default_args=None):
|
|
return build_from_cfg(cfg, HOOKS, default_args)
|