import os, sys
import numpy as np
from config import config
from det_opr.bbox_opr import box_overlap_opr, bbox_transform_opr
import megengine as mge
from megengine import functional as F
import pdb
def _compute_center(boxes):

    ptrx = 0.5 * (boxes[:, 0] + boxes[:, 2])
    ptry = 0.5 * (boxes[:, 1] + boxes[:, 3])
    centre = 
F.stack([ptrx, ptry], axis=1)