Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,8 @@ from models.common import DetectMultiBackend
|
|
| 24 |
|
| 25 |
weights_path = "./last.pt"
|
| 26 |
device = torch.device("cpu") # Correctly define the device
|
| 27 |
-
model =
|
|
|
|
| 28 |
model.eval()
|
| 29 |
|
| 30 |
# model_path = "./last.pt"
|
|
|
|
| 24 |
|
| 25 |
weights_path = "./last.pt"
|
| 26 |
device = torch.device("cpu") # Correctly define the device
|
| 27 |
+
model = torch.jit.load(weights_path)
|
| 28 |
+
# model.eval() # Load YOLOv5 model correctly
|
| 29 |
model.eval()
|
| 30 |
|
| 31 |
# model_path = "./last.pt"
|