def METHOD_NAME(self, sem_seg, center_heatmap, offsets,
                               thing_seg):
    center_points = self._find_instance_center(center_heatmap)
    if center_points.shape[0] == 0:
        return paddle.zeros_like(sem_seg), center_points.unsqueeze(0)
    ins_seg = self._group_pixels(center_points, offsets, sem_seg)
    return thing_seg * ins_seg, center_points.unsqueeze(0)