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

Potential bugs for edge loss #62

Open
hding2455 opened this issue Feb 19, 2020 · 0 comments
Open

Potential bugs for edge loss #62

hding2455 opened this issue Feb 19, 2020 · 0 comments

Comments

@hding2455
Copy link

Hi I found that your implementation of the edge loss in this code might has bug:
In network/gscnn.py line 307, a sigmoid function is applied to cs to generate edge_out
edge_out = self.sigmoid(cs)
and in loss.py line 91 function binary_cross_entropy_with_logits is applied to compute the edge loss which has a sigmoid function build in it. which means you might have applied 2 sigmoid function for edge out to compute edge loss.
loss = F.binary_cross_entropy_with_logits(log_p, target_t, weight, size_average=True)

If I made mistakes about this please correct me and let me know.

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