Closed jpcenteno80 closed 2 years ago
I think the error mesage is: AttributeError: module 'itk.ITKIOImageBasePython' has no attribute 'swig'. @thewtex Could you please help share any comments here?
Thanks in advance.
I think this has been addressed in the recent versions: https://github.com/InsightSoftwareConsortium/ITK/blob/a89145bccda6a36f42cfdd45d3a6b27234ff54fe/Wrapping/Generators/Python/itk/support/base.py#L71-L72 I'm closing this ticket for now. Please feel free if it's still an issue after updating itk.
@wyli Hello! Have the same error. Using Monai-Label in 3D Slicer: monai 1.0.1 pypi_0 pypi monailabel 0.5.2 pypi_0 pypi When I trigger training process in Slicer I have this error written in Anaconda Powershell Promt:
[2022-12-03 02:43:13,947] [13744] [MainThread] [INFO] (monailabel.tasks.train.basic_train:608) - 0 - Load Path C:\Users\HYPERPC\radiology\model\pretrained_deepedit_dynunet.pt
Loading dataset: 0%| | 0/1 [00:00<?, ?it/s]
Loading dataset: 0%| | 0/1 [00:11<?, ?it/s]
Traceback (most recent call last):
File "C:\Users\HYPERPC\anaconda3\envs\ColonCancer\lib\site-packages\monai\transforms\transform.py", line 91, in apply_transform
return _apply_transform(transform, data, unpack_items)
File "C:\Users\HYPERPC\anaconda3\envs\ColonCancer\lib\site-packages\monai\transforms\transform.py", line 55, in _apply_transform
return transform(parameters)
File "C:\Users\HYPERPC\anaconda3\envs\ColonCancer\lib\site-packages\monai\transforms\io\dictionary.py", line 154, in call
data = self._loader(d[key], reader)
File "C:\Users\HYPERPC\anaconda3\envs\ColonCancer\lib\site-packages\monai\transforms\io\array.py", line 271, in call
meta_data = switch_endianness(meta_data, "<")
File "C:\Users\HYPERPC\anaconda3\envs\ColonCancer\lib\site-packages\monai\transforms\io\array.py", line 84, in switch_endianness
data = {k: switch_endianness(v, new) for k, v in data.items()}
File "C:\Users\HYPERPC\anaconda3\envs\ColonCancer\lib\site-packages\monai\transforms\io\array.py", line 84, in
So, as written here first problem "Unknown type: itkMatrixF44" cause transform problem. As You recommended, I updated some packages (last version): swig 4.1.0 itk 5.3.0 pypi_0 pypi itk-core 5.3.0 pypi_0 pypi itk-filtering 5.3.0 pypi_0 pypi itk-io 5.3.0 pypi_0 pypi itk-numerics 5.3.0 pypi_0 pypi itk-registration 5.3.0 pypi_0 pypi itk-segmentation 5.3.0 pypi_0 pypi simpleitk 2.2.0 pypi_0 pypi
Then had absolutely same error. Additional info: all recommended dependencies were built from git, according to Your documentation https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies
P.s. I'm so sorry for uncomfortable error typing, I've just registered in GitHub to ask you.
Sure, it's this issue according to your log https://github.com/Project-MONAI/MONAI/issues/5603, please try 'pip install monai==1.1.0rc1', this is a pre-release that has a patch for it.
Thank You so much, it works! Now I'll try to find the way to download seg.nii completed earlier on server to train...
Describe the bug When working with
.nrrd
files,CacheDataset
throws an error during instantiation. However, if working in a jupyter notebook, executing theCacheDataset
instantiation cell again runs with no problems. Usingmonai.data.Dataset
andmonai.data.PersistentDataset
work as expected.To Reproduce
Expected behavior Should not throw error. Training code not in jupyter but as script, so not allowed to execute problem cell twice.
Screenshots If applicable, add screenshots to help explain your problem.
Environment
Additional context Add any other context about the problem here.