-
Notifications
You must be signed in to change notification settings - Fork 98
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
Heterogeneous resolution yields non-zero boundary. #45
Comments
Hi Ramone, Thanks for the interest, this is really a corner case. Are you allowed to share any of such examples, with real-world data? Did you try to train in-spite with the boundary at 0.5? Though the distance would be slightly off, I would not necessarily affect the minimization process much. I will try to keep thinking about this in the coming days. Your suggested erosion might be enough. Best, Hoel |
Hi Hoel, Unfortunately I have no data to share, any other synthetic example will have the same problem. Using I agree the optimization shouldn't be affected by this; with the current implementation I did not train for long so I am unable to tell you about the results, on the other hand, the binary erosion is working. I have to train for longer and compare with only regional loss. If you come up with something keep me posted. Best, Ramón |
Hi Ramón, Thank you for your useful feedback. I suppose I could (should) add some unit test for that. (I have some partial unit-testing file somewhere locally, that I haven't included in the repo.) That might help to decide how to deal with this corner case. I have some deadlines coming up and I will not have time to handle that right now, so I will snooze this until late October. Best, Hoel |
Hi Hoel, Wish you the best with your deadlines! Yes, if at some point you add the unit test files, I could help you resolve the corner case. Best, Ramón |
Hi, when the resolution for the distance maps is heterogeneous the formula in
one_hot2dist
will yield non-zero values in the boundaries. For example:Here the boundaries will be
0.5
instead of0
. Maybe eroding one of the masks could help generalize:The text was updated successfully, but these errors were encountered: