jiwoon-ahn / irn

Weakly Supervised Learning of Instance Segmentation with Inter-pixel Relations, CVPR 2019 (Oral)
MIT License
519 stars 100 forks source link

cam_to_ir_label #35

Open sgadgil6 opened 3 years ago

sgadgil6 commented 3 years ago

@jiwoon-ahn What does the cam_to_ir_label.py do exactly? Does it create a binary mask?

116022017144 commented 1 year ago

It seems like that. there is only black and white irn label .png

TZW-056 commented 1 year ago

I don't thinks so. From the fllowing code, we can see that 'conf' should contains the values which is not 255 or 0. So, I think what the cam_to_ir_label does is generating the figures like Figure 3.b in the author's paper as the label of IRNet.


        # 2. combine confident fg & bg
        conf = fg_conf.copy()
        conf[fg_conf == 0] = 255
        conf[bg_conf + fg_conf == 0] = 0