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 deal distance_weight? d1(x) and d2(x) #1

Open
lucy3589 opened this issue Mar 20, 2019 · 2 comments
Open

how to deal distance_weight? d1(x) and d2(x) #1

lucy3589 opened this issue Mar 20, 2019 · 2 comments

Comments

@lucy3589
Copy link

The separation border is computed using morphological operations. The
weight map is then computed as
w(x) = wc(x) + w0 · exp −(d1(x) + d2(x))2
2σ2 ! (2)
where wc : Ω ! R is the weight map to balance the class frequencies, d1 : Ω ! R
denotes the distance to the border of the nearest cell and d2 : Ω ! R the distance
to the border of the second nearest cell. In our experiments we set w0 = 10 and
σ ≈ 5 pixels.

@lucy3589 lucy3589 changed the title how to deal distance_weight. d1(x) and d2(x) how to deal distance_weight? d1(x) and d2(x) Mar 20, 2019
@jis478
Copy link
Owner

jis478 commented Mar 22, 2019

Hi Lucy,

I think you'd better ask to the original code author (https://github.com/jakeret/tf_unet). I haven't used the cross-entropy loss for my problems as they seem to vulnerable to imbalanced ones.

@lucy3589
Copy link
Author

ok,thanks very much!

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