KillD00zer commited on
Commit
b2f3c2c
·
verified ·
1 Parent(s): f9641b0

Update objec_detect_yolo.py

Browse files
Files changed (1) hide show
  1. 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__), "yolo", "best.pt")
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: