Python datasets.ROOT_DIR Examples

The following are 24 code examples of datasets.ROOT_DIR(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module datasets , or try the search function .
Example #1
Source File: imagenet3d.py    From SubCNN with MIT License 5 votes vote down vote up
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') 
Example #2
Source File: coco.py    From X-Detector with Apache License 2.0 5 votes vote down vote up
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') 
Example #3
Source File: imdb.py    From oicr with MIT License 5 votes vote down vote up
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 
Example #4
Source File: pascal_voc.py    From oicr with MIT License 5 votes vote down vote up
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) 
Example #5
Source File: pascal_voc.py    From oicr with MIT License 5 votes vote down vote up
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) 
Example #6
Source File: mot_tracking.py    From SubCNN with MIT License 5 votes vote down vote up
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') 
Example #7
Source File: imdb.py    From SubCNN with MIT License 5 votes vote down vote up
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 
Example #8
Source File: nissan.py    From SubCNN with MIT License 5 votes vote down vote up
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') 
Example #9
Source File: kitti.py    From SubCNN with MIT License 5 votes vote down vote up
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') 
Example #10
Source File: kitti_tracking.py    From SubCNN with MIT License 5 votes vote down vote up
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') 
Example #11
Source File: nthu.py    From SubCNN with MIT License 5 votes vote down vote up
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') 
Example #12
Source File: pascal3d.py    From SubCNN with MIT License 5 votes vote down vote up
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') 
Example #13
Source File: pascal_voc.py    From dpl with MIT License 5 votes vote down vote up
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) 
Example #14
Source File: imdb.py    From OICR-pytorch with MIT License 5 votes vote down vote up
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 
Example #15
Source File: pascal_voc.py    From OICR-pytorch with MIT License 5 votes vote down vote up
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) 
Example #16
Source File: pascal_voc.py    From OICR-pytorch with MIT License 5 votes vote down vote up
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) 
Example #17
Source File: imdb2.py    From Faster-RCNN_TF with MIT License 5 votes vote down vote up
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 
Example #18
Source File: pascal_voc2.py    From Faster-RCNN_TF with MIT License 5 votes vote down vote up
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') 
Example #19
Source File: kitti.py    From Faster-RCNN_TF with MIT License 5 votes vote down vote up
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') 
Example #20
Source File: kitti_tracking.py    From Faster-RCNN_TF with MIT License 5 votes vote down vote up
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') 
Example #21
Source File: nthu.py    From Faster-RCNN_TF with MIT License 5 votes vote down vote up
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') 
Example #22
Source File: pascal3d.py    From Faster-RCNN_TF with MIT License 5 votes vote down vote up
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') 
Example #23
Source File: imagenet3d.py    From Faster-RCNN_TF with MIT License 5 votes vote down vote up
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') 
Example #24
Source File: imdb.py    From dpl with MIT License 5 votes vote down vote up
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