Skip to content

Commit

Permalink
Add support for YOLOv9 - 11
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorSusmelj committed Jan 3, 2025
1 parent 0dd46f2 commit ae30f7b
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/labelformat/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main() -> None:
The CLI interface is available as the `labelformat` command.
Supported label formats for object detection:
- YOLOv5, YOLOv6, YOLOv7, YOLOv8
- YOLOv5, YOLOv6, YOLOv7, YOLOv8, YOLOv9, YOLOv10, YOLOv11
- COCO
- VOC
- Labelbox
Expand Down
12 changes: 12 additions & 0 deletions src/labelformat/formats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,15 @@
YOLOv8ObjectDetectionInput,
YOLOv8ObjectDetectionOutput,
)
from labelformat.formats.yolov9 import (
YOLOv9ObjectDetectionInput,
YOLOv9ObjectDetectionOutput,
)
from labelformat.formats.yolov10 import (
YOLOv10ObjectDetectionInput,
YOLOv10ObjectDetectionOutput,
)
from labelformat.formats.yolov11 import (
YOLOv11ObjectDetectionInput,
YOLOv11ObjectDetectionOutput,
)
17 changes: 17 additions & 0 deletions src/labelformat/formats/yolov10.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from labelformat.cli.registry import Task, cli_register

from .yolov8 import YOLOv8ObjectDetectionInput, YOLOv8ObjectDetectionOutput

"""
YOLOv10 format follows the same specs as YOLOv8.
"""


@cli_register(format="yolov10", task=Task.OBJECT_DETECTION)
class YOLOv10ObjectDetectionInput(YOLOv8ObjectDetectionInput):
pass


@cli_register(format="yolov10", task=Task.OBJECT_DETECTION)
class YOLOv10ObjectDetectionOutput(YOLOv8ObjectDetectionOutput):
pass
17 changes: 17 additions & 0 deletions src/labelformat/formats/yolov11.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from labelformat.cli.registry import Task, cli_register

from .yolov8 import YOLOv8ObjectDetectionInput, YOLOv8ObjectDetectionOutput

"""
YOLOv11 format follows the same specs as YOLOv8.
"""


@cli_register(format="yolov11", task=Task.OBJECT_DETECTION)
class YOLOv11ObjectDetectionInput(YOLOv8ObjectDetectionInput):
pass


@cli_register(format="yolov11", task=Task.OBJECT_DETECTION)
class YOLOv11ObjectDetectionOutput(YOLOv8ObjectDetectionOutput):
pass
17 changes: 17 additions & 0 deletions src/labelformat/formats/yolov9.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from labelformat.cli.registry import Task, cli_register

from .yolov8 import YOLOv8ObjectDetectionInput, YOLOv8ObjectDetectionOutput

"""
YOLOv9 format follows the same specs as YOLOv8.
"""


@cli_register(format="yolov9", task=Task.OBJECT_DETECTION)
class YOLOv9ObjectDetectionInput(YOLOv8ObjectDetectionInput):
pass


@cli_register(format="yolov9", task=Task.OBJECT_DETECTION)
class YOLOv9ObjectDetectionOutput(YOLOv8ObjectDetectionOutput):
pass

0 comments on commit ae30f7b

Please sign in to comment.