parameters: (self)
return_statement: return gt_roidb
docstring: Return the database of ground-truth regions of interest.
          This function loads/saves from/to a cache file to speed up future calls.
docstring_summary: Return the database of ground-truth regions of interest.
          This function loads/saves from/to a cache file to speed up future calls.
docstring_tokens: Return the database of ground - truth regions of interest . This function loads / saves from / to a cache file to speed up future calls .
function: def gt_roidb(self):
          """
          Return the database of ground-truth regions of interest.
          This function loads/saves from/to a cache file to speed up future calls.
          """
          cache_file = os.path.join(self.cache_path, self.name + '_gt_roidb.pkl')
          if os.path.exists(cache_file):
              with open(cache_file, 'rb') as fid:
                  roidb = cPickle.load(fid)
              print '{} gt roidb loaded from {}'.format(self.name, cache_file)
              return roidb
  
          num_image = len(self.image_index)
          if cfg.MNC_MODE:
              gt_roidb = [self._load_sbd_annotations(index) for index in xrange(num_image)]
          else:
              gt_roidb = [self._load_pascal_annotations(index) for index in xrange(num_image)]
          with open(cache_file, 'wb') as fid:
              cPickle.dump(gt_roidb, fid, cPickle.HIGHEST_PROTOCOL)
          print 'wrote gt roidb to {}'.format(cache_file)
          return gt_roidb
function_tokens: def gt_roidb ( self ) : cache_file = os . path . join ( self . cache_path , self . name + '_gt_roidb.pkl' ) if os . path . exists ( cache_file ) : with open ( cache_file , 'rb' ) as fid : roidb = cPickle . load ( fid ) print '{} gt roidb loaded from {}' . format ( self . name , cache_file ) return roidb num_image = len ( self . image_index ) if cfg . MNC_MODE : gt_roidb = [ self . _load_sbd_annotations ( index ) for index in xrange ( num_image ) ] else : gt_roidb = [ self . _load_pascal_annotations ( index ) for index in xrange ( num_image ) ] with open ( cache_file , 'wb' ) as fid : cPickle . dump ( gt_roidb , fid , cPickle . HIGHEST_PROTOCOL ) print 'wrote gt roidb to {}' . format ( cache_file ) return gt_roidb