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

Questions about UNet architecture and Dice loss #58

Open
haichaoyu opened this issue Jun 6, 2017 · 3 comments
Open

Questions about UNet architecture and Dice loss #58

haichaoyu opened this issue Jun 6, 2017 · 3 comments

Comments

@haichaoyu
Copy link

haichaoyu commented Jun 6, 2017

Hello,

I have two questions about the UNet architecture and Dice loss function:

  1. In the UNet paper, there is no Relu layer after the final conv. In experiments of my implemented version of UNet, such a Relu doesn't help. I don't whether the Relu in Line 136, unet.py helps or not.
  2. IMHO, Dice loss can be regarded as # of True Positives / (# of Positives + # of False Positives), but the Dice loss in Line 231, unet.py count both positives and negatives if I understand the code correctly.

Please correct me if I am wrong. Thanks.

@jakeret
Copy link
Owner

jakeret commented Jun 7, 2017

Hi @haichaoyu thanks for reporting this.

  1. I think you're right. The code diverges from the paper architecture. There is no particular reason why I added this. ATM I'm not sure how it affects the performance.

  2. Someone send a PR addressing this. Would love to hear your thoughts on this.

@haichaoyu
Copy link
Author

@jakeret Hi, I added a new version of dice loss but did not test them. Sorry about that.

@jakeret
Copy link
Owner

jakeret commented Jun 12, 2017

Thanks I'll have a look

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