Closed WeiChihChern closed 1 year ago
Is x['mask'] basically a tight bbox of 1s?
@WeiChihChern
I'm not the author but If you check below lines in mask-auto-labeler/datasets/voc.py
, x['mask'] is simply box shaped masking filled with 1.
Is this what you are looking for?
@hongyeob-kim Good find, thanks.
Hi @WeiChihChern @hongyeob-kim ,
Thanks for asking and answering this question. It’s not a good idea to use mask for box-shaped mask. I will put this in the readme and maybe change the name in the future.
Best
In mask-auto-labeler/models/mal.py,
Line 420:
# Multiple instance learning Loss
loss_mil = self.mil_loss(student_seg_sigmoid, mask)
The
mask
inself.mil_loss(student_seg_sigmoid, mask)
is from line 410, wheremask = F.interpolate(x['mask'], size=(oh, ow), mode='bilinear', align_corners=False).reshape(-1, oh, ow)
I wonder does this mean we are not only using bbox but also ground truth masks during training? Thank you.