oskarastrom commited on
Commit
b9c5fdf
·
1 Parent(s): a4c4b78

Update track_detection.py

Browse files
Files changed (1) hide show
  1. scripts/track_detection.py +2 -2
scripts/track_detection.py CHANGED
@@ -77,8 +77,8 @@ def track(in_loc_dir, out_loc_dir, metadata_path, seq, config, verbose):
77
  out_path = os.path.join(out_loc_dir, seq + ".txt")
78
 
79
 
80
- device_name = '0' if torch.cuda.is_available() else 'cpu'
81
- device = select_device(device_name, batch_size=32)
82
  inference = torch.load(inference_path, map_location=device)
83
 
84
  # read detection
 
77
  out_path = os.path.join(out_loc_dir, seq + ".txt")
78
 
79
 
80
+ device_name = 'cuda:0' if torch.cuda.is_available() else 'cpu'
81
+ device = torch.device(device_name)
82
  inference = torch.load(inference_path, map_location=device)
83
 
84
  # read detection