parameters: (roidb, scale_inds)
return_statement: return blob, im_scales
docstring: Builds an input blob from the images in the roidb at the specified
      scales.
docstring_summary: Builds an input blob from the images in the roidb at the specified
      scales.
docstring_tokens: Builds an input blob from the images in the roidb at the specified scales .
function: def _get_image_blob(roidb, scale_inds):
      """Builds an input blob from the images in the roidb at the specified
      scales.
      """
      num_images = len(roidb)
      processed_ims = []
      im_scales = []
      for i in xrange(num_images):
          im = None
          if cfg.TRAIN.FORMAT == "pickle":
              with gzip(roidb[i][image], 'rb') as f:
                  im = cPickle.load(f)
          else:
              im = cv2.imread(roidb[i]['image'])
              # print 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)
  
      # Create a blob to hold the input images
      blob = im_list_to_blob(processed_ims)
  
      return blob, im_scales
function_tokens: def _get_image_blob ( roidb , scale_inds ) : num_images = len ( roidb ) processed_ims = [ ] im_scales = [ ] for i in xrange ( num_images ) : im = None if cfg . TRAIN . FORMAT == "pickle" : with gzip ( roidb [ i ] [ image ] , 'rb' ) as f : im = cPickle . load ( f ) else : im = cv2 . imread ( roidb [ i ] [ 'image' ] ) # print 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 ) # Create a blob to hold the input images blob = im_list_to_blob ( processed_ims ) return blob , im_scales