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

Add __init__() function.
This commit is contained in:
Glenn Jocher 2021-12-14 15:47:49 +01:00 committed by GitHub
parent d699c21c75
commit c9a46a60e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,9 @@ class Callbacks:
Handles all registered callbacks for YOLOv5 Hooks
"""
def __init__(self):
# Define the available callbacks
_callbacks = {
self._callbacks = {
'on_pretrain_routine_start': [],
'on_pretrain_routine_end': [],