def _get_rois_blob(im_rois, im_scale_factors):
 (rois, levels) = _project_im_rois(im_rois, im_scale_factors)
 rois_blob = np.hstack((levels, rois))
 return rois_blob.astype(np.float32, copy=False)

def _get_rois_blob ( im_rois , im_scale_factors ) : ( rois , levels ) = _project_im_rois ( im_rois , im_scale_factors ) rois_blob = np . hstack ( ( levels , rois ) ) return rois_blob . astype ( np . float32 , copy = False )
converts rois into network inputs .