(self,id_setup)
return _summarize(iouThr=.5, maxDets=1000)
Compute and display summary metrics for evaluation results.
        Note this functin can *only* be applied on the default parameter setting
Compute and display summary metrics for evaluation results.
        Note this functin can *only* be applied on the default parameter setting
Compute and display summary metrics for evaluation results . Note this functin can * only * be applied on the default parameter setting
def summarize_nofile(self,id_setup):
        '''
        Compute and display summary metrics for evaluation results.
        Note this functin can *only* be applied on the default parameter setting
        '''
        def _summarize(iouThr=None, maxDets=100 ):
            p = self.params

            mind = [i for i, mDet in enumerate(p.maxDets) if mDet == maxDets]

            # dimension of precision: [TxRxKxAxM]
            s = self.eval['TP']
            # IoU
            if iouThr is not None:
                t = np.where(iouThr == p.iouThrs)[0]
                s = s[t]
            mrs = 1-s[:,:,:,mind]

            if len(mrs[mrs<2])==0:
                mean_s = -1
            else:
                mean_s = np.log(mrs[mrs<2])
                mean_s = np.mean(mean_s)
                mean_s = np.exp(mean_s)
            return mean_s

        if not self.eval:
            raise Exception('Please run accumulate() first')
        return _summarize(iouThr=.5, maxDets=1000)
def summarize_nofile ( self , id_setup ) : def _summarize ( iouThr = None , maxDets = 100 ) : p = self . params mind = [ i for i , mDet in enumerate ( p . maxDets ) if mDet == maxDets ] # dimension of precision: [TxRxKxAxM] s = self . eval [ 'TP' ] # IoU if iouThr is not None : t = np . where ( iouThr == p . iouThrs ) [ 0 ] s = s [ t ] mrs = 1 - s [ : , : , : , mind ] if len ( mrs [ mrs < 2 ] ) == 0 : mean_s = - 1 else : mean_s = np . log ( mrs [ mrs < 2 ] ) mean_s = np . mean ( mean_s ) mean_s = np . exp ( mean_s ) return mean_s if not self . eval : raise Exception ( 'Please run accumulate() first' ) return _summarize ( iouThr = .5 , maxDets = 1000 )