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

Bug in main.py from hand_xray: RuntimeError: Exception thrown in SimpleITK new_CompositeTransform: invalid vector<T> subscript #7

Open
ndzimbong opened this issue Feb 22, 2021 · 1 comment

Comments

@ndzimbong
Copy link

Please, I get the following RuntimeError when I try to run main.py from hand_xray folder:



...\PYTHONPATH\MedicalDataAugmentationTool-HeatmapRegression\hand_xray\main.py", line 172, in
loop = MainLoop(cv, network)

...\PYTHONPATH\MedicalDataAugmentationTool-HeatmapRegression\hand_xray\main.py", line 71, in init
self.dataset_train.get_next()

...\PYTHONPATH\MedicalDataAugmentationTool-HeatmapRegression\hand_xray\datasets\basic_dataset.py", line 93, in get_next
return self.get(self.iterator.get_next_id())

...\PYTHONPATH\MedicalDataAugmentationTool-HeatmapRegression\hand_xray\datasets\reference_image_transformation_dataset.py", line 96, in get
base_transformation = self.reference_transformation.get(**reference_datasource_dict)

...\PYTHONPATH\MedicalDataAugmentationTool-HeatmapRegression\hand_xray\transformations\spatial\composite.py", line 37, in get
return create_composite(self.dim, args)

...\PYTHONPATH\MedicalDataAugmentationTool-HeatmapRegression\hand_xray\transformations\spatial\common.py", line 70, in create_composite
compos = sitk.CompositeTransform(transformations)

File "C:\ProgramData\Anaconda3\lib\site-packages\SimpleITK\SimpleITK.py", line 5151, in init
_SimpleITK.CompositeTransform_swiginit(self, _SimpleITK.new_CompositeTransform(*args))

RuntimeError: Exception thrown in SimpleITK new_CompositeTransform: invalid vector subscript

@InfluenceFunction
Copy link

you can set the use_deprecated_behaviour=True in MedicalDataAugmentationTool\transformations\spatial\composite.py, using the default transformations provided in MedicalDataAugmentationTool-HeatmapRegression\hand_xray\dataset.py

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

No branches or pull requests

2 participants