Skip to content

Commit 5ee17a3

Browse files
cleanup
1 parent b5dcb44 commit 5ee17a3

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

boxmot/detectors/__init__.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Mikel Broström 🔥 BoxMOT 🧾 AGPL-3.0 license
22

33
from boxmot.detectors.detector import Detector, resolve_image
4-
from boxmot.detectors.ultralytics import UltralyticsYolo
4+
from boxmot.detectors.ultralytics import Ultralytics
55
from boxmot.detectors.yolox import YOLOX
66
from boxmot.utils import logger as LOGGER
77
from boxmot.utils.checks import RequirementsChecker
@@ -61,16 +61,3 @@ def get_yolo_inferer(yolo_model):
6161
LOGGER.error("Your model name has to contain either yolox, yolo_nas or yolov8")
6262
exit()
6363

64-
# Aliases for convenience
65-
Ultralytics = UltralyticsYolo
66-
try:
67-
from boxmot.detectors.rfdetr import RFDETRStrategy
68-
RFDETR = RFDETRStrategy
69-
except ImportError:
70-
RFDETR = None
71-
72-
try:
73-
from boxmot.detectors.rtdetr import RTDetrStrategy
74-
RTDETR = RTDetrStrategy
75-
except ImportError:
76-
RTDETR = None

boxmot/detectors/ultralytics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from boxmot.detectors.detector import Detector
66

77

8-
class UltralyticsYolo(Detector):
8+
class Ultralytics(Detector):
99
def __init__(self, path: str, device='cpu', conf=0.25, iou=0.45, imgsz=640):
1010
self.device = device
1111
self.conf = conf

0 commit comments

Comments
 (0)