SamsungLabs / fbrs_interactive_segmentation

[CVPR2020] f-BRS: Rethinking Backpropagating Refinement for Interactive Segmentation https://arxiv.org/abs/2001.10331
Mozilla Public License 2.0
583 stars 94 forks source link

Saving mask doesn't work #17

Closed sdfghjkyuio closed 4 years ago

sdfghjkyuio commented 4 years ago

I run demo.py and segment a picture, and then I click 'save mask'. But the saved mask picture is all black with out mask. 20190810_10026

pkraison commented 4 years ago

check whether it's generating right points

sdfghjkyuio commented 4 years ago

Could you tell me the meaning of right points? I forget where it has been mentioned. Thank you!

ksofiyuk commented 4 years ago

Before saving the mask you must finish an object (by pressing Space, for instance), otherwise the current mask won't be saved.

ksofiyuk commented 4 years ago

In addition, our demo saves masks with objects ids (1, 2, 3 and so on) within PNGs, it means that the first object will have (1, 1, 1) color, not (255, 255, 255). So in image viewers it's almost visually indistinguishable.

sdfghjkyuio commented 4 years ago

I can understand it now. Thanks!!