lib/datasets/imagenetVID.py
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.
        The roidb is list of list of shape (cat_num, vid_num, img_num)
        """
        cache_file = os.path.join(self.cache_path, self.name + '_gt_roidb.pkl')
        print(cache_file)

        if os.path.exists(cache_file):
            with open(cache_file, 'rb') as fid:
                roidb = pickle.load(fid)
            print('{} gt roidb loaded from {}'.format(self.name, cache_file))
            return roidb

        gt_roidb = []
        for img_idx in self.image_index:
            gt_roidb.append(self._load_imagenet_annotation(img_idx))

        with open(cache_file, 'wb') as fid:
            pickle.dump(gt_roidb, fid, pickle.HIGHEST_PROTOCOL)
        print('wrote gt roidb to {}'.format(cache_file))
        return gt_roidb

        Return the database of ground-truth regions of interest.
        This function loads/saves from/to a cache file to speed up future calls.
        The roidb is list of list of shape (cat_num, vid_num, img_num)
        
Return the database of ground-truth regions of interest.
This function loads/saves from/to a cache file to speed up future calls.
The roidb is list of list of shape (cat_num, vid_num, img_num)
Return the database of ground - truth regions of interest . This function loads / saves from / to a cache file to speed up future calls . The roidb is list of list of shape ( cat_num vid_num img_num )
def gt_roidb(self):
        cache_file = os.path.join(self.cache_path, self.name + '_gt_roidb.pkl')
        print(cache_file)
        if os.path.exists(cache_file):
            with open(cache_file, 'rb') as fid:
                roidb = pickle.load(fid)
            print('{} gt roidb loaded from {}'.format(self.name, cache_file))
            return roidb
        gt_roidb = []
        for img_idx in self.image_index:
            gt_roidb.append(self._load_imagenet_annotation(img_idx))
        with open(cache_file, 'wb') as fid:
            pickle.dump(gt_roidb, fid, pickle.HIGHEST_PROTOCOL)
        print('wrote gt roidb to {}'.format(cache_file))
        return gt_roidb
def gt_roidb ( self ) : cache_file = os . path . join ( self . cache_path , self . name + '_gt_roidb.pkl' ) print ( cache_file ) if os . path . exists ( cache_file ) : with open ( cache_file , 'rb' ) as fid : roidb = pickle . load ( fid ) print ( '{} gt roidb loaded from {}' . format ( self . name , cache_file ) ) return roidb gt_roidb = [ ] for img_idx in self . image_index : gt_roidb . append ( self . _load_imagenet_annotation ( img_idx ) ) with open ( cache_file , 'wb' ) as fid : pickle . dump ( gt_roidb , fid , pickle . HIGHEST_PROTOCOL ) print ( 'wrote gt roidb to {}' . format ( cache_file ) ) return gt_roidb
Return the database of ground-truth regions of interest.
Return the database of ground - truth regions of interest .
"""
        Return the database of ground-truth regions of interest.
        This function loads/saves from/to a cache file to speed up future calls.
        The roidb is list of list of shape (cat_num, vid_num, img_num)
        """
self