neko941 commited on
Commit
688e29a
1 Parent(s): b2bee1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # 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
 
 
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