parameters: (im_blob, gt_boxes)
docstring: Visualize a mini-batch for debugging.
docstring_summary: Visualize a mini-batch for debugging.
docstring_tokens: Visualize a mini - batch for debugging .
function: def _vis_minibatch_box(im_blob, gt_boxes):
      """Visualize a mini-batch for debugging."""
      import matplotlib.pyplot as plt
  
      for i in xrange(im_blob.shape[0]):
          fig = plt.figure()
          # show image
          im = im_blob[i, :, :, :].copy()
          im += cfg.PIXEL_MEANS
          im = im[:, :, (2, 1, 0)]
          im = im.astype(np.uint8)
          ax = fig.add_subplot(1, 2, 1)
          plt.imshow(im)
          ax.set_title('color') 
  
          ax = fig.add_subplot(1, 2, 2)
          plt.imshow(im)
          for j in xrange(gt_boxes.shape[0]):
              x1 = gt_boxes[j, 0]
              y1 = gt_boxes[j, 1]
              x2 = gt_boxes[j, 2]
              y2 = gt_boxes[j, 3]
              plt.gca().add_patch(
                  plt.Rectangle((x1, y1), x2-x1, y2-y1, fill=False, edgecolor='g', linewidth=3))
  
          plt.show()
function_tokens: def _vis_minibatch_box ( im_blob , gt_boxes ) : import matplotlib . pyplot as plt for i in xrange ( im_blob . shape [ 0 ] ) : fig = plt . figure ( ) # show image im = im_blob [ i , : , : , : ] . copy ( ) im += cfg . PIXEL_MEANS im = im [ : , : , ( 2 , 1 , 0 ) ] im = im . astype ( np . uint8 ) ax = fig . add_subplot ( 1 , 2 , 1 ) plt . imshow ( im ) ax . set_title ( 'color' ) ax = fig . add_subplot ( 1 , 2 , 2 ) plt . imshow ( im ) for j in xrange ( gt_boxes . shape [ 0 ] ) : x1 = gt_boxes [ j , 0 ] y1 = gt_boxes [ j , 1 ] x2 = gt_boxes [ j , 2 ] y2 = gt_boxes [ j , 3 ] plt . gca ( ) . add_patch ( plt . Rectangle ( ( x1 , y1 ) , x2 - x1 , y2 - y1 , fill = False , edgecolor = 'g' , linewidth = 3 ) ) plt . show ( )