Skip to content

Commit

Permalink
bugfix (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasserth committed Feb 5, 2024
1 parent 42652ef commit 52123a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions totalsegmentator/nnunet.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ def nnUNet_predict_image(file_in: Union[str, Path, Nifti1Image], file_out, task_
img_type = "nifti" if str(file_in).endswith(".nii") or str(file_in).endswith(".nii.gz") else "dicom"
if not file_in.exists():
sys.exit("ERROR: The input file or directory does not exist.")
else:
img_type = "nifti"
if file_out is not None:
file_out = Path(file_out)
multimodel = type(task_id) is list
Expand Down

0 comments on commit 52123a4

Please sign in to comment.