Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs typos in callbacks.py #12750

Merged
merged 2 commits into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading