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

GradICON requires the itk_wrapper #66

Closed
wants to merge 1 commit into from
Closed

Conversation

curiale
Copy link

@curiale curiale commented Dec 20, 2023

GradICON requires itk_wrapper.

File ".../GradICON_Det/determinant_helper.py", line 276, in register_pair_mask
icon.itk_wrapper.create_itk_transform(phi_AB, model.identity_map, image_A, image_B),
AttributeError: module 'icon_registration' has no attribute ‘itk_wrapper’

@HastingsGreer
Copy link
Collaborator

I think that this is a good idea. The issue is that itk is extremely slow to import, so we want to avoid loading it when icon_registration is imported for a non-itk task, just to improve developer experience. Maybe we could also move the itk import into the register_pair function body?

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

Successfully merging this pull request may close these issues.

2 participants