dschandra commited on
Commit
e167df7
·
verified ·
1 Parent(s): 63f9f7e

Update utils/video_processing.py

Browse files
Files changed (1) hide show
  1. utils/video_processing.py +4 -0
utils/video_processing.py CHANGED
@@ -8,6 +8,10 @@ import torch
8
  # Path to the YOLO model
9
  MODEL_PATH = 'models/yolov8_model.pt'
10
 
 
 
 
 
11
  # Check if model file exists
12
  if not os.path.exists(MODEL_PATH):
13
  raise FileNotFoundError(
 
8
  # Path to the YOLO model
9
  MODEL_PATH = 'models/yolov8_model.pt'
10
 
11
+ from ultralytics import YOLO
12
+ model = YOLO(MODEL_PATH)
13
+ print("Model loaded successfully")
14
+
15
  # Check if model file exists
16
  if not os.path.exists(MODEL_PATH):
17
  raise FileNotFoundError(