Skip to content
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

What is the ground-truth mask used during training? #12

Open
jackaceuser opened this issue Aug 15, 2018 · 1 comment
Open

What is the ground-truth mask used during training? #12

jackaceuser opened this issue Aug 15, 2018 · 1 comment

Comments

@jackaceuser
Copy link

Hi

I saw in the file train_pano_joint.lua that you use somekind of mask to increase the loss at some poisitions.
I couldn't find any reference to that neither in the paper or throughout the repository.

Could you please explain what is the mask, how it is generated and why is it needed?

Thanks

    gtMsk = torch.mul(gtMsk, 4)
    gtMsk = gtMsk:cuda()
    gtMsk_w = torch.cmul(loss_d_1, gtMsk)
    loss_d_1 = torch.add(gtMsk_w, loss_d_1)
    gt2Msk = torch.mul(gt2Msk, 4)
    gt2Msk = gt2Msk:cuda()
    gt2Msk_w = torch.cmul(loss_d_2, gt2Msk)
    loss_d_2 = torch.add(gt2Msk_w, loss_d_2)
@zouchuhang
Copy link
Owner

zouchuhang commented Aug 15, 2018

@jackaceuser You can refer to the ground-truth masking in Section 3.3, last sentence in the third paragraph of the paper(http://openaccess.thecvf.com/content_cvpr_2018/CameraReady/0409.pdf). Since our ground-truth layout edge and corner map contains >95% zero values even after gaussian smoothing, to ease the learning process we re-weight the back propagated gradients of the background pixels by multiplying with 0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants