本文整理匯總了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')