-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathmypath.py
More file actions
21 lines (21 loc) · 955 Bytes
/
mypath.py
File metadata and controls
21 lines (21 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Path(object):
@staticmethod
def db_root_dir(dataset):
if dataset == 'pascal':
# folder that contains VOCdevkit/.
return '/path/to/datasets/VOCdevkit/VOC2012/'
elif dataset == 'sbd':
# folder that contains dataset/.
return '/path/to/datasets/benchmark_RELEASE/'
elif dataset == 'cityscapes':
# foler that contains leftImg8bit/
return 'D:\\Disk\\MidTerm\\Experiment\\Code\\Semantic\\FPN\\FPN\\data\\Cityscapes'
elif dataset == 'coco':
return '/path/to/datasets/coco/'
elif dataset == 'Camvid':
return 'D:\\Disk\\MidTerm\\Experiment\\Code\\Semantic\\FPN\\FPN\\data\\CamVid'
elif dataset == 'nyudv2':
return 'path\to\nyudv2\dataset'
else:
print('Dataset {} not available.'.format(dataset))
raise NotImplementedError("undefined dataset {}.".format(dataset))