autoannos#

build automatic annotations.

autoannos Functions#

get_signal_pixels(im_region, n_pixels, input_box)

Gets n_pixels from an image region, im_region.

empty_input_vector(num[, device])

Create an empty input vector for sam.

define_sam_batchinputs(img, gdf_bb[, device])

Define the sam model batch inputs for an image ImgFull.

get_sam_model([sam_checkpoint, model_type, device])

Get the same model to use for the prediction.

set_sam_image(predictor, img)

Set the image to predict on.

run_sam_predictor(predictor, img, input_boxes, ...)

Run the sam predictor on the image with the inputs.

get_sam_masks(prediction_image, gdf_bb[, ...])

Run sam over an image to get predicted masks on bounding box regions.