-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implementation of external Zernike3D distance #100
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write a validator for a config that has the zernike parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to use Pydantic if you are familiar with it, the idea is to switch all validation to it in the future, I've just been busy with other things. Check the end of this file
if you want to get a better idea of how it works.
@DavidHerreros I am getting the following error. What is some sample data that this should run on? Perhaps it's just some shape / pixel size differences in the test data...
|
and where the original config (that generates the same error) is
|
|
Thanks for the report! I did not consider in the code the possibility of having volumes with variable shapes in the input. Currently, the program assumes that the spatial dimensions are collapsed instead of having a 4D array. I have added a fix to solve this issue so that the program is no longer restricted by the number of dimensions in the input volumes. Here you have the PR with the fixes. Could you please change your branch to the one in the PR to check if everything is now working? |
Yes @DavidHerreros , that fix seems to have addressed the tensor shape issue. However, I'm getting another error. I isolated the issue to Flexutils-Toolkit, apart from how it is being externally called here, and made an issue on your repo if you want to discuss there: I2PC/Flexutils-Toolkit#18 |
Hi @geoffwoollard, Sorry, I have missed that one... We can continue discussing the other repo to better isolate the issues as you propose. I have already added some fixes and replied to your comments there. Thanks for the report! |
Implementation of the Zernike3D on the
map_to_map
pipeline.The implementation includes an initial approximation on how future external distances could be implemented. Overall, the proposed solution involved:
docs
folder including setup instructions for a given external package and tips on how to configure and run the new distanceRegarding tutorials, I don't think it make sense to add test for external distances, as it would involve installing and running different packages on GitHub side. In some cases, installations might not be possible without user input, and in some others the external software might need resources not available on GitHub (such as GPUs). I would rather specify on the documentation that any erros arising when running external distances should be reported to the external package developers.