-
Notifications
You must be signed in to change notification settings - Fork 13
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 create the affinity? #7
Comments
We use shift kernels to compute the affinities from ground-truth, see https://github.com/inferno-pytorch/neurofire/blob/master/neurofire/transform/segmentation.py#L110. |
The affinities at the borders of the volume are invalid. That's why we use the padding. In the slicing_config the parameters mean the following: |
Thank you so so so much! It works in my case now. One final question: is there a GPU version of mutex watershed? |
Great!
No, the mutex watershed is based on building a spanning forest using a version of kruskal's algorithm that can express repulsive interactions. This is a sequential algorithm and not suited for GPU computing. |
Thank you so much! 👍 |
Hi, thank you for sharing. I wonder how do you create the ground truth affinity from the segmentation. I wrote a "segmentation_to_affinity" function on my own, and use this function to get the affinity of the segmentation groundtruth of isbi data (which you provides in this repo). But when I used the mutex watershed on these affinity graphs, I got some weird results. So I think I might write a "segmentation_to_affinity" function different from yours. Below shows the results of using the predicted affinities you provided and using my own affinities correspondingly. Any comments will be helpful! Thanks!
The text was updated successfully, but these errors were encountered: