dschandra commited on
Commit
e8e9cfe
·
verified ·
1 Parent(s): 8ffddc8

Update lbw_detector.py

Browse files
Files changed (1) hide show
  1. lbw_detector.py +4 -1
lbw_detector.py CHANGED
@@ -4,7 +4,10 @@ import numpy as np
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
  # Target class IDs — update based on your custom model class mapping
10
  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 = {