Skip to content

Commit

Permalink
Fix docs typos in callbacks.py (#12750)
Browse files Browse the repository at this point in the history
* Update callbacks.py

Signed-off-by: imyhxy <imyhxy@gmail.com>

* Update general.py

Signed-off-by: imyhxy <imyhxy@gmail.com>

---------

Signed-off-by: imyhxy <imyhxy@gmail.com>
  • Loading branch information
imyhxy committed Feb 25, 2024
1 parent 95ebf68 commit ca00c34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions utils/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ca00c34

Please sign in to comment.