Spaces:
Runtime error
Runtime error
Commit
·
f9c5d15
1
Parent(s):
bb78a4a
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import torch
|
|
| 7 |
scaled_anchors = config.scaled_anchors
|
| 8 |
|
| 9 |
model = Lightning_YOLO()
|
| 10 |
-
model.load_state_dict(torch.load("
|
| 11 |
model.eval()
|
| 12 |
|
| 13 |
def inference(image, threst = 0.5, iou_tresh = 0.5):
|
|
|
|
| 7 |
scaled_anchors = config.scaled_anchors
|
| 8 |
|
| 9 |
model = Lightning_YOLO()
|
| 10 |
+
model.load_state_dict(torch.load("yolov3.pth", map_location="cpu"), strict=False)
|
| 11 |
model.eval()
|
| 12 |
|
| 13 |
def inference(image, threst = 0.5, iou_tresh = 0.5):
|