defload_annotations(self): """Load image paths and gt_labels.""" if self.ann_file isNone: samples = self._find_samples() elifisinstance(self.ann_file,str): lines = mmcv.list_from_file( self.ann_file, file_client_args=self.file_client_args) samples =[x.strip().rsplit(' ',1)for x in lines] else: raise TypeError('ann_file must be a str or None') data_infos =[] for filename, gt_label in samples: info ={'img_prefix': self.data_prefix} info['img_info']={'filename': filename} temp_label = np.zeros(len(self.CLASSES))