kairunwen's picture
Update Code
57746f1
raw
history blame contribute delete
321 Bytes
"""
Hook Builder
Author: Xiaoyang Wu ([email protected])
Please cite our work if the code is helpful to you.
"""
from pointcept.utils.registry import Registry
HOOKS = Registry("hooks")
def build_hooks(cfg):
hooks = []
for hook_cfg in cfg:
hooks.append(HOOKS.build(hook_cfg))
return hooks