Spaces:
Runtime error
Runtime error
content: added new, better model!
Browse files
app.py
CHANGED
@@ -6,10 +6,9 @@ import numpy as np
|
|
6 |
from PIL import Image
|
7 |
|
8 |
# Face masks
|
9 |
-
|
|
|
10 |
|
11 |
-
# Animals
|
12 |
-
# model = torch.hub.load('ultralytics/yolov5', 'custom', "model_weights/datasets_1000_41class.pt",force_reload=True)
|
13 |
|
14 |
|
15 |
|
|
|
6 |
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 |
|
13 |
|
14 |
|