-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
27 lines (23 loc) · 801 Bytes
/
config.py
File metadata and controls
27 lines (23 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
MOTS_TOOLS_ROOT = "./mots_tools/"
DET_PATH_ROOT = "./detections/"
RESULT_PATH = "./results/"
DATASET = "KITTI_MOTS" # either "KITTI_MOTS" or "MOTSChallenge"
#DATASET = "MOTSChallenge"
RUN_ON_TEST_SET = False # either run on test set or on trainval
#######
if DATASET == "KITTI_MOTS":
if RUN_ON_TEST_SET:
seqmap_name = "test"
else:
seqmap_name = "fulltrain"
elif DATASET == "MOTSChallenge":
if RUN_ON_TEST_SET:
seqmap_name = "test_MOTSchallenge"
else:
seqmap_name = "val_MOTSchallenge"
else:
assert False, ("unknown dataset", DATASET)
seqmap_filename = os.path.join(MOTS_TOOLS_ROOT, "mots_eval", seqmap_name + ".seqmap")
split_str = "test" if RUN_ON_TEST_SET else "trainval"
det_path = os.path.join(DET_PATH_ROOT, DATASET, split_str)