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.
docstring_tokens: Return the database of ground - truth regions of interest .
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 = cp.load(fid)
              print ('{} gt roidb loaded from {}'.format(self.name, cache_file))
              return roidb
  
          gt_roidb = [self._load_annotation(i) for i in range(self.num_images)]
          with open(cache_file, 'wb') as fid:
              cp.dump(gt_roidb, fid, cp.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 = cp . load ( fid ) print ( '{} gt roidb loaded from {}' . format ( self . name , cache_file ) ) return roidb gt_roidb = [ self . _load_annotation ( i ) for i in range ( self . num_images ) ] with open ( cache_file , 'wb' ) as fid : cp . dump ( gt_roidb , fid , cp . HIGHEST_PROTOCOL ) print ( 'wrote gt roidb to {}' . format ( cache_file ) ) return gt_roidb