Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wasserth committed Mar 21, 2024
1 parent 5140cfd commit be1a68f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ If you want to reduce memory consumption you can use the following options:
* `--fast`: This will use a lower-resolution model
* `--body_seg`: This will crop the image to the body region before processing it
* `--roi_subset <list of classes>`: This will only predict a subset of classes
* `--force_split`: This will split the image into 3 parts and process them one after another
* `--force_split`: This will split the image into 3 parts and process them one after another. (Do not use this for small images. Splitting these into even smaller images will result in a field of view which is too small.)
* `--nr_thr_saving 1`: Saving big images with several threads will take a lot of memory


Expand Down
2 changes: 1 addition & 1 deletion totalsegmentator/bin/TotalSegmentator.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def main():
help="Do initial rough body segmentation and crop image to body region",
default=False)

parser.add_argument("-fs", "--force_split", action="store_true", help="Process image in 3 chunks for less memory consumption",
parser.add_argument("-fs", "--force_split", action="store_true", help="Process image in 3 chunks for less memory consumption. (do not use on small images)",
default=False)

parser.add_argument("-ss", "--skip_saving", action="store_true",
Expand Down
3 changes: 3 additions & 0 deletions totalsegmentator/nnunet.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ def nnUNet_predict_image(file_in: Union[str, Path, Nifti1Image], file_out, task_
dcm_to_nifti(file_in, tmp_dir / "dcm" / "converted_dcm.nii.gz", verbose=verbose)
file_in_dcm = file_in
file_in = tmp_dir / "dcm" / "converted_dcm.nii.gz"

# for debugging
# shutil.copy(file_in, file_in_dcm.parent / "converted_dcm_TMP.nii.gz")

# Workaround to be able to access file_in on windows (see issue #106)
# if platform.system() == "Windows":
Expand Down

0 comments on commit be1a68f

Please sign in to comment.