segment-anything icon indicating copy to clipboard operation
segment-anything copied to clipboard

how to use ONNX for multi mask?

Open kira-heisenberg opened this issue 1 year ago • 3 comments

How to get all the masks from the image using onnx, the notebook implementation is for a single mask. Help is appreciated

kira-heisenberg avatar Apr 23 '23 08:04 kira-heisenberg

The SamOnnxModel constructor takes a boolean called return_single_mask. The notebook uses return_single_mask=True but it looks like you might be able to just pass return_single_mask=False to get a multi-mask oxxn model. I haven't tried it, but I'm guessing that's enough to get the multi-mask onnx model.

JKelle avatar Apr 24 '23 14:04 JKelle

following

alidexiang98 avatar Aug 09 '23 14:08 alidexiang98

following

DiegoMoralesBravo avatar Nov 23 '23 23:11 DiegoMoralesBravo