Spaces:
Runtime error
Runtime error
Commit
·
b9c5fdf
1
Parent(s):
a4c4b78
Update track_detection.py
Browse files
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 =
|
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
|