def _get_blobs(im, rois):
 blobs = {'data': None, 'rois': None}
 (blobs['data'], im_scale_factors) = _get_image_blob(im)
 blobs['rois'] = _get_rois_blob(rois, im_scale_factors)
 return (blobs, im_scale_factors)

def _get_blobs ( im , rois ) : blobs = { 'data' : None , 'rois' : None } ( blobs [ 'data' ] , im_scale_factors ) = _get_image_blob ( im ) blobs [ 'rois' ] = _get_rois_blob ( rois , im_scale_factors ) return ( blobs , im_scale_factors )
convert an image and rois within that image into network inputs .