Submission failed ¶
By: SKJP on July 14, 2023, 2:10 a.m.
Dear Organizers,
My submission was failed with the comment "Tolerance: 9.3945300e-07". How can I solve the problem ?
By: reubendo on July 17, 2023, 1:06 p.m.
Hi,
This error occurs when the predictions and groundtruths have different orientations.
For example, if your prediction are Numpy arrays:
import SimpleITK as sitk
pathimg = 'lnq2023-val-0242-ct.nrrd'
pathoutput = 'lnq2023-val-0242-seg.nrrd'
img = sitk.ReadImage(pathimg)
output = sitk.GetImageFromArray(prednumpy)
output.CopyInformation(img)
output = sitk.Cast(output, sitk.sitkUInt8)
sitk.WriteImage(output, path_output)
Let me know if it solves the problem.