本文整理汇总了Python中datasets.ROOT_DIR属性的典型用法代码示例。如果您正苦于以下问题:Python datasets.ROOT_DIR属性的具体用法?Python datasets.ROOT_DIR怎么用?Python datasets.ROOT_DIR使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类datasets
的用法示例。
在下文中一共展示了datasets.ROOT_DIR属性的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _get_default_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
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)
示例2: cache_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
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
示例3: _get_default_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
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')
示例4: _get_default_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
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')
示例5: _get_default_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
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')
示例6: _get_default_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
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')
示例7: _get_default_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
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')
示例8: _get_default_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
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')
示例9: _do_matlab_eval
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
def _do_matlab_eval(self, output_dir='output'):
print ('-----------------------------------------------------')
print ('Computing results with the official MATLAB eval code.')
print ('-----------------------------------------------------')
path = os.path.join(cfg.ROOT_DIR, 'lib', 'datasets',
'VOCdevkit-matlab-wrapper')
cmd = 'cd {} && '.format(path)
cmd += '{:s} -nodisplay -nodesktop '.format(cfg.MATLAB)
cmd += '-r "dbstop if error; '
cmd += 'voc_eval(\'{:s}\',\'{:s}\',\'{:s}\',\'{:s}\'); quit;"' \
.format(self._devkit_path, self._get_comp_id(),
self._image_set, output_dir)
print('Running:\n{}'.format(cmd))
status = subprocess.call(cmd, shell=True)
示例10: _get_default_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
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')
示例11: _get_default_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
def _get_default_path(self):
"""
Return the default path where mot_tracking is expected to be installed.
"""
return os.path.join(datasets.ROOT_DIR, 'data', 'MOT_Tracking')
示例12: _do_matlab_eval
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
def _do_matlab_eval(self, output_dir='output'):
print '-----------------------------------------------------'
print 'Computing results with the official MATLAB eval code.'
print '-----------------------------------------------------'
path = os.path.join(cfg.ROOT_DIR, 'lib', 'datasets',
'VOCdevkit-matlab-wrapper')
cmd = 'cd {} && '.format(path)
cmd += '{:s} -nodisplay -nodesktop '.format(cfg.MATLAB)
cmd += '-r "dbstop if error; '
cmd += 'voc_eval(\'{:s}\',\'{:s}\',\'{:s}\',\'{:s}\'); quit;"' \
.format(self._devkit_path, self._get_comp_id(),
self._image_set, output_dir)
print('Running:\n{}'.format(cmd))
status = subprocess.call(cmd, shell=True)
示例13: _get_default_path
# 需要导入模块: import datasets [as 别名]
# 或者: from datasets import ROOT_DIR [as 别名]
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', 'coco')