ex_rois = ex_rois.astype(np.float, copy=False)# bbox targets: (x1,y1,x2,y2,ex_rois_ind,subreg_ind)targets = np.zeros((0,7), dtype=np.float32)ifK ==0orN ==0:returntargets# For each region, find out objects that are adjacent# Match objects to sub-regions with maximum overla...