FastSAM icon indicating copy to clipboard operation
FastSAM copied to clipboard

batched inference and feature extraction for point prompts

Open ysig opened this issue 1 year ago • 0 comments

Hi,

Thank you for this great work. I have a question: Given a batched input x: B,3,H,W, what is the best way to:

a) batch preprocess the images (so that you can offload this to a dataloader) b) do a batch segmentation given a prompt: B, K, 2 and label: B, K, 2 c) extract both the mask and the features of the mask (can be an average) for the resulting segmentation?

Thank you,

ysig avatar Nov 20 '24 13:11 ysig