Skip to content

Commit 73c5d6d

Browse files
committed
time limit exceeds on the model, so we remove all the unnecessary saving of files, updated the code and save time
1 parent 490bfbe commit 73c5d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inference_docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def forward(self, **kwargs) -> torch.Tensor:
356356
print(np.unique(overall_mask, return_counts=True))
357357

358358
os.makedirs(join(OUTPUT_PATH, 'images/pelvic-fracture-ct-segmentation'), exist_ok=True)
359-
sitk.WriteImage(sitk.GetImageFromArray(overall_mask), join(OUTPUT_PATH, 'images/pelvic-fracture-ct-segmentation', 'overall_pred.mha'), useCompression=True)
359+
sitk.WriteImage(sitk.GetImageFromArray(overall_mask), join(OUTPUT_PATH, 'images/pelvic-fracture-ct-segmentation', 'output.mha'), useCompression=True)
360360

361361
# # Save your output
362362
# # write_array_as_image_file(

0 commit comments

Comments
 (0)