mmdet/models/detectors/orientation_cascade_rcnn_no.py
def show_result(self, data, result, **kwargs):
        """Show prediction results of the detector.

        Args:
            data (str or np.ndarray): Image filename or loaded image.
            result (Tensor or tuple): The results to draw over `img`
                bbox_result or (bbox_result, segm_result).

        Returns:
            np.ndarray: The image with bboxes drawn on it.
        """
        if self.with_mask:
            ms_bbox_result, ms_segm_result = result
            if isinstance(ms_bbox_result, dict):
                result = (ms_bbox_result['ensemble'],
                          ms_segm_result['ensemble'])
        else:
            if isinstance(result, dict):
                result = result['ensemble']
        return super(OrientationCascadeRCNN, self).show_result(data, result, **kwargs)
Show prediction results of the detector.

        Args:
            data (str or np.ndarray): Image filename or loaded image.
            result (Tensor or tuple): The results to draw over `img`
                bbox_result or (bbox_result, segm_result).

        Returns:
            np.ndarray: The image with bboxes drawn on it.
        
Show prediction results of the detector.
Show prediction results of the detector .
def show_result(self, data, result, **kwargs):
        if self.with_mask:
            ms_bbox_result, ms_segm_result = result
            if isinstance(ms_bbox_result, dict):
                result = (ms_bbox_result['ensemble'],
                          ms_segm_result['ensemble'])
        else:
            if isinstance(result, dict):
                result = result['ensemble']
        return super(OrientationCascadeRCNN, self).show_result(data, result, **kwargs)
def show_result ( self , data , result , ** kwargs ) : if self . with_mask : ms_bbox_result , ms_segm_result = result if isinstance ( ms_bbox_result , dict ) : result = ( ms_bbox_result [ 'ensemble' ] , ms_segm_result [ 'ensemble' ] ) else : if isinstance ( result , dict ) : result = result [ 'ensemble' ] return super ( OrientationCascadeRCNN , self ) . show_result ( data , result , ** kwargs )
Show prediction results of the detector.
Show prediction results of the detector .
"""Show prediction results of the detector.

        Args:
            data (str or np.ndarray): Image filename or loaded image.
            result (Tensor or tuple): The results to draw over `img`
                bbox_result or (bbox_result, segm_result).

        Returns:
            np.ndarray: The image with bboxes drawn on it.
        """
The image with bboxes drawn on it.
The image with bboxes drawn on it .
np.ndarray
self
data
Image filename or loaded image.
Image filename or loaded image .
result
The results to draw over `img`
bbox_result or (bbox_result, segm_result).
The results to draw over ` img ` bbox_result or ( bbox_result segm_result ) .