-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmypath.py
More file actions
18 lines (18 loc) · 763 Bytes
/
mypath.py
File metadata and controls
18 lines (18 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Path(object):
@staticmethod
def db_root_dir(dataset):
if dataset == 'pascal':
return '/path/to/datasets/VOCdevkit/VOC2012/' # folder that contains VOCdevkit/.
elif dataset == 'sbd':
return '/path/to/datasets/benchmark_RELEASE/' # folder that contains dataset/.
elif dataset == 'cityscapes':
return '/path/to/datasets/cityscapes/' # foler that contains leftImg8bit/
elif dataset == 'coco':
return '/path/to/datasets/coco/'
elif dataset == 'bdd':
return './bdd100k'
elif dataset == 'nice':
return './bdd_nice'
else:
print('Dataset {} not available.'.format(dataset))
raise NotImplementedError