python类ROOT_DIR的实例源码

pascal_voc.py 文件源码 项目:dpl 作者: ppengtang 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
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)
imdb.py 文件源码 项目:dpl 作者: ppengtang 项目源码 文件源码 阅读 33 收藏 0 点赞 0 评论 0
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
pascal_voc.py 文件源码 项目:fast-rcnn-distillation 作者: xiaolonw 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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)
imdb.py 文件源码 项目:fast-rcnn-distillation 作者: xiaolonw 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
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
pascal_voc.py 文件源码 项目:py-faster-rcnn-tk1 作者: joeking11829 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
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)
imdb.py 文件源码 项目:py-faster-rcnn-tk1 作者: joeking11829 项目源码 文件源码 阅读 32 收藏 0 点赞 0 评论 0
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
coco.py 文件源码 项目:RON 作者: taokong 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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')
imdb.py 文件源码 项目:RON 作者: taokong 项目源码 文件源码 阅读 28 收藏 0 点赞 0 评论 0
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
nissan.py 文件源码 项目:Automatic_Group_Photography_Enhancement 作者: Yuliang-Zou 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
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')
pascal_voc2.py 文件源码 项目:Automatic_Group_Photography_Enhancement 作者: Yuliang-Zou 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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')
nthu.py 文件源码 项目:Automatic_Group_Photography_Enhancement 作者: Yuliang-Zou 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
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')
pascal3d.py 文件源码 项目:Automatic_Group_Photography_Enhancement 作者: Yuliang-Zou 项目源码 文件源码 阅读 33 收藏 0 点赞 0 评论 0
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')
kitti.py 文件源码 项目:Automatic_Group_Photography_Enhancement 作者: Yuliang-Zou 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
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')
imagenet3d.py 文件源码 项目:Automatic_Group_Photography_Enhancement 作者: Yuliang-Zou 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
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')
kitti_tracking.py 文件源码 项目:Automatic_Group_Photography_Enhancement 作者: Yuliang-Zou 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
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')
pascal_voc.py 文件源码 项目:oicr 作者: ppengtang 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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)
pascal_voc.py 文件源码 项目:oicr 作者: ppengtang 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
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)
imdb.py 文件源码 项目:oicr 作者: ppengtang 项目源码 文件源码 阅读 34 收藏 0 点赞 0 评论 0
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
nissan.py 文件源码 项目:Faster-RCNN_TF 作者: smallcorgi 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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')
pascal_voc2.py 文件源码 项目:Faster-RCNN_TF 作者: smallcorgi 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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')
nthu.py 文件源码 项目:Faster-RCNN_TF 作者: smallcorgi 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
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')
pascal3d.py 文件源码 项目:Faster-RCNN_TF 作者: smallcorgi 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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')
kitti.py 文件源码 项目:Faster-RCNN_TF 作者: smallcorgi 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
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')
imagenet3d.py 文件源码 项目:Faster-RCNN_TF 作者: smallcorgi 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
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')
kitti_tracking.py 文件源码 项目:Faster-RCNN_TF 作者: smallcorgi 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
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')
pascal_voc.py 文件源码 项目:TattDL 作者: z-harry-sun 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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)
imdb.py 文件源码 项目:TattDL 作者: z-harry-sun 项目源码 文件源码 阅读 34 收藏 0 点赞 0 评论 0
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
tattc_voc.py 文件源码 项目:TattDL 作者: z-harry-sun 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def _get_default_path(self):
        """
        Return the default path where TATTC VOC is expected to be installed.
        """
        #return os.path.join(datasets.ROOT_DIR, 'data', self._year, 'tattc_voc')
        dir=os.path.join(datasets.ROOT_DIR, 'data', 'tattc_voc', self._year, 'tattc_voc')
        print('[default path]', dir)
        return dir
pascal_voc.py 文件源码 项目:CRAFT 作者: byangderek 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
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)
imdb.py 文件源码 项目:CRAFT 作者: byangderek 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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


问题


面经


文章

微信
公众号

扫码关注公众号