It may be possible to fix this by swapping lines 64 and 66 of load_inputs in the process.py (https://github.com/lab-midas/autoPET/blob/master/nnUNet_baseline/process.py)
I believe the challenge server is using .mha data so this should get called.. I am not certain though.
Original:
self.convert_mha_to_nii(os.path.join(self.input_path, 'images/pet/', pet_mha),
os.path.join(self.nii_path, 'TCIA_001_0000.nii.gz'))
self.convert_mha_to_nii(os.path.join(self.input_path, 'images/ct/', ct_mha),
os.path.join(self.nii_path, 'TCIA_001_0001.nii.gz'))
Spoof naming convention:
self.convert_mha_to_nii(os.path.join(self.input_path, 'images/pet/', pet_mha),
os.path.join(self.nii_path, 'TCIA_001_0001.nii.gz'))
self.convert_mha_to_nii(os.path.join(self.input_path, 'images/ct/', ct_mha),
os.path.join(self.nii_path, 'TCIA_001_0000.nii.gz'))