autoannos#
build automatic annotations.
autoannos Functions#
|
Gets n_pixels from an image region, im_region. |
|
Create an empty input vector for sam. |
|
Define the sam model batch inputs for an image ImgFull. |
|
Get the same model to use for the prediction. |
|
Set the image to predict on. |
|
Run the sam predictor on the image with the inputs. |
|
Run sam over an image to get predicted masks on bounding box regions. |