Skip to content

Commit 5342f2a

Browse files
authored
Merge pull request #1042 from roboflow/yolov12
Add Yolov12 to inference
2 parents b444481 + 0e155f8 commit 5342f2a

File tree

7 files changed

+678
-1
lines changed

7 files changed

+678
-1
lines changed

inference/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.39.0rc1"
1+
__version__ = "0.39.0rc2"
22

33

44
if __name__ == "__main__":

inference/models/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The models supported by Roboflow Inference have their own licenses. View the lic
2525
| `inference/models/yolov9` | [GPL-3.0](https://github.com/WongKinYiu/yolov9/blob/main/LICENSE.md) ||
2626
| `inference/models/yolov10` | [AGPL-3.0](https://github.com/THU-MIG/yolov10/blob/main/LICENSE) ||
2727
| `inference/models/yolov11` | [AGPL-3.0](https://github.com/ultralytics/ultralytics/blob/master/LICENSE) ||
28+
| `inference/models/yolov12` | [AGPL-3.0](https://github.com/sunsmarterjie/yolov12?tab=AGPL-3.0-1-ov-file) ||
2829

2930
## Commercial Licenses
3031

inference/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,5 @@
9191
YOLOv11KeypointsDetection,
9292
YOLOv11ObjectDetection,
9393
)
94+
95+
from inference.models.yolov12 import YOLOv12ObjectDetection

inference/models/utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
YOLOv10ObjectDetection,
2828
YOLOv11InstanceSegmentation,
2929
YOLOv11ObjectDetection,
30+
YOLOv12ObjectDetection,
3031
)
3132
from inference.models.yolov8.yolov8_keypoints_detection import YOLOv8KeypointsDetection
3233
from inference.models.yolov11.yolov11_keypoints_detection import (
@@ -79,6 +80,12 @@
7980
("object-detection", "yolov11m"): YOLOv11ObjectDetection,
8081
("object-detection", "yolov11l"): YOLOv11ObjectDetection,
8182
("object-detection", "yolov11x"): YOLOv11ObjectDetection,
83+
("object-detection", "yolov12"): YOLOv12ObjectDetection,
84+
("object-detection", "yolov12s"): YOLOv12ObjectDetection,
85+
("object-detection", "yolov12n"): YOLOv12ObjectDetection,
86+
("object-detection", "yolov12m"): YOLOv12ObjectDetection,
87+
("object-detection", "yolov12l"): YOLOv12ObjectDetection,
88+
("object-detection", "yolov12x"): YOLOv12ObjectDetection,
8289
(
8390
"instance-segmentation",
8491
"yolov11n",

inference/models/yolov12/LICENSE.txt

Lines changed: 661 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from inference.models.yolov12.yolov12_object_detection import YOLOv12ObjectDetection
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from inference.models.yolov8.yolov8_object_detection import YOLOv8ObjectDetection
2+
3+
4+
class YOLOv12ObjectDetection(YOLOv8ObjectDetection):
5+
pass

0 commit comments

Comments
 (0)