Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -29,7 +29,7 @@ from utils import get_yolo_model
|
|
| 29 |
import torch
|
| 30 |
|
| 31 |
# Load YOLO model using official method
|
| 32 |
-
yolo_model = get_yolo_model(model_path="weights/
|
| 33 |
|
| 34 |
# Handle device placement
|
| 35 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 29 |
import torch
|
| 30 |
|
| 31 |
# Load YOLO model using official method
|
| 32 |
+
yolo_model = get_yolo_model(model_path="weights/best.pt")
|
| 33 |
|
| 34 |
# Handle device placement
|
| 35 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|