def METHOD_NAME(self) -> bool:
    """bool: whether the detector has a bbox head"""
    return ((hasattr(self, 'roi_head') and self.roi_head.METHOD_NAME)
            or (hasattr(self, 'bbox_head') and self.bbox_head is not None))