Spaces:
Runtime error
Runtime error
try older version yolov5
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import numpy as np
|
|
5 |
from PIL import Image
|
6 |
|
7 |
# Load model weights
|
8 |
-
model = torch.hub.load('ultralytics/yolov5', 'custom', "model_weights/datasets_1000_41class.pt")
|
9 |
|
10 |
# Define a yolo prediction function
|
11 |
def yolo(im, size=640):
|
|
|
5 |
from PIL import Image
|
6 |
|
7 |
# Load model weights
|
8 |
+
model = torch.hub.load('ultralytics/yolov5:v6.2', 'custom', "model_weights/datasets_1000_41class.pt")
|
9 |
|
10 |
# Define a yolo prediction function
|
11 |
def yolo(im, size=640):
|