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:
Glenn Jocher 2024-07-19 21:02:09 +02:00 committed by GitHub
parent 0d059bec0c
commit b3b3a15086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 49 additions and 22 deletions

View file

@ -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!"