Spaces:
Runtime error
Runtime error
Commit
·
c49c9b0
1
Parent(s):
08b7eef
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def yolov7_inference(
|
|
| 26 |
Rendered image
|
| 27 |
"""
|
| 28 |
|
| 29 |
-
model = torch.hub.load('
|
| 30 |
model.conf = conf_threshold
|
| 31 |
model.iou = iou_threshold
|
| 32 |
results = model([image], size=image_size)
|
|
|
|
| 26 |
Rendered image
|
| 27 |
"""
|
| 28 |
|
| 29 |
+
model = torch.hub.load('kadirnar/yolov7-v0.1', 'custom', path='skin_burn.pt', source='local', device="cpu")
|
| 30 |
model.conf = conf_threshold
|
| 31 |
model.iou = iou_threshold
|
| 32 |
results = model([image], size=image_size)
|