Could you share a sample of submission?

Hi, could you share a sample of submission? A sample with one prediction is enough, thanks.

Here’s a code snip that you might find helpful.

import nibabel as nib
from your_code import predict

for i in range(210, 300):
    x_nib = nib.load("case_{:05d}/imaging.nii.gz".format(i))
    x = x_nib.get_data()

    // run your model to make a prediction here
    p = predict(x)

    p_nib = nib.Nifti1Image(p, x_nib.affine), "prediction_{:05d}.nii.gz".format(i))

Then run

zip prediction_*.nii.gz is the file that you will submit.

1 Like