Giter VIP home page Giter VIP logo

Comments (5)

thewtex avatar thewtex commented on June 24, 2024

itk-anisotropicdiffusionlbr 1.0.2

itk-meshtopolydata 0.5.1

In a fresh virtualenv without these packages, does the error still occur?

python3 -m pip install --upgrade pip
python3 -m pip install --upgrade --pre itk-elastix itk

from itkelastix.

olegl avatar olegl commented on June 24, 2024

I uninstalled anisotropicdiffusionlbr and meshtopolydata. Error persits. I upgraded pip and itk (but it was already at the most recent version). Error persists.

$ python3 -m pip install --upgrade --user pip
Requirement already up-to-date: pip in /home/lobacheo/.local/lib/python3.7/site-packages (20.0.2)
$ python3 -m pip install --upgrade --user --pre itk-elastix itk
Requirement already up-to-date: itk-elastix in /home/lobacheo/.local/lib/python3.7/site-packages (0.5.1)
Requirement already up-to-date: itk in /home/lobacheo/.local/lib/python3.7/site-packages (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: itk-filtering==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: itk-registration==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: itk-core==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: numpy in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (1.17.4)
Requirement already satisfied, skipping upgrade: itk-segmentation==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: itk-numerics==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: itk-io==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
$ python3 itkElastixRegistrationMethodTest.py input_0001.png input_0002.png  test.png
Traceback (most recent call last):
  File "itkElastixRegistrationMethodTest.py", line 61, in <module>
    registered, transform = itk.elastix_registration_method(fixed, moving)
  File "/home/lobacheo/.local/lib/python3.7/site-packages/itkLazy.py", line 52, in __getattribute__
    itkBase.LoadModule(module, namespace)
  File "/home/lobacheo/.local/lib/python3.7/site-packages/itkBase.py", line 82, in LoadModule
    LoadModule(dep, namespace)
  File "/home/lobacheo/.local/lib/python3.7/site-packages/itkBase.py", line 78, in LoadModule
    data = module_data[name]
KeyError: 'ITKSmoothing'
$ pip3 list | grep itk
itk                          5.1rc1.post1       
itk-core                     5.1rc1.post1       
itk-elastix                  0.5.1              
itk-elastix-opencl           0.5.1              
itk-filtering                5.1rc1.post1       
itk-io                       5.1rc1.post1       
itk-numerics                 5.1rc1.post1       
itk-registration             5.1rc1.post1       
itk-segmentation             5.1rc1.post1       
itkwidgets                   0.25.2 

from itkelastix.

olegl avatar olegl commented on June 24, 2024

A fresh virtualenv seems to bring me further. The current error is gone. Thank you!

I still get:

(test) $ python3 ../itkElastixRegistrationMethodTest.py ../input_0001.png ../input_0002.png  test.png
Traceback (most recent call last):
  File "../itkElastixRegistrationMethodTest.py", line 61, in <module>
    registered, transform = itk.elastix_registration_method(fixed, moving)
TypeError: cannot unpack non-iterable itkImageF2 object

I am investigating futher.

from itkelastix.

olegl avatar olegl commented on June 24, 2024

Okay, it works.

One caveat, as expected from above: in https://github.com/InsightSoftwareConsortium/ITKElastix/blob/master/wrapping/test/itkElastixRegistrationMethodTest.py in else branch (line 60): we are not getting a transform back. So, there is no tuple. And also no transform defined for the later output.

from itkelastix.

thewtex avatar thewtex commented on June 24, 2024

registered, transform = itk.elastix_registration_method(fixed, moving)

This is a difference in the API of master versus the released Python package.

Thank you for your patience.

This will be cleaned up with the ITK 5.1.0 release.

from itkelastix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.