mirror of
https://github.com/aigc3d/LAM_Audio2Expression.git
synced 2026-02-04 17:39:24 +08:00
feat: Initial commit
This commit is contained in:
29
engines/hooks/default.py
Normal file
29
engines/hooks/default.py
Normal file
@@ -0,0 +1,29 @@
|
||||
"""
|
||||
The code is base on https://github.com/Pointcept/Pointcept
|
||||
"""
|
||||
|
||||
|
||||
class HookBase:
|
||||
"""
|
||||
Base class for hooks that can be registered with :class:`TrainerBase`.
|
||||
"""
|
||||
|
||||
trainer = None # A weak reference to the trainer object.
|
||||
|
||||
def before_train(self):
|
||||
pass
|
||||
|
||||
def before_epoch(self):
|
||||
pass
|
||||
|
||||
def before_step(self):
|
||||
pass
|
||||
|
||||
def after_step(self):
|
||||
pass
|
||||
|
||||
def after_epoch(self):
|
||||
pass
|
||||
|
||||
def after_train(self):
|
||||
pass
|
||||
Reference in New Issue
Block a user