oskarastrom commited on
Commit
25bfc19
·
1 Parent(s): ed9fba4

Update track_detection.py

Browse files
Files changed (1) hide show
  1. scripts/track_detection.py +1 -1
scripts/track_detection.py CHANGED
@@ -79,7 +79,7 @@ def track(in_loc_dir, out_loc_dir, metadata_path, seq, config, verbose):
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, device=device)
83
 
84
  print(type(inference))
85
  print(len(inference))
 
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
  print(type(inference))
85
  print(len(inference))