Spaces:
Running
on
Zero
Running
on
Zero
Update models/detection/detector.py
Browse files
models/detection/detector.py
CHANGED
@@ -9,7 +9,7 @@ import shutil
|
|
9 |
logger = logging.getLogger(__name__)
|
10 |
shutil.rmtree("models/detection/weights", ignore_errors=True)
|
11 |
class ObjectDetector:
|
12 |
-
def __init__(self, model_key="yolov8n", device="cpu"):
|
13 |
"""
|
14 |
Initialize the Object Detection model using Ultralytics YOLO registry.
|
15 |
|
|
|
9 |
logger = logging.getLogger(__name__)
|
10 |
shutil.rmtree("models/detection/weights", ignore_errors=True)
|
11 |
class ObjectDetector:
|
12 |
+
def __init__(self, model_key="yolov8n.pt", device="cpu"):
|
13 |
"""
|
14 |
Initialize the Object Detection model using Ultralytics YOLO registry.
|
15 |
|