-
Notifications
You must be signed in to change notification settings - Fork 175
Description
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):
- Hardware [ PC I9-14900KF]
- OS: [Windows ]
- System details [ OS 名称: Microsoft Windows 11 专业版
OS 版本: 10.0.22631 暂缺 Build 22631 系统类型: x64-based PC ]
- Sub-system: [ ]
- ANTsPy version: [0.3.8 ]
- Installation type: [ https://github.com/ANTsX/ANTsPy/releases/download/v0.3.8/antspyx-0.3.8-cp310-cp310-win_amd64.whl ]
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.