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
3D soft_skel gives discontinuous input and different results on pytorch vs tensorflow #7
Comments
Dear kretes,
|
Hello @jocpae , thanks for a quick response! Indeed if I apply your change to the pytorch version + change as well the
I get different results and no longer a discontinuity. However the results seem ok when applied for one iteration, but no longer so for more (in pytorch version they go back to original value, while I assume the more iterations I do I should stabilize at the minimal skeleton, i.e. it should never extend): Do you know why is that? Have you made some other changes? Looking at your images I would say that the upper row is not the expected behaviour as it removes a large part, however the bottom row seems ok. I've updated the gist used here: https://gist.github.com/kretes/550ac2b58260504fb1b586fe5bab7634 |
Please see the comment in the gist, I hope this solves the issue :) |
@jocpae I've updated the gist and added my response in https://gist.github.com/kretes/550ac2b58260504fb1b586fe5bab7634#gistcomment-3867141 - Could you take a look at that? |
The problem here was that soft_skel does not preserve the connectedness of this synthetic shape: the result has 2 connected components, with a small gap at the "joint". @jocpae Do you think this affects clDice at all? Could you provide some insights on whether this problem should be fixed / how it could be fixed? |
First of all - thanks for a great paper about clDice, it's really interesting approach.
I wanted to test the idea on 3D dataset.
I have a synthetic 3D shape on which I just run soft_skeletonize and I assume it should leave the same single connected component. unfortunately it doesn't. See the following summary showing the input image on the left, and two iterations of soft_skel - for both tensorflow and pytorch.
I've created a reproducible Colab notebook for the case: https://gist.github.com/kretes/84f6025e7e1ded19591a54b62abcc539
The text was updated successfully, but these errors were encountered: