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

loss #6

Open
hydxqing opened this issue Nov 25, 2018 · 3 comments
Open

loss #6

hydxqing opened this issue Nov 25, 2018 · 3 comments

Comments

@hydxqing
Copy link

Why do my output loss_G and loss_D are opposite to each other? In your code, loss_G and loss_D are just symbols different. And after this training is completed, the predictions are all nan. Why is this so?
I really hope to hear from you.

@douhe66
Copy link

douhe66 commented May 15, 2019

Because the denominator may be 0 in the calculate of iou and dice, you can replace the np.mean() with np.nanmean().

@douhe66
Copy link

douhe66 commented May 15, 2019

I am also have a problem with the loss_G and loss_D, actually, I changed the symbol of the loss_D, but the results do not seem to differ. Is anyone could explain it?

@YuanXue1993
Copy link
Owner

This shouldn't be happening, maybe you can try to train with the adversarial loss alone (i.e., w/o the dice loss, which was put there to help stabilize the adversarial training). In that case, changing the symbol should just make the whole training fail.

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

3 participants