Spaces:
Sleeping
Sleeping
Update lbw_detector.py
Browse files- lbw_detector.py +3 -3
lbw_detector.py
CHANGED
@@ -4,10 +4,10 @@ import numpy as np
|
|
4 |
import os
|
5 |
|
6 |
# Load YOLO model (custom-trained or pretrained with compatible classes)
|
7 |
-
|
8 |
|
9 |
-
model_path = os.path.join("models", "yolov8n.pt")
|
10 |
-
model = YOLO(model_path)
|
11 |
|
12 |
# Target class IDs — update based on your custom model class mapping
|
13 |
CLASS_NAMES = {
|
|
|
4 |
import os
|
5 |
|
6 |
# Load YOLO model (custom-trained or pretrained with compatible classes)
|
7 |
+
model = YOLO("yolov8n.pt") # Replace with "lbw_yolov8.pt" if custom-trained
|
8 |
|
9 |
+
#model_path = os.path.join("models", "yolov8n.pt")
|
10 |
+
#model = YOLO(model_path)
|
11 |
|
12 |
# Target class IDs — update based on your custom model class mapping
|
13 |
CLASS_NAMES = {
|