Update app.py
Browse files
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("
|
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
|