Submission failed

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 ?

Re: Submission failed  

  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.

 Last edited by: reubendo on Aug. 15, 2023, 12:58 p.m., edited 9 times in total.

Re: Submission failed  

  By: SKJP on July 17, 2023, 11:04 p.m.

Hello,

The problem has been solved by using your script. Thank you.