Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,8 @@ def check_file(file, suffix=''):
|
|
36 |
).st_size > 0, f'File download failed: {url}' # check
|
37 |
return file
|
38 |
|
39 |
-
|
40 |
-
|
41 |
|
42 |
# default_pretrained = '2022.11.04-YOLOv5x6_1280-Hololive_Waifu_Classification.pt'
|
43 |
|
|
|
36 |
).st_size > 0, f'File download failed: {url}' # check
|
37 |
return file
|
38 |
|
39 |
+
def read_pretrain(path):
|
40 |
+
return torch.hub.load('ultralytics/yolov5', 'custom', path=path)
|
41 |
|
42 |
# default_pretrained = '2022.11.04-YOLOv5x6_1280-Hololive_Waifu_Classification.pt'
|
43 |
|