siavashk / pycpd

Pure Numpy Implementation of the Coherent Point Drift Algorithm
MIT License
522 stars 118 forks source link

'ConstrainedDeformableRegistration' object has no attribute 'low_rank'[BUG] #89

Closed fengyasi closed 1 year ago

fengyasi commented 1 year ago

Hi Sorry to disturb When I use the fish_constrained_deformable_3D.py , it has the _AttributeError: 'ConstrainedDeformableRegistration' object has no attribute 'low_rank'_ All the code and data are from the example and data folders

Describe` the bug AttributeError: 'ConstrainedDeformableRegistration' object has no attribute 'low_rank'

gattia commented 1 year ago

@agporto - do you mind taking a look at this example?

agporto commented 1 year ago

@fengyasi @gattia Cannot replicate on my end. My guess is that the low_rank attribute was improperly called (it has to go inside the curly brackets). Please see example in https://github.com/siavashk/pycpd/blob/master/examples/fish_deformable_3D_lowrank.py . It contains the low_rank example of the fish_constrained_deformable_3D. If the problem persists, please reopen with more details (package versions, etc)