MathOnco / valis

Virtual Alignment of pathoLogy Image Series
https://valis.readthedocs.io/en/latest/
MIT License
119 stars 29 forks source link

facing error using NonRigidRegistrarGroupwise #162

Open shubhankar-git opened 5 days ago

shubhankar-git commented 5 days ago

getting this error in non_rigid_registrar_cls NonRigidRegistrarGroupwise

======== Registering images (non-rigid)

/usr/local/src/valis/valtils.py:25: UserWarning: module 'numpy' has no attribute 'uiint8' warnings.warn(warning_msg, warning_type) Traceback (most recent call last): File "/usr/local/src/valis/registration.py", line 4624, in register to convert the images and then rigidly align them. ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/src/valis/registration.py", line 4101, in non_rigid_register File "/usr/local/src/valis/serial_non_rigid.py", line 1161, in register_images nr_reg.register(non_rigid_reg_class, non_rigid_reg_params, img_params=img_params) File "/usr/local/src/valis/serial_non_rigid.py", line 988, in register self.register_groupwise(non_rigid_reg_class, non_rigid_reg_params) File "/usr/local/src/valis/serial_non_rigid.py", line 947, in register_groupwise warped_imgs, warped_grids, backward_deformations = non_rigid_reg.register(img_list, self.mask) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/src/valis/non_rigid_registrars.py", line 597, in register List of I images, each with shape (N,M) that are to

File "/usr/local/src/.venv/lib/python3.12/site-packages/numpy/init.py", line 333, in getattr raise AttributeError("module {!r} has no attribute " AttributeError: module 'numpy' has no attribute 'uiint8'. Did you mean: 'uint8'?

JVM has been killed. If this was due to an error, then a new Python session will need to be started None