You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my system got crashed (blue screen) while doing this code:mytx = ants.registration(fixed=fi_img, moving=mov_img, type_of_transform = 'SyN' ) To reproduce
any data is ok to reproduce this bug in the following codes:
import ants
ori_path=r'C:\Users\AQi\Desktop\LPVNet_JLUdata\LPVNet_MS'
os.environ["ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS"] = "1"
for file in os.listdir(ori_path):
if file.endswith('.nii.gz'):
print('zzz')
mov_img = ants.image_read(os.path.join(ori_path, file))
print('aaa')
fi_img=ants.image_read(r"C:\Users\AQi\Desktop\MNI152_T1_1mm.nii.gz")
print('bbb')
mytx = ants.registration(fixed=fi_img, moving=mov_img, type_of_transform = 'SyN' )
print('ccc')
warped_out= mytx['warpedmovout']
print(warped_out)
ants.image_write(warped_out, os.path.join(r'C:\Users\AQi\Desktop\LPVNet_JLUdata\processed\MS', file))
break
Expected behavior
I want to make a standard registrition process. Screenshots
ANTsPy installation (please complete the following information):
Hardware [ PC I9-14900KF]
OS: [Windows ]
System details [ OS 名称: Microsoft Windows 11 专业版
OS 版本: 10.0.22631 暂缺 Build 22631 系统类型: x64-based PC ]
Additional context
This is my new PC and it perform well on my old ones. On this PC, I tried to install the latest version 0.5.4 from pip. Without set the os.environ, the code would only output 'zzz' which means even data reading failed. After downgrade to 0.3.8, it would work when os.environ was set, but without this my system crashed. (Actually on 0.5.4 sometimes it also crashed without setting os.environ). I think it may be sth wrong with my PC but I dont know why, please help me.
The text was updated successfully, but these errors were encountered:
I'm sure I had installed this libraries, and os.environ was set before import. This error occured very strange. If the os.environ was not set, sometimes the first time I run the code is normal, everything was ok. But when I quickly run it for the second time, like, in about 5 minutes, the crash would happen ( for version 0.5.4, the image reading code would fail, the same, the first time run it would be ok).
Describe the bug
my system got crashed (blue screen) while doing this code:mytx = ants.registration(fixed=fi_img, moving=mov_img, type_of_transform = 'SyN' )
To reproduce
any data is ok to reproduce this bug in the following codes:
import ants
ori_path=r'C:\Users\AQi\Desktop\LPVNet_JLUdata\LPVNet_MS'
os.environ["ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS"] = "1"
for file in os.listdir(ori_path):
if file.endswith('.nii.gz'):
print('zzz')
mov_img = ants.image_read(os.path.join(ori_path, file))
print('aaa')
fi_img=ants.image_read(r"C:\Users\AQi\Desktop\MNI152_T1_1mm.nii.gz")
print('bbb')
mytx = ants.registration(fixed=fi_img, moving=mov_img, type_of_transform = 'SyN' )
print('ccc')
warped_out= mytx['warpedmovout']
print(warped_out)
ants.image_write(warped_out, os.path.join(r'C:\Users\AQi\Desktop\LPVNet_JLUdata\processed\MS', file))
break
Expected behavior
I want to make a standard registrition process.
Screenshots
ANTsPy installation (please complete the following information):
OS 版本: 10.0.22631 暂缺 Build 22631 系统类型: x64-based PC ]
Additional context
This is my new PC and it perform well on my old ones. On this PC, I tried to install the latest version 0.5.4 from pip. Without set the os.environ, the code would only output 'zzz' which means even data reading failed. After downgrade to 0.3.8, it would work when os.environ was set, but without this my system crashed. (Actually on 0.5.4 sometimes it also crashed without setting os.environ). I think it may be sth wrong with my PC but I dont know why, please help me.
The text was updated successfully, but these errors were encountered: