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

A question about InverseTransform2D #4

Open
ghost opened this issue Aug 23, 2021 · 1 comment
Open

A question about InverseTransform2D #4

ghost opened this issue Aug 23, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 23, 2021

Hi,
In your code, the class InverseTransform2D calculates the loss of boundary distance. You use "inputs = torch.ge(inputs, 0.5).float()" to get boundary map. But it seems that the backward is interrupted. Please make sure that this item of loss can be backward. Cause I think the required_grad attribute of mean_square_inverse_loss is False.

@sborse3
Copy link

sborse3 commented Aug 27, 2021

Thanks for pointing it out, an earlier bug had creeped in. I've fixed it.

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

1 participant