sam-pt icon indicating copy to clipboard operation
sam-pt copied to clipboard

want to get image mask, for use in bundlesdf project, just run demo line,

Open wang-shuaikang opened this issue 1 year ago • 2 comments

wang-shuaikang avatar Aug 12 '23 01:08 wang-shuaikang

Hej, if you're looking to extract the mask logits from our demo, you can find the relevant line of code below. Is this what you were searching for?

https://github.com/SysCV/sam-pt/blob/228d7cd957d90cbb601b1b6c8ad885f71995a9f3/demo/demo.py#L134

m43 avatar Aug 16 '23 15:08 m43

@m43 Hello Sir, after normal operation, should there be a mask in the form of pictures in the output folder? There is no mask picture in my output folder, thank you for your answer

2min77 avatar May 11 '24 13:05 2min77

For the demo unfortunately no, just the visualizations are created, but you can access the logits here. When running SAM-PT on VOS as documented here, the masks will automatically be saved to disk in the form of pictures as they are later needed for computing the VOS performance. You can see how in that case we process the logits here and save them to disk here.

m43 avatar May 14 '24 16:05 m43