def _get_default_path(self):
"""
Return the default path where PASCAL VOC is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'VOCdevkit' + self._year)
python类ROOT_DIR的实例源码
def cache_path(self):
cache_path = osp.abspath(osp.join(datasets.ROOT_DIR, 'data', 'cache'))
if not os.path.exists(cache_path):
os.makedirs(cache_path)
return cache_path
def _get_default_path(self):
"""
Return the default path where PASCAL VOC is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'VOCdevkit' + self._year)
def __init__(self, name):
self._name = name
self._classes = []
self._image_list = []
self._gtdb = {}
self._data_path = osp.abspath(osp.join(datasets.ROOT_DIR, 'data'))
# Options specific to a particular datasets
self.config = {}
def cache_path(self):
cache_path = osp.abspath(osp.join(datasets.ROOT_DIR, 'data', 'cache'))
if not osp.exists(cache_path):
os.makedirs(cache_path)
return cache_path
def _get_default_path(self):
"""
Return the default path where PASCAL VOC is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'VOCdevkit' + self._year)
def cache_path(self):
cache_path = osp.abspath(osp.join(datasets.ROOT_DIR, 'data', 'cache'))
if not os.path.exists(cache_path):
os.makedirs(cache_path)
return cache_path
def _get_default_path(self):
"""
Return the default path where NISSAN is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'NISSAN')
def _get_default_path(self):
"""
Return the default path where PASCAL VOC is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'PASCAL')
def _get_default_path(self):
"""
Return the default path where nthu is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'NTHU')
def _get_default_path(self):
"""
Return the default path where PASCAL3D is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'PASCAL3D')
def _get_default_path(self):
"""
Return the default path where KITTI is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'KITTI')
def _get_default_path(self):
"""
Return the default path where imagenet3d is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'ImageNet3D')
def _get_default_path(self):
"""
Return the default path where kitti_tracking is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'KITTI_Tracking')
def _get_default_path(self):
"""
Return the default path where NISSAN is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'NISSAN')
def _get_default_path(self):
"""
Return the default path where KITTI is expected to be installed......?
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'building_data')
# ---------------------------------------------------------------------------------------------------------------- #
def _get_default_path(self):
"""
Return the default path where PASCAL VOC is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'PASCAL')
def _get_default_path(self):
"""
Return the default path where nthu is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'NTHU')
def _get_default_path(self):
"""
Return the default path where KITTI is expected to be installed......?
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'building_data')
# ---------------------------------------------------------------------------------------------------------------- #
def _get_default_path(self):
"""
Return the default path where KITTI is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'KITTI')