Update callbacks.py with __init__() (#5979)

Add __init__() function.
This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-12-14 15:47:49 +01:00
1 parent d699c21c75
commit c9a46a60e0
1 file changed
+2 -1
+2 -1
View File
@@ -9,8 +9,9 @@ class Callbacks:
Handles all registered callbacks for YOLOv5 Hooks Handles all registered callbacks for YOLOv5 Hooks
""" """
def __init__(self):
# Define the available callbacks # Define the available callbacks
_callbacks = { self._callbacks = {
'on_pretrain_routine_start': [], 'on_pretrain_routine_start': [],
'on_pretrain_routine_end': [], 'on_pretrain_routine_end': [],