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

python-itk: module 'itk' has no attribute 'GPUImage' #1605

Open
zhang-qiang-github opened this issue Feb 12, 2020 · 0 comments
Open

python-itk: module 'itk' has no attribute 'GPUImage' #1605

zhang-qiang-github opened this issue Feb 12, 2020 · 0 comments
Labels

Comments

@zhang-qiang-github
Copy link

@zhang-qiang-github zhang-qiang-github commented Feb 12, 2020

I want to use the GPU based itk for registrdation. Thus, I compile the itk from the source code, and set the ITK_USE_GPU to ON. The compiling is OK.
捕获

The itk can be imported in python:

import itk
itk.Image[itk.F, 3]
<class 'itkImagePython.itkImageF3'>

However, when I want to import the GPU module, bug is reported:

itk.GPUImage[itk.F, 3]
Traceback (most recent call last):
File "", line 1, in
File "D:\Anaconda3\envs\ITK_gpu\lib\site-packages\itkLazy.py", line 48, in getattribute
value = types.ModuleType.getattribute(self, attr)
AttributeError: module 'itk' has no attribute 'GPUImage'

Also, module 'itk' has no attribute 'GPUDemonsRegistrationFilter'.
How can I use GPU based itk for registration in python? Could somebody provide a demo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.