Hey,
When I load my dataloader, the input coming in is with image size other than 128.
And for executing your step1.py file, to save the mask I followed the following code :
out_folder = 'E:\LUNA Dataset\mask\'
for idx,i in enumerate(target_filenames):
filename = i.split('\')[-1]
print(idx,i)
case_pixels, bw1, bw2, spacing, origin = step1_python(i)
bw = bw13+bw24
bw = sitk.GetImageFromArray(np.uint8(bw))
bw.SetSpacing(spacing)
bw.SetOrigin(origin)
sitk.WriteImage(bw,out_folder+filename, True)
Hey, When I load my dataloader, the input coming in is with image size other than 128.
And for executing your step1.py file, to save the mask I followed the following code : out_folder = 'E:\LUNA Dataset\mask\' for idx,i in enumerate(target_filenames): filename = i.split('\')[-1] print(idx,i) case_pixels, bw1, bw2, spacing, origin = step1_python(i) bw = bw13+bw24 bw = sitk.GetImageFromArray(np.uint8(bw)) bw.SetSpacing(spacing) bw.SetOrigin(origin) sitk.WriteImage(bw,out_folder+filename, True)
Am I right?