AjaykumarPilla commited on
Commit
58a64bf
·
verified ·
1 Parent(s): 702209b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ SLOW_MOTION_FACTOR = 3 # Duplicate each frame 3 times for slow motion
32
 
33
  # Load model
34
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
35
- model = attempt_load("yolov5s.pt") # Load yolov5s.pt
36
  model.to(device).eval() # Move model to device and set to evaluation mode
37
 
38
  # Function to process video and detect ball
 
32
 
33
  # Load model
34
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
35
+ model = attempt_load("best.pt") # Load yolov5s.pt
36
  model.to(device).eval() # Move model to device and set to evaluation mode
37
 
38
  # Function to process video and detect ball