ntsc207 commited on
Commit
d5dad45
·
verified ·
1 Parent(s): a4e7334

Update detect_strongsort.py

Browse files
Files changed (1) hide show
  1. detect_strongsort.py +1 -2
detect_strongsort.py CHANGED
@@ -138,12 +138,11 @@ def run_strongsort(
138
 
139
  # Create as many strong sort instances as there are video sources
140
  strongsort_list = []
141
- cpu = 'cpu'
142
  for i in range(bs):
143
  strongsort_list.append(
144
  StrongSORT(
145
  strong_sort_weights,
146
- cpu,
147
  half,
148
  max_dist=cfg.STRONGSORT.MAX_DIST,
149
  max_iou_distance=cfg.STRONGSORT.MAX_IOU_DISTANCE,
 
138
 
139
  # Create as many strong sort instances as there are video sources
140
  strongsort_list = []
 
141
  for i in range(bs):
142
  strongsort_list.append(
143
  StrongSORT(
144
  strong_sort_weights,
145
+ device,
146
  half,
147
  max_dist=cfg.STRONGSORT.MAX_DIST,
148
  max_iou_distance=cfg.STRONGSORT.MAX_IOU_DISTANCE,