From ca00c34c2ab8554ee994798e0ca78f5a48c23056 Mon Sep 17 00:00:00 2001 From: imyhxy Date: Sun, 25 Feb 2024 20:57:41 +0800 Subject: [PATCH] Fix docs typos in callbacks.py (#12750) * Update callbacks.py Signed-off-by: imyhxy * Update general.py Signed-off-by: imyhxy --------- Signed-off-by: imyhxy --- utils/callbacks.py | 4 ++-- utils/general.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/callbacks.py b/utils/callbacks.py index ab7befdb0b3b..f658a72cce7c 100644 --- a/utils/callbacks.py +++ b/utils/callbacks.py @@ -5,7 +5,7 @@ class Callbacks: - """" Handles all registered callbacks for YOLOv5 Hooks.""" + """Handles all registered callbacks for YOLOv5 Hooks.""" def __init__(self): # Define the available callbacks @@ -47,7 +47,7 @@ def register_action(self, hook, name="", callback=None): def get_registered_actions(self, hook=None): """ - " Returns all the registered actions by callback hook. + Returns all the registered actions by callback hook. Args: hook: The name of the hook to check, defaults to all diff --git a/utils/general.py b/utils/general.py index 4ba80cec2cb6..aa2ed6eb947d 100644 --- a/utils/general.py +++ b/utils/general.py @@ -34,7 +34,7 @@ import torchvision import yaml -# Import 'ultralytics' package or install if if missing +# Import 'ultralytics' package or install if missing try: import ultralytics