-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question regarding MIL loss #2
Comments
Is x['mask'] basically a tight bbox of 1s? |
I'm not the author but If you check below lines in mask-auto-labeler/datasets/voc.py Lines 95 to 104 in 8427b66
|
@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.
The text was updated successfully, but these errors were encountered: