Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from PIL import Image
|
|
7 |
|
8 |
# Face masks
|
9 |
# TODO: Allow user selectable model?
|
10 |
-
model = torch.hub.load('ultralytics/yolov5', 'custom', "model_weights/face_masks_v8.pt")
|
11 |
|
12 |
def yolo(im, size=640):
|
13 |
g = (size / max(im.size)) # gain
|
|
|
7 |
|
8 |
# Face masks
|
9 |
# TODO: Allow user selectable model?
|
10 |
+
model = torch.hub.load('ultralytics/yolov5:v6.2', 'custom', "model_weights/face_masks_v8.pt")
|
11 |
|
12 |
def yolo(im, size=640):
|
13 |
g = (size / max(im.size)) # gain
|