Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ models = ["model_weights/md_v5a.0.0.pt","model_weights/md_v5b.0.0.pt"]
|
|
16 |
|
17 |
# model = torch.hub.load('ultralytics/yolov5', 'custom', "model_weights/md_v5a.0.0.pt")
|
18 |
|
19 |
-
def yolo(
|
20 |
|
21 |
model = model = torch.hub.load('ultralytics/yolov5', 'custom', model_name)
|
22 |
g = (size / max(im.size)) # gain
|
|
|
16 |
|
17 |
# model = torch.hub.load('ultralytics/yolov5', 'custom', "model_weights/md_v5a.0.0.pt")
|
18 |
|
19 |
+
def yolo(img_input, size=640, model_name):
|
20 |
|
21 |
model = model = torch.hub.load('ultralytics/yolov5', 'custom', model_name)
|
22 |
g = (size / max(im.size)) # gain
|