run_sam_predictor()#

function run_sam_predictor(predictor, img, input_boxes, input_points_t, input_labels_t)#

Run the sam predictor on the image with the inputs.

Parameters:
  • predictor (segment_anything.SamPredictor)

  • img (ndarray)

  • input_boxes (Tensor)

  • input_points_t (Tensor)

  • input_labels_t (Tensor)

Return type:

Tensor