mirror of
https://github.com/aigc3d/LAM_Audio2Expression.git
synced 2026-02-05 09:59:21 +08:00
feat: Initial commit
This commit is contained in:
15
engines/hooks/builder.py
Normal file
15
engines/hooks/builder.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""
|
||||
The code is base on https://github.com/Pointcept/Pointcept
|
||||
"""
|
||||
|
||||
from 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
|
||||
Reference in New Issue
Block a user