mmaction/datasets/rawframe_dataset_unlabeled.py
def load_detections(self, det_file):
        """Load human detection results and merge it with self.video_infos"""
        dets = np.load(det_file, allow_pickle=True).item()
        if 'kinetics' in det_file:
            for idx in range(len(self.video_infos)):
                seq_name = self.video_infos[idx]['frame_dir'].split('/')[-1][:11]
                self.video_infos[idx]['all_detections'] = dets[seq_name]
        else:
            for idx in range(len(self.video_infos)):
                seq_name = self.video_infos[idx]['frame_dir'].split('/')[-1]
                self.video_infos[idx]['all_detections'] = dets[seq_name]
Load human detection results and merge it with self.video_infos
Load human detection results and merge it with self.video_infos
Load human detection results and merge it with self . video_infos
def load_detections(self, det_file):
        dets = np.load(det_file, allow_pickle=True).item()
        if 'kinetics' in det_file:
            for idx in range(len(self.video_infos)):
                seq_name = self.video_infos[idx]['frame_dir'].split('/')[-1][:11]
                self.video_infos[idx]['all_detections'] = dets[seq_name]
        else:
            for idx in range(len(self.video_infos)):
                seq_name = self.video_infos[idx]['frame_dir'].split('/')[-1]
                self.video_infos[idx]['all_detections'] = dets[seq_name]
def load_detections ( self , det_file ) : dets = np . load ( det_file , allow_pickle = True ) . item ( ) if 'kinetics' in det_file : for idx in range ( len ( self . video_infos ) ) : seq_name = self . video_infos [ idx ] [ 'frame_dir' ] . split ( '/' ) [ - 1 ] [ : 11 ] self . video_infos [ idx ] [ 'all_detections' ] = dets [ seq_name ] else : for idx in range ( len ( self . video_infos ) ) : seq_name = self . video_infos [ idx ] [ 'frame_dir' ] . split ( '/' ) [ - 1 ] self . video_infos [ idx ] [ 'all_detections' ] = dets [ seq_name ]
Load human detection results and merge it with self.video_infos
Load human detection results and merge it with self . video_infos
"""Load human detection results and merge it with self.video_infos"""
self
det_file