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

How to get the mask to input the loss function #10

Closed
dldl3D opened this issue Jan 2, 2020 · 4 comments
Closed

How to get the mask to input the loss function #10

dldl3D opened this issue Jan 2, 2020 · 4 comments

Comments

@dldl3D
Copy link

dldl3D commented Jan 2, 2020

Hi,

I want to ask how I can get the mask to input the loss function? Cloud you release the training code and data generation script?

Thank you!

@ranftlr
Copy link
Collaborator

ranftlr commented Jan 21, 2020

Mask generation is described in Section A of the supplementary material. Can you specify what exactly is unclear?

@dldl3D dldl3D closed this as completed Feb 26, 2020
@dldl3D dldl3D reopened this Mar 10, 2020
@dldl3D
Copy link
Author

dldl3D commented Mar 10, 2020

I find that the input of compute_scale_and_shift function is prediction, target, mask. How can I get the mask?
def compute_scale_and_shift(prediction, target, mask):
# system matrix: A = [[a_00, a_01], [a_10, a_11]]
a_00 = torch.sum(mask * prediction * prediction, (1, 2))
a_01 = torch.sum(mask * prediction, (1, 2))
a_11 = torch.sum(mask, (1, 2))

@ranftlr
Copy link
Collaborator

ranftlr commented Mar 10, 2020

As mentioned before, we describe mask generation for our own dataset in Section A of the supplementary material: "We perform a left-right consistency check and mark pixels with a disparity difference of more than 2 pixels as invalid". The same strategy is used for WSVD. The other datasets come with their own masks, please refer to their respective websites/papers for instructions.

@ranftlr
Copy link
Collaborator

ranftlr commented Mar 31, 2020

Closing due to inactivity.

@ranftlr ranftlr closed this as completed Mar 31, 2020
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