Fix docs typos in callbacks.py (#12750)
* 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>
This commit is contained in:
1 parent
95ebf68f92
commit
ca00c34c2a
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -5,7 +5,7 @@ import threading
|
|||||||
|
|
||||||
|
|
||||||
class Callbacks:
|
class Callbacks:
|
||||||
"""" Handles all registered callbacks for YOLOv5 Hooks."""
|
"""Handles all registered callbacks for YOLOv5 Hooks."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# Define the available callbacks
|
# Define the available callbacks
|
||||||
@@ -47,7 +47,7 @@ class Callbacks:
|
|||||||
|
|
||||||
def get_registered_actions(self, hook=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:
|
Args:
|
||||||
hook: The name of the hook to check, defaults to all
|
hook: The name of the hook to check, defaults to all
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ import torch
|
|||||||
import torchvision
|
import torchvision
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
# Import 'ultralytics' package or install if if missing
|
# Import 'ultralytics' package or install if missing
|
||||||
try:
|
try:
|
||||||
import ultralytics
|
import ultralytics
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user