Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,9 +6,9 @@ import os
|
|
| 6 |
import tempfile
|
| 7 |
import subprocess
|
| 8 |
|
| 9 |
-
|
|
|
|
| 10 |
|
| 11 |
-
model = YOLO("watermark-detection-73.pt")
|
| 12 |
model.conf = 0.25
|
| 13 |
model.iou = 0.45
|
| 14 |
model.max_det = 1
|
|
|
|
| 6 |
import tempfile
|
| 7 |
import subprocess
|
| 8 |
|
| 9 |
+
import torch
|
| 10 |
+
model = torch.hub.load('ultralytics/yolov5', 'custom', path='watermark-detection-73.pt', force_reload=True)
|
| 11 |
|
|
|
|
| 12 |
model.conf = 0.25
|
| 13 |
model.iou = 0.45
|
| 14 |
model.max_det = 1
|