落水人员检测
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
786B

  1. class Path(object):
  2. @staticmethod # staticmethod用于修饰类中的方法,使其可以在不创建类实例的情况下调用方法,这样做的好处是执行效率比较高。
  3. def db_root_dir(dataset):
  4. if dataset == 'pascal':
  5. return '/path/to/datasets/VOCdevkit/VOC2012/' # folder that contains VOCdevkit/.
  6. elif dataset == 'sbd':
  7. return '/path/to/datasets/benchmark_RELEASE/' # folder that contains dataset/.
  8. elif dataset == 'cityscapes':
  9. return '/path/to/datasets/cityscapes/' # foler that contains leftImg8bit/
  10. elif dataset == 'coco':
  11. return '/path/to/datasets/coco/'
  12. else:
  13. print('Dataset {} not available.'.format(dataset))
  14. raise NotImplementedError