Ryan-Pham commited on
Commit
e549635
1 Parent(s): 0a93a0e

Update test_video_ava.py

Browse files
Files changed (1) hide show
  1. test_video_ava.py +3 -3
test_video_ava.py CHANGED
@@ -26,7 +26,7 @@ torch.backends.cudnn.enabled = False
26
  #dist.init_process_group(backend='nccl')
27
  model_alert = SimpleANN()
28
 
29
- model_alert.load_state_dict(torch.load(r'D:\yowov2V7\YOWOv2\model_weights.pth'))
30
 
31
  model_alert.eval()
32
 
@@ -38,7 +38,7 @@ def parse_args():
38
  help='the size of input frame')
39
  parser.add_argument('--show', action='store_true', default=False,
40
  help='show the visulization results.')
41
- parser.add_argument('--cuda', action='store_true', default=False,
42
  help='use cuda.')
43
  parser.add_argument('--save_folder', default='det_results/', type=str,
44
  help='Dir to save results')
@@ -52,7 +52,7 @@ def parse_args():
52
  # model
53
  parser.add_argument('-v', '--version', default='yowo_v2_large', type=str,
54
  help='build YOWOv2')
55
- parser.add_argument('--weight', default='weight/',
56
  type=str, help='Trained state_dict file path to open')
57
  parser.add_argument('--topk', default=40, type=int,
58
  help='NMS threshold')
 
26
  #dist.init_process_group(backend='nccl')
27
  model_alert = SimpleANN()
28
 
29
+ model_alert.load_state_dict(torch.load(r'.\model_weights.pth'))
30
 
31
  model_alert.eval()
32
 
 
38
  help='the size of input frame')
39
  parser.add_argument('--show', action='store_true', default=False,
40
  help='show the visulization results.')
41
+ parser.add_argument('--cuda', action='store_true', default=True,
42
  help='use cuda.')
43
  parser.add_argument('--save_folder', default='det_results/', type=str,
44
  help='Dir to save results')
 
52
  # model
53
  parser.add_argument('-v', '--version', default='yowo_v2_large', type=str,
54
  help='build YOWOv2')
55
+ parser.add_argument('--weight', default='./backup_dir/ava_v2.2/fps32_k16_bs16_yolo_large_newdata_p2/epoch4/yowo_v2_large_epoch_4.pth',
56
  type=str, help='Trained state_dict file path to open')
57
  parser.add_argument('--topk', default=40, type=int,
58
  help='NMS threshold')