Update objec_detect_yolo.py
Browse files- objec_detect_yolo.py +1 -1
objec_detect_yolo.py
CHANGED
@@ -29,7 +29,7 @@ def detection(path: str) -> Tuple[Set[str], str]:
|
|
29 |
|
30 |
# --- Model Loading ---
|
31 |
# Construct path relative to this script file
|
32 |
-
model_path = os.path.join(os.path.dirname(__file__), "
|
33 |
if not os.path.exists(model_path):
|
34 |
raise FileNotFoundError(f"YOLO model file not found at: {model_path}")
|
35 |
try:
|
|
|
29 |
|
30 |
# --- Model Loading ---
|
31 |
# Construct path relative to this script file
|
32 |
+
model_path = os.path.join(os.path.dirname(__file__), "best.pt")
|
33 |
if not os.path.exists(model_path):
|
34 |
raise FileNotFoundError(f"YOLO model file not found at: {model_path}")
|
35 |
try:
|