Fix Docs pretty __init__.py URLs (#14550)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
0d059bec0c
commit
b3b3a15086
16 changed files with 49 additions and 22 deletions
|
|
@ -280,6 +280,8 @@ class YOLOMultiModalDataset(YOLODataset):
|
|||
|
||||
|
||||
class GroundingDataset(YOLODataset):
|
||||
"""Handles object detection tasks by loading annotations from a specified JSON file, supporting YOLO format."""
|
||||
|
||||
def __init__(self, *args, task="detect", json_file, **kwargs):
|
||||
"""Initializes a GroundingDataset for object detection, loading annotations from a specified JSON file."""
|
||||
assert task == "detect", "`GroundingDataset` only support `detect` task for now!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue