def _get_image_blob(roidb, scale_inds):
    'Builds an input blob from the images in the roidb at the specified\n    scales.\n    '
    num_images = len(roidb)
    processed_ims = []
    im_scales = []
    for i in xrange(num_images):
        im = roidb[i]['image']()
        if roidb[i]['flipped']:
            im = im[:, ::(- 1), :]
        target_size = cfg.TRAIN.SCALES[scale_inds[i]]
        (im, im_scale) = prep_im_for_blob(im, cfg.PIXEL_MEANS, target_size, cfg.TRAIN.MAX_SIZE)
        im_scales.append(im_scale)
        processed_ims.append(im)
    blob = im_list_to_blob(processed_ims)
    return (blob, im_scales)
Builds an input blob from the images in the roidb at the specified
scales.
def _get_image_blob(roidb, scale_inds):
    'Builds an input blob from the images in the roidb at the specified\n    scales.\n    '
    num_images = len(roidb)
    processed_ims = []
    im_scales = []
    for i in xrange(num_images):
        im = roidb[i]['image']()
        if roidb[i]['flipped']:
            im = im[:, ::(- 1), :]
        target_size = cfg.TRAIN.SCALES[scale_inds[i]]
        (im, im_scale) = prep_im_for_blob(im, cfg.PIXEL_MEANS, target_size, cfg.TRAIN.MAX_SIZE)
        im_scales.append(im_scale)
        processed_ims.append(im)
    blob = im_list_to_blob(processed_ims)
    return (blob, im_scales)