This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
How to fix this error please #6
Comments
和我一样 |
我去simpleITK官方文档查了**Execute()**这个函数只有两个参数,但是NiftiDataset.py代码中给了九个参数。不知道如何解决 |
我也不知道 |
找到解决方法了,参见这个链接里面的resample_sitk_image函数 |
谢谢,你的代码成功运行起来了吗 |
嗯 仅就organize_folder_structure.py这个程序来说成功了,其他的还在调试 |
好的 谢谢 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I get the following error when I run the organize_folder_structure.py:
Traceback (most recent call last):
File "C:/Users/Desktop/code/3D-CycleGan-Pytorch-MedImaging-main/organize_folder_structure.py", line 157, in
reference_image = resample_sitk_image(reference_image, spacing=args.resolution, interpolator='linear')
File "C:\Users\Desktop\code\3D-CycleGan-Pytorch-MedImaging-main\utils\NiftiDataset.py", line 189, in resample_sitk_image
orig_pixelid)
TypeError: Execute() takes 2 positional arguments but 10 were given
and how should I fix it?
Thank you!
The text was updated successfully, but these errors were encountered: